vite plugin system
https://ushironoko.me/articles/2021/what-tailwind-css-doesn't-purge-in-vue
https://github.com/textlint/editor
https://t.co/HCnON7AqBm
https://vitejs.dev/guide/using-plugins.html#enforcing-plugin-ordering
https://vite-rollup-plugins.patak.dev/
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.
https://vitejs.dev/guide/api-plugin.html#configureserver
MSWとかこの層で出来たりする?
https://github.com/anncwb/vite-plugin-mock
https://github.com/anncwb/vite-plugin-mock/blob/main/src/index.ts
https://vitejs.dev/guide/api-plugin.html#handlehotupdate
ここでprvoide/injectの再構成とか出来たりしないだろうか...
参考になりそうな集
https://github.com/vitejs/vite/blob/main/packages/plugin-vue-jsx/index.js
https://twitter.com/mizchi/status/1368945756216848389
https://github.com/vitejs/vite/blob/main/packages/plugin-vue-jsx/index.js