Skip to content

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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