Closed stolinski closed 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?
Yah. It works with rc 12 and the older Babel loader.
Ok, then I will investigate this issue. Thank you very much for your collaboration!
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.
This problem is gone after last updates in both meteor and babel-runtime.
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 runningmeteor
to build.