Skip to content

Actually remove preset-env's useBuiltIns#18079

Merged
nicolo-ribaudo merged 3 commits into
babel:mainfrom
nicolo-ribaudo:remove-useBuiltIns
Jun 17, 2026
Merged

Actually remove preset-env's useBuiltIns#18079
nicolo-ribaudo merged 3 commits into
babel:mainfrom
nicolo-ribaudo:remove-useBuiltIns

Conversation

@nicolo-ribaudo

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

We marked this as removed both in the migration guide's Getting ready section and in the release post, but... did not actually remove it from the code 😓

Given that it's less than 24 hours since Babel 8, I'm quickly adding an error when using the option and releasing it. It's technically a breaking change in a patch release, but the timing should make it still possible.

This patch doesn't actually remove the code yet, so that we can easily add it back if needed.

Note that even if we keep this option we would only support core-js3, even after that core-js 4 is released, as people really should use the separate packages rather than putting all of the versions under preset-env again, with the option defaulting to what the old version would be.

@nicolo-ribaudo nicolo-ribaudo added the PR: Breaking Change 💥 A type of pull request used for our changelog categories for next major release label Jun 17, 2026
@nicolo-ribaudo nicolo-ribaudo changed the title Remove use built ins Actually remove preset-env's useBuiltIns Jun 17, 2026
@babel-bot

babel-bot commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

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

@pkg-pr-new

pkg-pr-new Bot commented Jun 17, 2026

Copy link
Copy Markdown

Open in StackBlitz

commit: 932ae03

@nicolo-ribaudo nicolo-ribaudo merged commit b68b1cb into babel:main Jun 17, 2026
57 checks passed
@nicolo-ribaudo nicolo-ribaudo deleted the remove-useBuiltIns branch June 17, 2026 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: Breaking Change 💥 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.

2 participants