Skip to content
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

Merged
merged 1 commit into from Mar 1, 2021

Conversation

nicolo-ribaudo
Copy link
Member

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

@nicolo-ribaudo nicolo-ribaudo added PR: Bug Fix 🐛 A type of pull request used for our changelog categories i: regression pkg: preset-env labels Feb 28, 2021
@codesandbox-ci
Copy link

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:

Sandbox Source
babel-repl-custom-plugin Configuration
babel-plugin-multi-config Configuration

@babel-bot
Copy link
Collaborator

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/43128/

@nicolo-ribaudo nicolo-ribaudo merged commit c155caf into babel:main Mar 1, 2021
@nicolo-ribaudo nicolo-ribaudo deleted the issue-#12880 branch March 1, 2021 19:46
@wachunei
Copy link

wachunei commented Mar 2, 2021

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)

@nicolo-ribaudo
Copy link
Member Author

@wachunei Please see #12945

bemnlam added a commit to bemnlam/parcel that referenced this pull request Mar 2, 2021
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.
This was referenced Mar 5, 2021
This was referenced Mar 17, 2021
@github-actions github-actions bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Jun 2, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
i: regression outdated A closed issue/PR that is archived due to age. Recommended to make a new issue pkg: preset-env PR: Bug Fix 🐛 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@babel/preset-env 7.13.* breaks regenerateRuntime
5 participants