@vanilla-extract/vite-plugin 4.0.15 → 4.0.17

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.
@@ -24,7 +24,9 @@ plugin.name !== 'vanilla-extract' &&
24
24
  // Additionally, some internal Remix plugins rely on a `ctx` object to be initialized by
25
25
  // the main Remix plugin, and may not function correctly without it. To address this, we
26
26
  // filter out all Remix-related plugins.
27
- !plugin.name.startsWith('remix');
27
+ !plugin.name.startsWith('remix') &&
28
+ // As React-Router plugin works the same as Remix plugin, also ignore it.
29
+ !plugin.name.startsWith('react-router');
28
30
  function vanillaExtractPlugin({
29
31
  identifiers,
30
32
  unstable_mode: mode = 'emitCss'
@@ -169,7 +171,7 @@ function vanillaExtractPlugin({
169
171
  // We have to invalidate the virtual module & deps, not the real one we just transformed
170
172
  // The deps have to be invalidated in case one of them changing was the trigger causing
171
173
  // the current transformation
172
- if (file.endsWith('.css.ts')) {
174
+ if (integration.cssFileFilter.test(file)) {
173
175
  invalidateModule(fileIdToVirtualId(file));
174
176
  }
175
177
  }
@@ -24,7 +24,9 @@ plugin.name !== 'vanilla-extract' &&
24
24
  // Additionally, some internal Remix plugins rely on a `ctx` object to be initialized by
25
25
  // the main Remix plugin, and may not function correctly without it. To address this, we
26
26
  // filter out all Remix-related plugins.
27
- !plugin.name.startsWith('remix');
27
+ !plugin.name.startsWith('remix') &&
28
+ // As React-Router plugin works the same as Remix plugin, also ignore it.
29
+ !plugin.name.startsWith('react-router');
28
30
  function vanillaExtractPlugin({
29
31
  identifiers,
30
32
  unstable_mode: mode = 'emitCss'
@@ -169,7 +171,7 @@ function vanillaExtractPlugin({
169
171
  // We have to invalidate the virtual module & deps, not the real one we just transformed
170
172
  // The deps have to be invalidated in case one of them changing was the trigger causing
171
173
  // the current transformation
172
- if (file.endsWith('.css.ts')) {
174
+ if (integration.cssFileFilter.test(file)) {
173
175
  invalidateModule(fileIdToVirtualId(file));
174
176
  }
175
177
  }
@@ -16,7 +16,9 @@ plugin.name !== 'vanilla-extract' &&
16
16
  // Additionally, some internal Remix plugins rely on a `ctx` object to be initialized by
17
17
  // the main Remix plugin, and may not function correctly without it. To address this, we
18
18
  // filter out all Remix-related plugins.
19
- !plugin.name.startsWith('remix');
19
+ !plugin.name.startsWith('remix') &&
20
+ // As React-Router plugin works the same as Remix plugin, also ignore it.
21
+ !plugin.name.startsWith('react-router');
20
22
  function vanillaExtractPlugin({
21
23
  identifiers,
22
24
  unstable_mode: mode = 'emitCss'
@@ -161,7 +163,7 @@ function vanillaExtractPlugin({
161
163
  // We have to invalidate the virtual module & deps, not the real one we just transformed
162
164
  // The deps have to be invalidated in case one of them changing was the trigger causing
163
165
  // the current transformation
164
- if (file.endsWith('.css.ts')) {
166
+ if (cssFileFilter.test(file)) {
165
167
  invalidateModule(fileIdToVirtualId(file));
166
168
  }
167
169
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vanilla-extract/vite-plugin",
3
- "version": "4.0.15",
3
+ "version": "4.0.17",
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",
@@ -16,7 +16,7 @@
16
16
  "author": "SEEK",
17
17
  "license": "MIT",
18
18
  "dependencies": {
19
- "@vanilla-extract/integration": "^7.1.9"
19
+ "@vanilla-extract/integration": "^7.1.10"
20
20
  },
21
21
  "devDependencies": {
22
22
  "vite": "^5.0.11"