Skip to content

Fix: preset-env include/exclude should accept bugfix plugins#17787

Merged
nicolo-ribaudo merged 3 commits intobabel:mainfrom
JLHwung:allow-exclude-bugfix-plugins
Feb 15, 2026
Merged

Fix: preset-env include/exclude should accept bugfix plugins#17787
nicolo-ribaudo merged 3 commits intobabel:mainfrom
JLHwung:allow-exclude-bugfix-plugins

Conversation

@JLHwung
Copy link
Copy Markdown
Contributor

@JLHwung JLHwung commented Feb 11, 2026

Q                       A
Fixed Issues? The include and exclude preset-env option does not work on bugfix plugins.
Patch: Bug Fix? Yes
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

It turns out the include and exclude preset-env options never work with bugfix plugins because during the option validation step, we only search valid plugins in the plugins.json. In this PR the option validator will also search the plugins-bugfixes.json data.

@JLHwung JLHwung added pkg: preset-env PR: Bug Fix (next major) 🐛 A type of pull request used for our changelog categories for next major release 7.x: needs backport labels Feb 11, 2026
@babel-bot
Copy link
Copy Markdown
Collaborator

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

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Feb 11, 2026

Open in StackBlitz

commit: 813cd82

@nicolo-ribaudo nicolo-ribaudo merged commit 06cd2d2 into babel:main Feb 15, 2026
55 checks passed
@nicolo-ribaudo nicolo-ribaudo deleted the allow-exclude-bugfix-plugins branch February 15, 2026 18:05
@nicolo-ribaudo nicolo-ribaudo added the PR: Bug Fix 🐛 A type of pull request used for our changelog categories label Mar 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg: preset-env PR: Bug Fix 🐛 A type of pull request used for our changelog categories PR: Bug Fix (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.

4 participants