@vanilla-extract/vite-plugin 3.1.0 → 3.1.1
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.
|
@@ -147,11 +147,19 @@ function vanillaExtractPlugin({
|
|
|
147
147
|
return null;
|
|
148
148
|
},
|
|
149
149
|
|
|
150
|
-
async transform(code, id,
|
|
150
|
+
async transform(code, id, ssrParam) {
|
|
151
151
|
if (!integration.cssFileFilter.test(id)) {
|
|
152
152
|
return null;
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
+
let ssr;
|
|
156
|
+
|
|
157
|
+
if (typeof ssrParam === 'boolean') {
|
|
158
|
+
ssr = ssrParam;
|
|
159
|
+
} else {
|
|
160
|
+
ssr = ssrParam?.ssr;
|
|
161
|
+
}
|
|
162
|
+
|
|
155
163
|
const index = id.indexOf('?');
|
|
156
164
|
const validId = index === -1 ? id : id.substring(0, index);
|
|
157
165
|
|
|
@@ -147,11 +147,19 @@ function vanillaExtractPlugin({
|
|
|
147
147
|
return null;
|
|
148
148
|
},
|
|
149
149
|
|
|
150
|
-
async transform(code, id,
|
|
150
|
+
async transform(code, id, ssrParam) {
|
|
151
151
|
if (!integration.cssFileFilter.test(id)) {
|
|
152
152
|
return null;
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
+
let ssr;
|
|
156
|
+
|
|
157
|
+
if (typeof ssrParam === 'boolean') {
|
|
158
|
+
ssr = ssrParam;
|
|
159
|
+
} else {
|
|
160
|
+
ssr = ssrParam?.ssr;
|
|
161
|
+
}
|
|
162
|
+
|
|
155
163
|
const index = id.indexOf('?');
|
|
156
164
|
const validId = index === -1 ? id : id.substring(0, index);
|
|
157
165
|
|
|
@@ -120,11 +120,19 @@ function vanillaExtractPlugin({
|
|
|
120
120
|
return null;
|
|
121
121
|
},
|
|
122
122
|
|
|
123
|
-
async transform(code, id,
|
|
123
|
+
async transform(code, id, ssrParam) {
|
|
124
124
|
if (!cssFileFilter.test(id)) {
|
|
125
125
|
return null;
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
+
let ssr;
|
|
129
|
+
|
|
130
|
+
if (typeof ssrParam === 'boolean') {
|
|
131
|
+
ssr = ssrParam;
|
|
132
|
+
} else {
|
|
133
|
+
ssr = ssrParam?.ssr;
|
|
134
|
+
}
|
|
135
|
+
|
|
128
136
|
const index = id.indexOf('?');
|
|
129
137
|
const validId = index === -1 ? id : id.substring(0, index);
|
|
130
138
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vanilla-extract/vite-plugin",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.1",
|
|
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",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"postcss-load-config": "^3.1.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"vite": "^2.
|
|
24
|
+
"vite": "^2.7.0"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"vite": "^2.2.3"
|