We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1381e54 commit 2232ef4Copy full SHA for 2232ef4
.changeset/gentle-ligers-act.md
@@ -0,0 +1,5 @@
1
+---
2
+'@vanilla-extract/vite-plugin': patch
3
4
+
5
+Fixes a bug that was causing output CSS files to not update during watch mode
packages/vite-plugin/src/index.ts
@@ -156,7 +156,14 @@ export function vanillaExtractPlugin({
156
}
157
},
158
buildEnd() {
159
- compiler?.close();
+ // When using the rollup watcher, we don't want to close the compiler after every build.
160
+ // Instead, we close it when the watcher is closed via the closeWatcher hook.
161
+ if (!config.build.watch) {
162
+ compiler?.close();
163
+ }
164
+ },
165
+ closeWatcher() {
166
+ return compiler?.close();
167
168
async transform(code, id) {
169
const [validId] = id.split('?');
0 commit comments