@vanilla-extract/vite-plugin 5.0.3-vite-ssr-fix-20250523020545 → 5.0.3-vite-ssr-fix-20250523040720
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.
@@ -135,12 +135,15 @@ function vanillaExtractPlugin({
|
|
135
135
|
var _compiler2;
|
136
136
|
return (_compiler2 = compiler$1) === null || _compiler2 === void 0 ? void 0 : _compiler2.close();
|
137
137
|
},
|
138
|
-
async transform(code, id,
|
138
|
+
async transform(code, id, options) {
|
139
139
|
const [validId] = id.split('?');
|
140
140
|
if (!integration.cssFileFilter.test(validId)) {
|
141
141
|
return null;
|
142
142
|
}
|
143
143
|
const identOption = getIdentOption();
|
144
|
+
const {
|
145
|
+
ssr
|
146
|
+
} = options ?? {};
|
144
147
|
if (ssr || mode === 'transform') {
|
145
148
|
return integration.transform({
|
146
149
|
source: code,
|
@@ -135,12 +135,15 @@ function vanillaExtractPlugin({
|
|
135
135
|
var _compiler2;
|
136
136
|
return (_compiler2 = compiler$1) === null || _compiler2 === void 0 ? void 0 : _compiler2.close();
|
137
137
|
},
|
138
|
-
async transform(code, id,
|
138
|
+
async transform(code, id, options) {
|
139
139
|
const [validId] = id.split('?');
|
140
140
|
if (!integration.cssFileFilter.test(validId)) {
|
141
141
|
return null;
|
142
142
|
}
|
143
143
|
const identOption = getIdentOption();
|
144
|
+
const {
|
145
|
+
ssr
|
146
|
+
} = options ?? {};
|
144
147
|
if (ssr || mode === 'transform') {
|
145
148
|
return integration.transform({
|
146
149
|
source: code,
|
@@ -127,12 +127,15 @@ function vanillaExtractPlugin({
|
|
127
127
|
var _compiler2;
|
128
128
|
return (_compiler2 = compiler) === null || _compiler2 === void 0 ? void 0 : _compiler2.close();
|
129
129
|
},
|
130
|
-
async transform(code, id,
|
130
|
+
async transform(code, id, options) {
|
131
131
|
const [validId] = id.split('?');
|
132
132
|
if (!cssFileFilter.test(validId)) {
|
133
133
|
return null;
|
134
134
|
}
|
135
135
|
const identOption = getIdentOption();
|
136
|
+
const {
|
137
|
+
ssr
|
138
|
+
} = options ?? {};
|
136
139
|
if (ssr || mode === 'transform') {
|
137
140
|
return transform({
|
138
141
|
source: code,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vanilla-extract/vite-plugin",
|
3
|
-
"version": "5.0.3-vite-ssr-fix-
|
3
|
+
"version": "5.0.3-vite-ssr-fix-20250523040720",
|
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",
|