-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
[1.6-beta.18] Invalid babel output #9013
Comments
Still reproducible with |
@janowsiany since this is a babel-transform, we should test if this is normal behaviour in babel too. Meteor uses the following babel-preset for ES-transforms https://github.com/meteor/babel-preset-meteor. In your case I would think that it is this transform: https://babeljs.io/docs/plugins/transform-object-rest-spread/ @janowsiany you could test it like this: |
@benjamn after upgrade up to |
@janowsiany Meteor 1.6 beta.30 uses Babel 7 (beta.0) and Node 8.5.0. Node 8.5.0 natively supports the syntax that you're trying to use (without Babel). It could have been an actual bug in Babel, but @benjamn has also been removing unnecessary Babel plugins which are no longer necessary with Node 8. It's possible that there was a plugin which was still enabled which was not necessary? |
Right, i know about Babel and Node upgrades but shouldn't Babel transpiled syntax be valid in Node 8.5.0 also(if we assume that a plugin was still enabled)? Also checked if it was Babel bug itself but it wasn't(you can check the repro done with Babel REPL in my very first comment), unless it was a bug in Babel 7th(REPL is running 6.x.x i guess). Anyway, it is cool that it is no longer an issue ⚡. CAn't wait for RC. |
I am running
METEOR@1.6-beta.18
, inside my codebase i am doing object destructuring with rest syntax which transpiles into:If you did not noticed the order of the keys in the path for
other
is wrong.Expected result is like.
Repro
cc: @benjamn @abernix @hwillson @radekmie @skirunman
The text was updated successfully, but these errors were encountered: