@vanilla-extract/vite-plugin 4.0.1 → 4.0.3
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.
|
@@ -83,12 +83,15 @@ function vanillaExtractPlugin({
|
|
|
83
83
|
root: config.root,
|
|
84
84
|
identifiers: getIdentOption(),
|
|
85
85
|
cssImportSpecifier: fileIdToVirtualId,
|
|
86
|
+
viteResolve: config.resolve,
|
|
86
87
|
vitePlugins: (_userConfig$plugins = userConfig.plugins) === null || _userConfig$plugins === void 0 ? void 0 : _userConfig$plugins.flat().filter(plugin => typeof plugin === 'object' && plugin !== null && 'name' in plugin &&
|
|
87
88
|
// Prevent an infinite loop where the compiler creates a new instance of the plugin,
|
|
88
|
-
//
|
|
89
|
+
// which creates a new compiler, which creates a new instance of the plugin, etc.
|
|
89
90
|
plugin.name !== 'vanilla-extract' &&
|
|
90
91
|
// Skip Vitest plugins
|
|
91
|
-
plugin.name !== 'vitest' && !plugin.name.startsWith('vitest:')
|
|
92
|
+
plugin.name !== 'vitest' && !plugin.name.startsWith('vitest:') &&
|
|
93
|
+
// Skip Remix because it throws an error if it's not loaded with a config file
|
|
94
|
+
plugin.name !== 'remix')
|
|
92
95
|
});
|
|
93
96
|
}
|
|
94
97
|
},
|
|
@@ -83,12 +83,15 @@ function vanillaExtractPlugin({
|
|
|
83
83
|
root: config.root,
|
|
84
84
|
identifiers: getIdentOption(),
|
|
85
85
|
cssImportSpecifier: fileIdToVirtualId,
|
|
86
|
+
viteResolve: config.resolve,
|
|
86
87
|
vitePlugins: (_userConfig$plugins = userConfig.plugins) === null || _userConfig$plugins === void 0 ? void 0 : _userConfig$plugins.flat().filter(plugin => typeof plugin === 'object' && plugin !== null && 'name' in plugin &&
|
|
87
88
|
// Prevent an infinite loop where the compiler creates a new instance of the plugin,
|
|
88
|
-
//
|
|
89
|
+
// which creates a new compiler, which creates a new instance of the plugin, etc.
|
|
89
90
|
plugin.name !== 'vanilla-extract' &&
|
|
90
91
|
// Skip Vitest plugins
|
|
91
|
-
plugin.name !== 'vitest' && !plugin.name.startsWith('vitest:')
|
|
92
|
+
plugin.name !== 'vitest' && !plugin.name.startsWith('vitest:') &&
|
|
93
|
+
// Skip Remix because it throws an error if it's not loaded with a config file
|
|
94
|
+
plugin.name !== 'remix')
|
|
92
95
|
});
|
|
93
96
|
}
|
|
94
97
|
},
|
|
@@ -75,12 +75,15 @@ function vanillaExtractPlugin({
|
|
|
75
75
|
root: config.root,
|
|
76
76
|
identifiers: getIdentOption(),
|
|
77
77
|
cssImportSpecifier: fileIdToVirtualId,
|
|
78
|
+
viteResolve: config.resolve,
|
|
78
79
|
vitePlugins: (_userConfig$plugins = userConfig.plugins) === null || _userConfig$plugins === void 0 ? void 0 : _userConfig$plugins.flat().filter(plugin => typeof plugin === 'object' && plugin !== null && 'name' in plugin &&
|
|
79
80
|
// Prevent an infinite loop where the compiler creates a new instance of the plugin,
|
|
80
|
-
//
|
|
81
|
+
// which creates a new compiler, which creates a new instance of the plugin, etc.
|
|
81
82
|
plugin.name !== 'vanilla-extract' &&
|
|
82
83
|
// Skip Vitest plugins
|
|
83
|
-
plugin.name !== 'vitest' && !plugin.name.startsWith('vitest:')
|
|
84
|
+
plugin.name !== 'vitest' && !plugin.name.startsWith('vitest:') &&
|
|
85
|
+
// Skip Remix because it throws an error if it's not loaded with a config file
|
|
86
|
+
plugin.name !== 'remix')
|
|
84
87
|
});
|
|
85
88
|
}
|
|
86
89
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vanilla-extract/vite-plugin",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.3",
|
|
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",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"author": "SEEK",
|
|
16
16
|
"license": "MIT",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@vanilla-extract/integration": "^
|
|
18
|
+
"@vanilla-extract/integration": "^7.0.0"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"vite": "npm:vite@^5.0.11"
|