Hacker News new | ask | show | jobs
by crudbug 3739 days ago
Does this support:

1. CommonJS modules

2. Static types

3. Webpack loader

Having CommonJS module support will enable polyglot development where language syntax live inside a module and everything follows JavaScript semantics.

1 comments

1) it renders import and from...import statements to equivalent ES6 imports. If you use something like Webpack down the pipeline you can already mix ES6 imports and CommonJS requires. Also, BabelJS by default transpiles ES6 imports to CommonJS requires.

2) What do you mean exactly?

3) There's no direct from-python loader, but the compilation can be splitted in two steps with the BabelJS Webpack loader used for the latter