support es6/imports
Closed this issue · 2 comments
joeyfigaro commented
abou7mied commented
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 commented
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