Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support es6/imports #1

Closed
joeyfigaro opened this issue Sep 13, 2018 · 2 comments
Closed

support es6/imports #1

joeyfigaro opened this issue Sep 13, 2018 · 2 comments

Comments

@joeyfigaro
Copy link

@abou7mied
Copy link
Owner

Hi @joeyfigaro, thanks for reporting.

Actually this tool is designed to work in Node.js environment, es6/imports isn't supported yet in nodeJS (except running node with --experimental-modules) .

You can use a transpiler such as babel to convert es6 to es5 and run the tool on the results.

The second option that there is a lib called babel-register which can convert es6 to es5 at runtime but I don't know if it will work as excepted or not, so I'm going to give it a try this night and update the tool if it worked properly.

@abou7mied
Copy link
Owner

Hi @joeyfigaro I have released a new update to support es6 imports. Please feel free to test it out and let me know if the issue wasn't fixed

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

No branches or pull requests

2 participants