Skip to content
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.

Question: Does this work for for latest Node with ES 6 support? #64

Open
awidjaja opened this issue Dec 30, 2017 · 4 comments
Open

Question: Does this work for for latest Node with ES 6 support? #64

awidjaja opened this issue Dec 30, 2017 · 4 comments

Comments

@awidjaja
Copy link

It seems there were no recent activities, I wonder if this project still active.

Does this work for for latest Node with ES 6 support?
Is there a plan to upgrade to ES 6 module?

@nightwing
Copy link
Member

This is still the core part of cloud9, and there are no plans to abandon it.
The lack of activity is mainly caused by the fact that this is a simple module which works well.

There is no plan to switch to switch architect itself es6 modules at this point, since es6 module spec is severely lacking, and completely disregards bundling, performance, compatibility with commonjs, and common sense in general.

That said we would be interested to add support for loading apps that are using es6.
What do you use now to load es6 modules? A transpiler or the flag for .mjs support in node.

@awidjaja
Copy link
Author

awidjaja commented Jan 2, 2018

the flag for .mjs support in node for production

note: Jest testmatch filter currently doesn't work (ignores .mjs extension).
my work around is to rename all .mjs to .js and transpile them through babel for testing only 😢

will architect load ES6 modules?

@nightwing
Copy link
Member

Checked the documentation for --experimental-modules flag https://nodejs.org/api/esm.html, and turns out there is currently no way to load .mjs files dynamically (because require is not allowed to work, and import() is not implemented yet).
Without dynamic loading something like architect is not possible at all so we need to wait for now. I hope some saner proposal allowing to use require on es6 modules will be implemented instead of the current implementation.

@awidjaja
Copy link
Author

awidjaja commented May 1, 2018

with node version 10 going mainstream, may I know if there is a plan for architect to enable .mjs support?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants