@vanilla-extract/vite-plugin 3.8.1 → 3.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -189,7 +189,7 @@ function vanillaExtractPlugin({
189
189
  for (const file of watchFiles) {
190
190
  // In start mode, we need to prevent the file from rewatching itself.
191
191
  // If it's a `build --watch`, it needs to watch everything.
192
- if (config.command === 'build' || file !== validId) {
192
+ if (config.command === 'build' || vite.normalizePath(file) !== validId) {
193
193
  this.addWatchFile(file);
194
194
  }
195
195
  }
@@ -189,7 +189,7 @@ function vanillaExtractPlugin({
189
189
  for (const file of watchFiles) {
190
190
  // In start mode, we need to prevent the file from rewatching itself.
191
191
  // If it's a `build --watch`, it needs to watch everything.
192
- if (config.command === 'build' || file !== validId) {
192
+ if (config.command === 'build' || vite.normalizePath(file) !== validId) {
193
193
  this.addWatchFile(file);
194
194
  }
195
195
  }
@@ -162,7 +162,7 @@ function vanillaExtractPlugin({
162
162
  for (const file of watchFiles) {
163
163
  // In start mode, we need to prevent the file from rewatching itself.
164
164
  // If it's a `build --watch`, it needs to watch everything.
165
- if (config.command === 'build' || file !== validId) {
165
+ if (config.command === 'build' || normalizePath(file) !== validId) {
166
166
  this.addWatchFile(file);
167
167
  }
168
168
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vanilla-extract/vite-plugin",
3
- "version": "3.8.1",
3
+ "version": "3.8.2",
4
4
  "description": "Zero-runtime Stylesheets-in-TypeScript",
5
5
  "main": "dist/vanilla-extract-vite-plugin.cjs.js",
6
6
  "module": "dist/vanilla-extract-vite-plugin.esm.js",