vite
vite copied to clipboard
refactor: plugin container
Redo #16740 against main.
PluginContextper-plugin, instead of per-hook, align with rollup: https://github.com/rollup/rollup/blob/1b62c336b8e927e846cd2c04563ae0868a5d5832/src/utils/PluginDriver.ts#L105-L110resolveId,transformandloadare per-hook, align with rollup as well
- Hoisted
ContextandTransformContextclasses to top-level instead of having them in the function that creates every time. - Make
PluginContainera class to have more explicit deps relationships and easier to work with
Run & review this pull request in StackBlitz Codeflow.
/ecosystem-ci run
📝 Ran ecosystem CI on b96fae5: Open
| suite | result | latest scheduled |
|---|---|---|
| previewjs | :x: failure | :x: failure |
| sveltekit | :x: failure | :x: failure |
| vitest | :x: failure | :x: failure |
:white_check_mark: analogjs, astro, histoire, ladle, laravel, marko, nuxt, quasar, qwik, rakkas, remix, unocss, vike, vite-plugin-pwa, vite-plugin-react, vite-plugin-react-pages, vite-plugin-react-swc, vite-plugin-svelte, vite-plugin-vue, vite-setup-catalogue, vitepress
Awesome! If we want to merge this one before v6, let's do it in 5.3