Skip to content

[babel 8] Enforce specifying proper core-js version#16095

Merged
nicolo-ribaudo merged 7 commits into
babel:mainfrom
liuxingbaoyu:corejs-string
Nov 27, 2023
Merged

[babel 8] Enforce specifying proper core-js version#16095
nicolo-ribaudo merged 7 commits into
babel:mainfrom
liuxingbaoyu:corejs-string

Conversation

@liuxingbaoyu

@liuxingbaoyu liuxingbaoyu commented Nov 11, 2023

Copy link
Copy Markdown
Member
Q                       A
Fixed Issues? Fixes #16042
Patch: Bug Fix?
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link babel/website#2850
Any Dependency Changes?
License MIT

@liuxingbaoyu liuxingbaoyu added the PR: Polish (next major) 💅 A type of pull request used for our changelog categories for next major release label Nov 11, 2023
@babel-bot

babel-bot commented Nov 11, 2023

Copy link
Copy Markdown
Collaborator

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

Comment thread packages/babel-preset-env/src/normalize-options.ts Outdated

@nicolo-ribaudo nicolo-ribaudo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(this review is actually one week old, and I noticed just now that I didn't submit it 😅)

!String(rawVersion).includes(".")
) {
throw new Error(
"Invalid Option: The version passed to `corejs` is invalid. It must be a string with minor version, like `3.10` or `3.10.1`.",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"Invalid Option: The version passed to `corejs` is invalid. It must be a string with minor version, like `3.10` or `3.10.1`.",
"Invalid Option: The version passed to `corejs` is invalid. It must be a string with minor version, like `3.33` or `3.33.2`.",

So that people who copy-paste don't copy-paste something too old :)

Comment thread packages/babel-preset-env/src/normalize-options.ts Outdated
liuxingbaoyu and others added 2 commits November 23, 2023 17:32
Co-authored-by: Nicolò Ribaudo <[email protected]>
Co-authored-by: Huáng Jùnliàng <[email protected]>
@nicolo-ribaudo

Copy link
Copy Markdown
Member

I'm merging this, but please open a docs PR! :)

@nicolo-ribaudo
nicolo-ribaudo merged commit 7c29fbc into babel:main Nov 27, 2023
@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 Feb 27, 2024
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Feb 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: Polish (next major) 💅 A type of pull request used for our changelog categories for next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[babel 8] Enforce specifying proper core-js version

4 participants