Grunt / Babel confusion

Grunt / Babel confusion

by Howard Miller -
Number of replies: 2
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

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.....

Average of ratings: -
In reply to Howard Miller

Re: Grunt / Babel confusion

by Mark Sharp -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers
I've done some es6 for Moodle 3.8. The grunt will make the js compatible for the older version of js. I think it's babel that does that and it's run for you by grunt - you don't need to do anything extra. There should be something in gruntFile.js that does the targeting.
Average of ratings: Useful (1)