@nuxt/vite-builder-nightly 4.2.0-29355092.b7ccf17b → 4.2.0-29355133.7db30a63
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.
- package/dist/index.mjs +21 -3
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -1052,16 +1052,19 @@ const clientEnvironment = (nuxt, entry) => {
|
|
|
1052
1052
|
"@vue/reactivity",
|
|
1053
1053
|
"@vue/shared",
|
|
1054
1054
|
"@vue/devtools-api",
|
|
1055
|
+
"@vue/test-utils",
|
|
1055
1056
|
"vue-router",
|
|
1056
1057
|
"vue-demi",
|
|
1057
1058
|
// Nuxt
|
|
1058
1059
|
"nuxt",
|
|
1059
1060
|
"nuxt/app",
|
|
1061
|
+
"@nuxt/test-utils",
|
|
1060
1062
|
// Nuxt Deps
|
|
1061
1063
|
"@unhead/vue",
|
|
1062
1064
|
"consola",
|
|
1063
1065
|
"defu",
|
|
1064
1066
|
"devalue",
|
|
1067
|
+
"get-port-please",
|
|
1065
1068
|
"h3",
|
|
1066
1069
|
"hookable",
|
|
1067
1070
|
"klona",
|
|
@@ -1070,8 +1073,17 @@ const clientEnvironment = (nuxt, entry) => {
|
|
|
1070
1073
|
"ufo",
|
|
1071
1074
|
"unctx",
|
|
1072
1075
|
"unenv",
|
|
1073
|
-
//
|
|
1074
|
-
"#app-manifest"
|
|
1076
|
+
// this will never be imported on the client
|
|
1077
|
+
"#app-manifest",
|
|
1078
|
+
// these should all be valid ESM
|
|
1079
|
+
"#imports",
|
|
1080
|
+
"#app",
|
|
1081
|
+
"#build",
|
|
1082
|
+
"#build/*",
|
|
1083
|
+
"#components",
|
|
1084
|
+
"#head",
|
|
1085
|
+
"virtual:nuxt:",
|
|
1086
|
+
"virtual:nuxt:*"
|
|
1075
1087
|
]
|
|
1076
1088
|
},
|
|
1077
1089
|
define: {
|
|
@@ -1871,9 +1883,11 @@ function EnvironmentsPlugin(nuxt) {
|
|
|
1871
1883
|
// work around vite optimizer bug
|
|
1872
1884
|
"#app-manifest": resolveModulePath("mocked-exports/empty", { from: import.meta.url })
|
|
1873
1885
|
};
|
|
1886
|
+
let viteConfig;
|
|
1874
1887
|
return {
|
|
1875
1888
|
name: "nuxt:environments",
|
|
1876
|
-
config() {
|
|
1889
|
+
config(config) {
|
|
1890
|
+
viteConfig = config;
|
|
1877
1891
|
if (!nuxt.options.dev) {
|
|
1878
1892
|
return {
|
|
1879
1893
|
base: "./"
|
|
@@ -1881,6 +1895,10 @@ function EnvironmentsPlugin(nuxt) {
|
|
|
1881
1895
|
}
|
|
1882
1896
|
},
|
|
1883
1897
|
configEnvironment(name, config) {
|
|
1898
|
+
if (!nuxt.options.experimental.viteEnvironmentApi && viteConfig.ssr) {
|
|
1899
|
+
config.optimizeDeps ||= {};
|
|
1900
|
+
config.optimizeDeps.include = void 0;
|
|
1901
|
+
}
|
|
1884
1902
|
if (name === "client") {
|
|
1885
1903
|
const outputConfig = config.build?.rollupOptions?.output;
|
|
1886
1904
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/vite-builder-nightly",
|
|
3
|
-
"version": "4.2.0-
|
|
3
|
+
"version": "4.2.0-29355133.7db30a63",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/nuxt/nuxt.git",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dist"
|
|
22
22
|
],
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@nuxt/schema": "npm:@nuxt/schema-nightly@4.2.0-
|
|
24
|
+
"@nuxt/schema": "npm:@nuxt/schema-nightly@4.2.0-29355133.7db30a63",
|
|
25
25
|
"nitropack": "2.12.8",
|
|
26
26
|
"rolldown": "1.0.0-beta.44",
|
|
27
27
|
"rollup": "4.52.5",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"vue": "3.5.22"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@nuxt/kit": "npm:@nuxt/kit-nightly@4.2.0-
|
|
32
|
+
"@nuxt/kit": "npm:@nuxt/kit-nightly@4.2.0-29355133.7db30a63",
|
|
33
33
|
"@rollup/plugin-replace": "^6.0.2",
|
|
34
34
|
"@vitejs/plugin-vue": "^6.0.1",
|
|
35
35
|
"@vitejs/plugin-vue-jsx": "^5.1.1",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"vue-bundle-renderer": "^2.2.0"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
|
-
"nuxt": "npm:nuxt-nightly@4.2.0-
|
|
64
|
+
"nuxt": "npm:nuxt-nightly@4.2.0-29355133.7db30a63",
|
|
65
65
|
"rolldown": "^1.0.0-beta.38",
|
|
66
66
|
"vue": "^3.3.4"
|
|
67
67
|
},
|