Build plugin/config relocation
Vite Rolldown plugin compatibility Rollup hooks output chunks buildStart generateBundle official
A custom plugin builds under Vite 7 but fails or emits wrong chunks under Rolldown.
Agent Quick Fix
Repair against the current Vite contract, then keep the change narrow and source-backed.
Product: Vite
Current-contract area: Vite 8 plugin assumes Rollup-only hook behavior
Likely root cause: A custom plugin builds under Vite 7 but fails or emits wrong chunks under Rolldown.
Repair direction: Verifier checks the current package identity/config format and a real transformed output. Check emitted assets and runtime behavior across the supported target.
Symptom
A custom plugin builds under Vite 7 but fails or emits wrong chunks under Rolldown.
Why This Happens
The old package/config name is syntactically valid, but current tool packaging and discovery rules live in external release documentation.
Common Wrong Fixes
- Changing local code without checking the current external contract.
- Retrying the same install, build, or API call with no version/source change.
- Applying a broad unsafe bypass when a narrow compatibility fix is available.
Codex Search Keywords
These are the search terms observed in a neutral Codex validation run for this failure shape.
Vite Rolldown plugin compatibility Rollup hooks output chunks buildStart generateBundle official
site:vite.dev rolldown Vite plugin compatibility Rollup hooks
Rolldown Vite plugin compatibility docs
rolldown.rs javascript bundler plugin hooks rollup compatibility
https://vite.dev/guide/rolldown
https://rolldown.rs/guide/plugin-development
https://v7.vite.dev/guide/rolldown.md
site:rolldown.rs hook filter feature plugin hook filters