News for hackers. Stuff that matters.
Re:Show HN: Esperanto – Convert ES6 modules to AMD, CommonJS by avolcano on Tuesday August 19, 2014 @01:17PM (#8198542)
One of the reasons this is so relatively simple is that it doesn't appear to handle cycles like es6-module-transpiler does.

See the test case here:

https://github.com/thomasboyt/es6-cycles-comparison

The es6-module-transpiler output functions correctly, while the Esperanto output does not. This means that while Esperanto can translate the syntax of ES6 modules for you, it doesn't currently match semantics like es6-module-transpiler does.

Re:Show HN: Esperanto – Convert ES6 modules to AMD, CommonJS by rich_harris on Tuesday August 19, 2014 @01:30PM (#8198630)
Interesting, thanks for the test case - I believe I can add support for cycles with the current approach (though I'd put it behind an option, since get default() excludes older browsers), will work on it.

This was a weekend project, using the examples from http://jsmodules.io/ as a starting point. Not finished yet :-)

Re:Show HN: Esperanto – Convert ES6 modules to AMD, CommonJS by avolcano on Tuesday August 19, 2014 @01:33PM (#8198649)
No problem, just wanted to point out one of the reasons for the transpiler's relative verbosity :)

There's lots of other good test cases here that should be adaptable: https://github.com/esnext/es6-module-transpiler/tree/master/...

Re:Show HN: Esperanto – Convert ES6 modules to AMD, CommonJS by rich_harris on Tuesday August 19, 2014 @01:45PM (#8198714)
That's very useful, thank you.