-
Notifications
You must be signed in to change notification settings - Fork 57
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
Feature request: support Babel 7 #184
Comments
I don't know about anyone else, but I probably won't take a stab at Babel 7 support until it's out of beta. |
agree with @jedwards1211 - we obviously want to support 7 but I'm wary of being an early adopter |
Currently, this is the only one preset that is stopping us migrating to babel 7. |
They have stated that it is effectively ready for production use and no significant breaking changes are to be expected. |
@phpnode Where do I donate to get this done? :-) Seriously though... I think this project is of incredibly high value to a lot of us. You should consider accepting contributions in a monetary form, esp. now that there are so many ways of accepting donations. |
Same problem here :(, we are trying to update from nextjs 5.1 to nextjs 6.0.3, but we are blocked too: `> Module build failed: SyntaxError: /components/Card/Card.js: Unexpected token, expected ";" (10:5) 8 | import styles from './cardStyles';
|
@devcorpio nextjs takes that much control of the build pipeline that there's no way to override what it's using to transpile JS files? |
Bump |
Started my own babel-7 branch here: https://github.com/vjpr/flow-runtime/tree/vjpr/babel-7 So far just replaced all deps and usages with babel@7 equivalents. Will be following the API migration guide: https://babeljs.io/docs/en/next/v7-migration-api I hope only the babel-plugin needs replacing. Should be okay to leave babel@6 as the toolchain for building After making these minor changes, I seem to need Currently stuck on:
For this code sample:
|
I traced down the exact code that is causing this snippet to fail.
If a change @jedwards1211 Could you shed some light on how this works? Adding Here we are replacing After we have run our replace, there seem to be multiple bindings hanging around. There is some discussion about something similar here: airbnb/babel-plugin-inline-react-svg#31 (comment) Seeing as it only occurs if we have a named export and an ES6 block statement, perhaps it is more of a babel@7 bug. Published as |
Babel 7 has been released! |
Here are the pertinent babel@7 issues currently open: babel/babel#8899, babel/babel#8525, babel/babel#8559 I haven't dug in too deep, but after fixing #216 I'm now seeing "Duplicate declarations" when I use the same bundling command. The dupes I've seen so far seem to generate from destructuring parameters:
Yet, I can't reproduce the failure in the tests. This
This
|
Fixed in v0.18.0! |
This is a:
Which concerns:
What is the current behaviour?
The complete configuration is here: https://github.com/OKNoah/flow-runtime-test/pull/2/files
What is the expected behaviour?
Should run without errors and do a console log.
Which package versions are you using?
The text was updated successfully, but these errors were encountered: