-
Notifications
You must be signed in to change notification settings - Fork 103
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
walk.js aborts with error if input contains ES6 code #3
Comments
walk.js
aborts with error if input scripts contains ES6 code
I'm using acorn and acorn-walk. Maybe there's a way to make it support ES6? |
I don't know. A another acorn-walk plugin? https://npmdaily.com/search/acorn |
This may not work for your use case, but I transpile to ES5 using Babel and then use optimize-js. |
@Rich-Harris would switching to https://www.npmjs.com/package/estree-walker solve this? |
@nolanlawson yes |
esprima has nice support of es6 and es7 |
this is already patched with the use of estree-walker. |
Question: wouldn't it just be possible to give acorn different options? For instance, imports/exports should work just fine if the |
Perhaps because
walk.js
does not support ES6?Example: start.js.txt
The text was updated successfully, but these errors were encountered: