@vanilla-extract/vite-plugin 5.1.0-vite-ssr-20250603032431 → 5.1.0-vite-ssr-20250611005022
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.
@@ -13,7 +13,7 @@ type PluginFilter = (filterProps: {
|
|
13
13
|
interface Options {
|
14
14
|
identifiers?: IdentifierOption;
|
15
15
|
unstable_pluginFilter?: PluginFilter;
|
16
|
-
unstable_mode?: 'transform' | 'emitCss' | '
|
16
|
+
unstable_mode?: 'transform' | 'emitCss' | 'inlineCssInSsrDev';
|
17
17
|
}
|
18
18
|
declare function vanillaExtractPlugin({ identifiers, unstable_pluginFilter: pluginFilter, unstable_mode, }?: Options): Plugin[];
|
19
19
|
|
@@ -71,16 +71,27 @@ function vanillaExtractPlugin({
|
|
71
71
|
}
|
72
72
|
}
|
73
73
|
return [{
|
74
|
-
name: `${PLUGIN_NAMESPACE}-inline-
|
75
|
-
apply: (
|
74
|
+
name: `${PLUGIN_NAMESPACE}-inline-css-in-ssr-dev`,
|
75
|
+
apply: (config, {
|
76
76
|
command
|
77
|
-
}) =>
|
78
|
-
|
77
|
+
}) => {
|
78
|
+
var _config$build;
|
79
|
+
console.log({
|
80
|
+
command,
|
81
|
+
c: config.build
|
82
|
+
});
|
83
|
+
return command === 'serve' && Boolean((_config$build = config.build) === null || _config$build === void 0 ? void 0 : _config$build.ssr) && unstable_mode === 'inlineCssInSsrDev';
|
84
|
+
},
|
85
|
+
transformIndexHtml: async () => {
|
79
86
|
var _compiler;
|
80
87
|
const allCss = (_compiler = compiler$1) === null || _compiler === void 0 ? void 0 : _compiler.getAllCss();
|
88
|
+
console.log('doing the thing');
|
81
89
|
return [{
|
82
90
|
tag: 'style',
|
83
91
|
children: allCss,
|
92
|
+
attrs: {
|
93
|
+
type: 'text/css'
|
94
|
+
},
|
84
95
|
injectTo: 'head-prepend'
|
85
96
|
}];
|
86
97
|
}
|
@@ -71,16 +71,27 @@ function vanillaExtractPlugin({
|
|
71
71
|
}
|
72
72
|
}
|
73
73
|
return [{
|
74
|
-
name: `${PLUGIN_NAMESPACE}-inline-
|
75
|
-
apply: (
|
74
|
+
name: `${PLUGIN_NAMESPACE}-inline-css-in-ssr-dev`,
|
75
|
+
apply: (config, {
|
76
76
|
command
|
77
|
-
}) =>
|
78
|
-
|
77
|
+
}) => {
|
78
|
+
var _config$build;
|
79
|
+
console.log({
|
80
|
+
command,
|
81
|
+
c: config.build
|
82
|
+
});
|
83
|
+
return command === 'serve' && Boolean((_config$build = config.build) === null || _config$build === void 0 ? void 0 : _config$build.ssr) && unstable_mode === 'inlineCssInSsrDev';
|
84
|
+
},
|
85
|
+
transformIndexHtml: async () => {
|
79
86
|
var _compiler;
|
80
87
|
const allCss = (_compiler = compiler$1) === null || _compiler === void 0 ? void 0 : _compiler.getAllCss();
|
88
|
+
console.log('doing the thing');
|
81
89
|
return [{
|
82
90
|
tag: 'style',
|
83
91
|
children: allCss,
|
92
|
+
attrs: {
|
93
|
+
type: 'text/css'
|
94
|
+
},
|
84
95
|
injectTo: 'head-prepend'
|
85
96
|
}];
|
86
97
|
}
|
@@ -63,16 +63,27 @@ function vanillaExtractPlugin({
|
|
63
63
|
}
|
64
64
|
}
|
65
65
|
return [{
|
66
|
-
name: `${PLUGIN_NAMESPACE}-inline-
|
67
|
-
apply: (
|
66
|
+
name: `${PLUGIN_NAMESPACE}-inline-css-in-ssr-dev`,
|
67
|
+
apply: (config, {
|
68
68
|
command
|
69
|
-
}) =>
|
70
|
-
|
69
|
+
}) => {
|
70
|
+
var _config$build;
|
71
|
+
console.log({
|
72
|
+
command,
|
73
|
+
c: config.build
|
74
|
+
});
|
75
|
+
return command === 'serve' && Boolean((_config$build = config.build) === null || _config$build === void 0 ? void 0 : _config$build.ssr) && unstable_mode === 'inlineCssInSsrDev';
|
76
|
+
},
|
77
|
+
transformIndexHtml: async () => {
|
71
78
|
var _compiler;
|
72
79
|
const allCss = (_compiler = compiler) === null || _compiler === void 0 ? void 0 : _compiler.getAllCss();
|
80
|
+
console.log('doing the thing');
|
73
81
|
return [{
|
74
82
|
tag: 'style',
|
75
83
|
children: allCss,
|
84
|
+
attrs: {
|
85
|
+
type: 'text/css'
|
86
|
+
},
|
76
87
|
injectTo: 'head-prepend'
|
77
88
|
}];
|
78
89
|
}
|
package/package.json
CHANGED
@@ -1,10 +1,18 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vanilla-extract/vite-plugin",
|
3
|
-
"version": "5.1.0-vite-ssr-
|
3
|
+
"version": "5.1.0-vite-ssr-20250611005022",
|
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",
|
7
7
|
"types": "dist/vanilla-extract-vite-plugin.cjs.d.ts",
|
8
|
+
"exports": {
|
9
|
+
".": {
|
10
|
+
"types": "./dist/vanilla-extract-vite-plugin.cjs.d.ts",
|
11
|
+
"import": "./dist/vanilla-extract-vite-plugin.esm.js",
|
12
|
+
"default": "./dist/vanilla-extract-vite-plugin.cjs.js"
|
13
|
+
},
|
14
|
+
"./package.json": "./package.json"
|
15
|
+
},
|
8
16
|
"files": [
|
9
17
|
"/dist"
|
10
18
|
],
|
@@ -16,8 +24,8 @@
|
|
16
24
|
"author": "SEEK",
|
17
25
|
"license": "MIT",
|
18
26
|
"dependencies": {
|
19
|
-
"@vanilla-extract/compiler": "^0.3.0-vite-ssr-
|
20
|
-
"@vanilla-extract/integration": "^8.0.
|
27
|
+
"@vanilla-extract/compiler": "^0.3.0-vite-ssr-20250611005022",
|
28
|
+
"@vanilla-extract/integration": "^8.0.3"
|
21
29
|
},
|
22
30
|
"devDependencies": {
|
23
31
|
"vite": "^5.0.0 || ^6.0.0"
|