javascript - ES6 module concatenation -
developing web project in javascript es6, utilize traceur compile modules es6 es5, thinking in future, when browser back upwards es6, able skip transpilation step.
in end, because don't want download several js pieces @ start up, have single file contains modules converted es5, traceur.
but validate choice, wondering if still possible day maintain source in es6. if concatenate them, there invalid imports , name conflicts.
it looks has not been designed , require processing step merge them correctly.
how suppose handle es6 single file project defined several modules ?
this solved bundling, described here: http://www.2ality.com/2013/11/es6-modules-browsers.html in chapter 3. possible , validate approach, although couldn't find implementation of corresponding compilation step on web, should arise when people start using es6 modules.
javascript node.js ecmascript-6
No comments:
Post a Comment