vite plugin system
pluginの適用順序
code:md
- Alias
- User plugins with enforce: 'pre'
- Vite core plugins
- User plugins without enforce value
- Vite build plugins
- User plugins with enforce: 'post'
- Vite post build plugins (minify, manifest, reporting)
Viteコンパチブルなrollup pluginの条件
code:md
## It doesn't use the moduleParsed hook.
Note that the moduleParsed hook is not called during dev, because Vite avoids full AST parses for better performance.
## It doesn't have strong coupling between bundle-phase hooks and output-phase hooks.
MSWとかこの層で出来たりする?
ここでprvoide/injectの再構成とか出来たりしないだろうか...
参考になりそうな集