Re:JSweet: A transpiler from Java to TypeScript/JavaScript
by warfangle on Tuesday December 15, 2015 @06:33PM
(#10741288)
Why ES5 instead of ES6/2015?
[ Parent
| on HN ]
Re:JSweet: A transpiler from Java to TypeScript/JavaScript
by renaudpawlak on Wednesday December 16, 2015 @07:11AM
(#10743746)
I 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.
Re:JSweet: A transpiler from Java to TypeScript/JavaScript
by warfangle on Friday December 18, 2015 @01:11AM
(#10756950)
None 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.
Re:JSweet: A transpiler from Java to TypeScript/JavaScript
by EvanPlaice on Wednesday December 16, 2015 @09:12AM
(#10744324)
ES6 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.