Skip to content

[Bug]: Plugin config validation issue #16887

@victordidenko

Description

@victordidenko

💻

  • Would you like to work on a fix?

How are you using Babel?

Other (Next.js, Gatsby, vue-cli, ...)

Input code

https://codesandbox.io/p/devbox/eloquent-mayer-nlqvt6?workspaceId=5112c222-3611-4602-8c37-7b803fe68930

Configuration file name

No response

Configuration

No response

Current and expected behavior

I'm not sure, is this a bug, introduced in this PR, or is this a bug with wyw-in-js uses some undocumented and private features, but with Babel version 7.25.7 build inside wyw-in-js is broken.

In my case I'm receiving an error:

[!] (plugin wyw-in-js) Error: [BABEL] src/index.ts: .loader is not a valid Plugin property
src/index.ts
    at .../node_modules/.pnpm/@babel+core@7.25.7/node_modules/@babel/core/src/config/validation/plugins.ts:122:41
    at Array.forEach (<anonymous>)
    at validatePluginObject (.../node_modules/.pnpm/@babel+core@7.25.7/node_modules/@babel/core/src/config/validation/plugins.ts:108:20)

and also I've attached reproduce link with similar error from wyw's issue

Environment

  • babel: 7.25.7

Possible solution

No response

Additional context

No response

Metadata

Metadata

Labels

i: regressionoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions