ardatan / ardatan/meteor-webpack
.babelrc ignored when upgrading babel to a version greater than 7
- Dominant language
- JavaScript
- Stars
- 123
- Forks
- 28
- PR merge metrics
- No merged PRs in 30d
Description
Hi 👋 👋
It's nice to see efforts to make an integration between meteor and webpack possible! On our company, we wanted to try this out, but we are getting some weird errors when updating babel to the latest version, and in fact, its the same problem as #22, but updating meteor and babel runtime did not solve in my case...
I have a reproducible repo at https://github.com/GabrielDuarteM/meteor-webpack-babel-error. It has basically 4 commits, the first being the exact clone of the example, second is bumping all npm packages besides the babel related ones, third is updating meteor and its packages, and fourth is after I ran `npx babel-upgrade` (the babel tool to update from version 6 to 7).
Up until the last commit (updating babel), everything was working fine (can be checked by running `git reset HEAD^ --hard`), but after it, I started getting the `Unexpected token` error on the ``, typically suggesting that babel is not transpiling the React code. I tried renaming `.babelrc` to `babel.config.js` to see if it solves, but no luck on that. Also tried putting syntax errors inside the `.babelrc`, and the compiler didn't even complain, so I'd guess that the config is not being picked up at all.
Any idea of what it could be?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the reproducible repository linked in the issue and compare the working state with the final Babel 7 upgrade commit, using `git reset HEAD^ --hard` to confirm the regression. Inspect why `.babelrc` and `babel.config.js` are not being read by the Meteor/webpack integration. Done means the Babel 7 configuration is recognized and the `` React syntax compiles without the `Unexpected token` error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- babel, javascript, react, webpack
- Domain
- build-system, frontend, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100