3 ms·
Why ES5 instead of ES6/2015?
by warfangle 11y ago
Why ES5 instead of ES6/2015?
- renaudpawlak 11y agoI am not sure to what your question is referring to, but FYI, JSweet follows the same pace as TypeScript in terms of JavaScript generation. So it already supports most of ES6 AFAIK.
- warfangle 11y agoNone of the sample code exposes a) es6 module format b) amd module format c) commonjs module format.... It's all closure-based jquery plugin module format....... If you're gonna compile to "javascript" either target a version of node that's been released in the past year or target webassembly. Otherwise you're just another coffeescript.
- EvanPlaice 11y agoES6 is only partially implemented in Node.js and requires transpilation to ES5 for client-side code. ES5 will be continue to be the target to until either/both platforms are feature-complete.