Skip to content

[Feature Request]: Skip Vite plugins using apply: "serve" #6361

@ArnaudBarre

Description

@ArnaudBarre

What problem does this feature solve?

When using a vite plugin in rolldown that split plugins between dev & build, rolldown will run both leading to erros.

What does the proposed API look like?

If the plugin defines apply: "serve" (while keeping apply not defined in types), the plugin is not called.

In case it feels too risky, if a user plugin is an array of plugin with both apply: "serve" & apply: "build", skip the dev plugins

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions