> > Just define the order of execution between ES6 and pre-ES6 to run > legacy.js first. >
You'd have to detect (before execution) whether a script was "ES6" or not, which is not practical, AFAICT. But even if you could, then simply upgrading "legacy.js" to use ES6 modules would change the order of execution, which could cause observable differences of behavior in the program. - Kevin
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

