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