ardatan / meteor-webpack

https://medium.com/@ardatan/meteor-with-webpack-in-2018-faster-compilation-better-source-handling-benefit-from-bc5ccc5735ef
MIT License
123 stars 29 forks source link

.babelrc Ignored With Babel 7.0.0-beta & babel-loader 8.0.0-beta #22

Closed stolinski closed 6 years ago

stolinski commented 6 years ago

Steps to reproduce:

Clone and run: https://github.com/stolinski/meteor-webpack-test

You should be seeing an unexpected token error on the first < in jsx.

Same repo compiled fine with example versions of babel but after upgrading the .babelrc file is ignored. This doesn't seem to be a webpack issue though, because if you tell webpack to watch with webpack -w everything compiles correctly. The .babelrc file is only ignored when running meteor to build.

ardatan commented 6 years ago

I think this repo uses METEOR@1.7-rc.12, so does the older version of babel-loader work fine with this rc version of Meteor?

stolinski commented 6 years ago

Yah. It works with rc 12 and the older Babel loader.

ardatan commented 6 years ago

Ok, then I will investigate this issue. Thank you very much for your collaboration!

ardatan commented 6 years ago

Somehow the new babel-loader is not compatible w/ Meteor. If you are using new version of Meteor, Meteor's client bundle cannot be injected to HTML. You can use the older version for now.

ardatan commented 6 years ago

This problem is gone after last updates in both meteor and babel-runtime.