-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Load .browserslistrc
when using old @babel/core
versions
#12934
Conversation
nicolo-ribaudo
commented
Feb 28, 2021
Q | A |
---|---|
Fixed Issues? | Fixes #12880 |
Patch: Bug Fix? | Yes |
Major: Breaking Change? | |
Minor: New Feature? | |
Tests Added + Pass? | Yes |
Documentation PR Link | |
Any Dependency Changes? | |
License | MIT |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit bed912f:
|
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/43128/ |
This patch update has broken my build wachunei/directUC#238 here is the error: https://github.com/wachunei/directUC/pull/238/checks?check_run_id=2012844416#step:7:14 🚨 /home/runner/work/directUC/directUC/src/img/icon_16.png: Invalid Version: undefined
at new SemVer (/home/runner/work/directUC/directUC/node_modules/@babel/preset-env/node_modules/semver/semver.js:314:11)
at compare (/home/runner/work/directUC/directUC/node_modules/@babel/preset-env/node_modules/semver/semver.js:647:10)
at lt (/home/runner/work/directUC/directUC/node_modules/@babel/preset-env/node_modules/semver/semver.js:688:10)
at /home/runner/work/directUC/directUC/node_modules/@babel/preset-env/lib/index.js:276:22
at Object.default (/home/runner/work/directUC/directUC/node_modules/@babel/helper-plugin-utils/lib/index.js:22:12)
at getEnvPlugins (/home/runner/work/directUC/directUC/node_modules/parcel-bundler/src/transforms/babel/env.js:62:34)
at getEnvConfig (/home/runner/work/directUC/directUC/node_modules/parcel-bundler/src/transforms/babel/env.js:12:25)
at async getBabelConfig (/home/runner/work/directUC/directUC/node_modules/parcel-bundler/src/transforms/babel/config.js:32:19)
at async babelTransform (/home/runner/work/directUC/directUC/node_modules/parcel-bundler/src/transforms/babel/transform.js:6:16)
at async JSAsset.pretransform (/home/runner/work/directUC/directUC/node_modules/parcel-bundler/src/assets/JSAsset.js:83:5) |
This change in babel babel/babel#12934 breaks Parcel if version doesn't pass into presetEnv(). By setting version as 7.13.0 presetEnv() will continue other checking, just like the logic before.