Open History to see the last commit
1import tailwindcss from "@tailwindcss/vite";
2
3export function tailwindPlugins(bundledDev: boolean) {
4 const plugins = tailwindcss();
5 if (bundledDev) {
6 for (const plugin of plugins) {
7 // Rolldown lacks Vite ModuleNodes/server; bundled dev rebuilds from addWatchFile dependencies instead.
8 delete plugin.hotUpdate;
9 }
10 }
11 return plugins;
12}