We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1b0891 commit 12770c3Copy full SHA for 12770c3
β.changeset/fix-tracked-imports-reset-watch-mode.mdβ
@@ -0,0 +1,5 @@
1
+---
2
+'@clickhouse/click-ui': patch
3
4
+
5
+Prevent duplicate CSS imports in `vite build --watch` mode by clearing `trackedImports` between rebuilds
βplugins/css-colocate/index.tsβ
@@ -28,6 +28,11 @@ export const cssColocatePlugin = (): Plugin => {
28
apply: 'build',
29
30
async buildStart() {
31
+ // WARN: Reset between rebuilds
32
+ // to prevent future build:watch transform to keep
33
+ // appending, causing duplicate CSS imports
34
+ // on each rebuild
35
+ trackedImports.length = 0;
36
await preprocessCssModules(config.root);
37
},
38
0 commit comments