-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
Add support for ES6 features #532
Comments
We can do this once esprima 2.0 is published... |
|
@andreypopp Aren't all the non-JSX features of esprima-fb part of the esprima harmony branch? |
👍 I'd like to use ES6 output too. Esprima 2 is now available and Webpack tests pass with 2.1.0. |
This should work in the |
Any news on this ? Is there a way to hack it to let webpack just pass through es6 code, and let the developer the responsibility to send supported code to wherever ? |
👍 |
Hi, has anyone found a solution/workaround? |
You can use the webpack-2 branch. It is using a ES6 parser (acorn) and understands |
@sokra I experimented with bumping the dependencies ( |
I've bumped it for 1.12... Let's see how this works out. |
1.12 is working for my project (babel blacklist regenerator), and tests passed, though very low coverage. Maybe this can be closed, if no need for further confirmations. |
Currently webpack seems to fail parsing JavaScript code that contains ES6 syntax like generators.
Could you please adjust the static code analysis so that it doesn't break with code that uses generators?
I'm trying to use generators natively in browsers that support them, so don't want to use a transpiler in this case..
The text was updated successfully, but these errors were encountered: