Babel 7 is almost ready for release, one of the things I’m looking forward is optional chaining, so you can do user?.name?.firstName. From what I can understand, there is no way for users to manually upgrade the Babel used by Meteor bundler to 7.0-beta? (I saw a package called meteor-babel, but I have no idea how that is supposed to be used… Any plans on when Meteor will be upgraded to support Babel 7 (even if it’s only in beta etc)?
There was an attempt to introduce Babel 7 during the beta (hence the PR that @nicooprat is referencing), but it failed due to the breaking changes in Babel 7 (which would automatically break your Meteor app if you had any Babel 6 stuff installed) + it was Alfa stage at that point. I think we can start talking about this once Babel 7 is oficially out.
While building for web.browser:
imports/modules/layout/index.js:4:9: This experimental syntax requires
enabling the parser plugin: ‘exportNamespaceFrom’ (4:9)
I was also getting errors on rest operators, but that one I’ve been able to fix.
Rewriting the export * as ns from './file' statements do bring me passed that specific error. But It would be nice if I understood how the plugins work, to bring that specific support back.
Oh my, has it already been 2 weeks ago since I had the trouble of migrating?
Well… I was able to get my meteor project running again. But now I’m still strugling with some babel syntax.
Apparently, my testrunner (ava) want’s modules to be prefixed with module. But meteor seems to crash on it. Does anyone of you have any idea if meteor is still doing something specific with the .babelrc file?
This is how ava requires it to be, otherwise it will throw: Couldn't find plugin "styled-jsx/babel" relative to directory