@vanilla-extract/next-plugin 2.5.0 → 2.5.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.
|
@@ -48,7 +48,7 @@ function getSupportedBrowsers(dir, isDevelopment) {
|
|
|
48
48
|
path: dir,
|
|
49
49
|
env: isDevelopment ? 'development' : 'production'
|
|
50
50
|
});
|
|
51
|
-
} catch
|
|
51
|
+
} catch {
|
|
52
52
|
return undefined;
|
|
53
53
|
}
|
|
54
54
|
}
|
|
@@ -164,7 +164,7 @@ const createVanillaExtractPlugin = (pluginOptions = {}) => {
|
|
|
164
164
|
let turbopack;
|
|
165
165
|
if (enableTurbopack) {
|
|
166
166
|
turbopack = {
|
|
167
|
-
...
|
|
167
|
+
...nextConfig.turbopack
|
|
168
168
|
};
|
|
169
169
|
if (turbopackGlob.some(glob => {
|
|
170
170
|
var _turbopack$rules;
|
|
@@ -188,7 +188,7 @@ const createVanillaExtractPlugin = (pluginOptions = {}) => {
|
|
|
188
188
|
loaders: [require$1.resolve('@vanilla-extract/turbopack-plugin')]
|
|
189
189
|
};
|
|
190
190
|
turbopack.rules = {
|
|
191
|
-
...
|
|
191
|
+
...turbopack.rules,
|
|
192
192
|
...Object.fromEntries(turbopackGlob.map(glob => [glob, vanillaExtractRule])),
|
|
193
193
|
'vanilla.virtual.css': vanillaExtractCssRule
|
|
194
194
|
};
|
|
@@ -48,7 +48,7 @@ function getSupportedBrowsers(dir, isDevelopment) {
|
|
|
48
48
|
path: dir,
|
|
49
49
|
env: isDevelopment ? 'development' : 'production'
|
|
50
50
|
});
|
|
51
|
-
} catch
|
|
51
|
+
} catch {
|
|
52
52
|
return undefined;
|
|
53
53
|
}
|
|
54
54
|
}
|
|
@@ -164,7 +164,7 @@ const createVanillaExtractPlugin = (pluginOptions = {}) => {
|
|
|
164
164
|
let turbopack;
|
|
165
165
|
if (enableTurbopack) {
|
|
166
166
|
turbopack = {
|
|
167
|
-
...
|
|
167
|
+
...nextConfig.turbopack
|
|
168
168
|
};
|
|
169
169
|
if (turbopackGlob.some(glob => {
|
|
170
170
|
var _turbopack$rules;
|
|
@@ -188,7 +188,7 @@ const createVanillaExtractPlugin = (pluginOptions = {}) => {
|
|
|
188
188
|
loaders: [require$1.resolve('@vanilla-extract/turbopack-plugin')]
|
|
189
189
|
};
|
|
190
190
|
turbopack.rules = {
|
|
191
|
-
...
|
|
191
|
+
...turbopack.rules,
|
|
192
192
|
...Object.fromEntries(turbopackGlob.map(glob => [glob, vanillaExtractRule])),
|
|
193
193
|
'vanilla.virtual.css': vanillaExtractCssRule
|
|
194
194
|
};
|
|
@@ -19,7 +19,7 @@ function getSupportedBrowsers(dir, isDevelopment) {
|
|
|
19
19
|
path: dir,
|
|
20
20
|
env: isDevelopment ? 'development' : 'production'
|
|
21
21
|
});
|
|
22
|
-
} catch
|
|
22
|
+
} catch {
|
|
23
23
|
return undefined;
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -135,7 +135,7 @@ const createVanillaExtractPlugin = (pluginOptions = {}) => {
|
|
|
135
135
|
let turbopack;
|
|
136
136
|
if (enableTurbopack) {
|
|
137
137
|
turbopack = {
|
|
138
|
-
...
|
|
138
|
+
...nextConfig.turbopack
|
|
139
139
|
};
|
|
140
140
|
if (turbopackGlob.some(glob => {
|
|
141
141
|
var _turbopack$rules;
|
|
@@ -159,7 +159,7 @@ const createVanillaExtractPlugin = (pluginOptions = {}) => {
|
|
|
159
159
|
loaders: [require.resolve('@vanilla-extract/turbopack-plugin')]
|
|
160
160
|
};
|
|
161
161
|
turbopack.rules = {
|
|
162
|
-
...
|
|
162
|
+
...turbopack.rules,
|
|
163
163
|
...Object.fromEntries(turbopackGlob.map(glob => [glob, vanillaExtractRule])),
|
|
164
164
|
'vanilla.virtual.css': vanillaExtractCssRule
|
|
165
165
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vanilla-extract/next-plugin",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.1",
|
|
4
4
|
"description": "Zero-runtime Stylesheets-in-TypeScript",
|
|
5
5
|
"main": "dist/vanilla-extract-next-plugin.cjs.js",
|
|
6
6
|
"module": "dist/vanilla-extract-next-plugin.esm.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"semver": "^7.6.3",
|
|
25
|
-
"@vanilla-extract/turbopack-plugin": "^0.1.
|
|
25
|
+
"@vanilla-extract/turbopack-plugin": "^0.1.1",
|
|
26
26
|
"@vanilla-extract/webpack-plugin": "^2.3.26"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|