@vanilla-extract/vite-plugin 3.9.1 → 3.9.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.
|
@@ -52,7 +52,6 @@ const resolvePostcssConfig = async config => {
|
|
|
52
52
|
const postCssConfig = await (await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('postcss-load-config')); })).default({}, searchPath);
|
|
53
53
|
return {
|
|
54
54
|
options: postCssConfig.options,
|
|
55
|
-
// @ts-expect-error - The postcssrc options don't agree with real postcss, but it should be ok
|
|
56
55
|
plugins: postCssConfig.plugins
|
|
57
56
|
};
|
|
58
57
|
} catch (e) {
|
|
@@ -103,7 +102,7 @@ function vanillaExtractPlugin({
|
|
|
103
102
|
if (config.command === 'serve') {
|
|
104
103
|
postCssConfig = await resolvePostcssConfig(config);
|
|
105
104
|
}
|
|
106
|
-
if (!hasEmitCssOverride && config.plugins.some(plugin => ['astro:build', 'solid-start-server', 'vite-plugin-qwik', 'vite-plugin-svelte'].includes(plugin.name))) {
|
|
105
|
+
if (!hasEmitCssOverride && config.plugins.some(plugin => ['astro:build', 'remix', 'solid-start-server', 'vite-plugin-qwik', 'vite-plugin-svelte'].includes(plugin.name))) {
|
|
107
106
|
resolvedEmitCssInSsr = true;
|
|
108
107
|
}
|
|
109
108
|
},
|
|
@@ -212,7 +211,7 @@ function vanillaExtractPlugin({
|
|
|
212
211
|
});
|
|
213
212
|
cssSource = postCssResult.css;
|
|
214
213
|
}
|
|
215
|
-
if (server && cssMap.has(absoluteId) && cssMap.get(absoluteId) !==
|
|
214
|
+
if (server && cssMap.has(absoluteId) && cssMap.get(absoluteId) !== cssSource) {
|
|
216
215
|
const {
|
|
217
216
|
moduleGraph
|
|
218
217
|
} = server;
|
|
@@ -52,7 +52,6 @@ const resolvePostcssConfig = async config => {
|
|
|
52
52
|
const postCssConfig = await (await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('postcss-load-config')); })).default({}, searchPath);
|
|
53
53
|
return {
|
|
54
54
|
options: postCssConfig.options,
|
|
55
|
-
// @ts-expect-error - The postcssrc options don't agree with real postcss, but it should be ok
|
|
56
55
|
plugins: postCssConfig.plugins
|
|
57
56
|
};
|
|
58
57
|
} catch (e) {
|
|
@@ -103,7 +102,7 @@ function vanillaExtractPlugin({
|
|
|
103
102
|
if (config.command === 'serve') {
|
|
104
103
|
postCssConfig = await resolvePostcssConfig(config);
|
|
105
104
|
}
|
|
106
|
-
if (!hasEmitCssOverride && config.plugins.some(plugin => ['astro:build', 'solid-start-server', 'vite-plugin-qwik', 'vite-plugin-svelte'].includes(plugin.name))) {
|
|
105
|
+
if (!hasEmitCssOverride && config.plugins.some(plugin => ['astro:build', 'remix', 'solid-start-server', 'vite-plugin-qwik', 'vite-plugin-svelte'].includes(plugin.name))) {
|
|
107
106
|
resolvedEmitCssInSsr = true;
|
|
108
107
|
}
|
|
109
108
|
},
|
|
@@ -212,7 +211,7 @@ function vanillaExtractPlugin({
|
|
|
212
211
|
});
|
|
213
212
|
cssSource = postCssResult.css;
|
|
214
213
|
}
|
|
215
|
-
if (server && cssMap.has(absoluteId) && cssMap.get(absoluteId) !==
|
|
214
|
+
if (server && cssMap.has(absoluteId) && cssMap.get(absoluteId) !== cssSource) {
|
|
216
215
|
const {
|
|
217
216
|
moduleGraph
|
|
218
217
|
} = server;
|
|
@@ -25,7 +25,6 @@ const resolvePostcssConfig = async config => {
|
|
|
25
25
|
const postCssConfig = await (await import('postcss-load-config')).default({}, searchPath);
|
|
26
26
|
return {
|
|
27
27
|
options: postCssConfig.options,
|
|
28
|
-
// @ts-expect-error - The postcssrc options don't agree with real postcss, but it should be ok
|
|
29
28
|
plugins: postCssConfig.plugins
|
|
30
29
|
};
|
|
31
30
|
} catch (e) {
|
|
@@ -76,7 +75,7 @@ function vanillaExtractPlugin({
|
|
|
76
75
|
if (config.command === 'serve') {
|
|
77
76
|
postCssConfig = await resolvePostcssConfig(config);
|
|
78
77
|
}
|
|
79
|
-
if (!hasEmitCssOverride && config.plugins.some(plugin => ['astro:build', 'solid-start-server', 'vite-plugin-qwik', 'vite-plugin-svelte'].includes(plugin.name))) {
|
|
78
|
+
if (!hasEmitCssOverride && config.plugins.some(plugin => ['astro:build', 'remix', 'solid-start-server', 'vite-plugin-qwik', 'vite-plugin-svelte'].includes(plugin.name))) {
|
|
80
79
|
resolvedEmitCssInSsr = true;
|
|
81
80
|
}
|
|
82
81
|
},
|
|
@@ -185,7 +184,7 @@ function vanillaExtractPlugin({
|
|
|
185
184
|
});
|
|
186
185
|
cssSource = postCssResult.css;
|
|
187
186
|
}
|
|
188
|
-
if (server && cssMap.has(absoluteId) && cssMap.get(absoluteId) !==
|
|
187
|
+
if (server && cssMap.has(absoluteId) && cssMap.get(absoluteId) !== cssSource) {
|
|
189
188
|
const {
|
|
190
189
|
moduleGraph
|
|
191
190
|
} = server;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vanilla-extract/vite-plugin",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.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": "^6.
|
|
18
|
+
"@vanilla-extract/integration": "^6.2.4",
|
|
19
19
|
"outdent": "^0.8.0",
|
|
20
20
|
"postcss": "^8.3.6",
|
|
21
21
|
"postcss-load-config": "^4.0.1"
|
|
@@ -24,6 +24,6 @@
|
|
|
24
24
|
"vite": "npm:vite@^2.7.0"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"vite": "^2.2.3 || ^3.0.0 || ^4.0.3"
|
|
27
|
+
"vite": "^2.2.3 || ^3.0.0 || ^4.0.3 || ^5.0.0"
|
|
28
28
|
}
|
|
29
29
|
}
|