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 c842fde commit 8bed6f5Copy full SHA for 8bed6f5
.changeset/pink-students-grab.md
@@ -0,0 +1,5 @@
1
+---
2
+'@vanilla-extract/vite-plugin': patch
3
4
+
5
+Fix HMR in Windows by normalizing paths from `watchFiles`
packages/vite-plugin/src/index.ts
@@ -179,7 +179,7 @@ export function vanillaExtractPlugin({
179
for (const file of watchFiles) {
180
// In start mode, we need to prevent the file from rewatching itself.
181
// If it's a `build --watch`, it needs to watch everything.
182
- if (config.command === 'build' || file !== validId) {
+ if (config.command === 'build' || normalizePath(file) !== validId) {
183
this.addWatchFile(file);
184
}
185
0 commit comments