Skip to content

Polish(standalone): improve message on invalid preset/plugin#17606

Merged
nicolo-ribaudo merged 2 commits intobabel:mainfrom
JLHwung:improve-standalone-invalid-preset-error
Nov 28, 2025
Merged

Polish(standalone): improve message on invalid preset/plugin#17606
nicolo-ribaudo merged 2 commits intobabel:mainfrom
JLHwung:improve-standalone-invalid-preset-error

Conversation

@JLHwung
Copy link
Contributor

@JLHwung JLHwung commented Nov 24, 2025

Q                       A
Fixed Issues? babel-standalone throws "Invalid plugin specified in Babel options: foo, [Object object]" when provided an invalid plugin with options.
Patch: Bug Fix?
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

This PR was excised from previously work #17592.

In this PR we enabled the no-base-to-string rule, which detects a potential bug in the babel-standalone error message handling. This bug is also fixed in this PR.

@JLHwung JLHwung added PR: Polish 💅 A type of pull request used for our changelog categories pkg: standalone labels Nov 24, 2025
@babel-bot
Copy link
Collaborator

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

@pkg-pr-new
Copy link

pkg-pr-new bot commented Nov 24, 2025

Open in StackBlitz

commit: 2d72d6a

@nicolo-ribaudo nicolo-ribaudo merged commit e130225 into babel:main Nov 28, 2025
74 checks passed
@nicolo-ribaudo nicolo-ribaudo deleted the improve-standalone-invalid-preset-error branch November 28, 2025 14:09
@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 28, 2026
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 28, 2026
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 pkg: standalone PR: Polish 💅 A type of pull request used for our changelog categories

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants