This question specifically relates to 3.8
Should grunt run Javascript through Babel in Moodle 3.8? In brief testing it doesn't although the docs appear to support the use of ES6 even though 3.8 retains IE11 (ES6 incompatible)?
If any of that makes sense.....