@nuxt/vite-builder-nightly 4.3.0-29466587.b5613d25 → 4.3.0-29470213.bdd5155f
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 +3 -14
- package/package.json +6 -6
package/dist/index.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { performance } from "node:perf_hooks";
|
|
|
4
4
|
import * as vite from "vite";
|
|
5
5
|
import { createBuilder, createLogger, createServer, isCSSRequest, mergeConfig } from "vite";
|
|
6
6
|
import { basename, dirname, isAbsolute, join, normalize, relative, resolve } from "pathe";
|
|
7
|
-
import { createIsIgnored, directoryToURL, getLayerDirectories, logger, resolveAlias, resolvePath,
|
|
7
|
+
import { createIsIgnored, directoryToURL, getLayerDirectories, logger, resolveAlias, resolvePath, tryUseNuxt, useNitro, useNuxt } from "@nuxt/kit";
|
|
8
8
|
import { findStaticImports, parseNodeModulePath, sanitizeFilePath } from "mlly";
|
|
9
9
|
import viteJsxPlugin from "@vitejs/plugin-vue-jsx";
|
|
10
10
|
import vuePlugin from "@vitejs/plugin-vue";
|
|
@@ -32,7 +32,6 @@ import { createJiti } from "jiti";
|
|
|
32
32
|
import { genArrayFromRaw, genImport, genObjectFromRawEntries } from "knitwork";
|
|
33
33
|
import replacePlugin from "@rollup/plugin-replace";
|
|
34
34
|
import { defineEnv } from "unenv";
|
|
35
|
-
import { runtimeDependencies } from "nuxt/meta";
|
|
36
35
|
|
|
37
36
|
//#region ../nuxt/src/core/utils/plugins.ts
|
|
38
37
|
function isVue(id, opts = {}) {
|
|
@@ -1880,21 +1879,11 @@ function ResolveDeepImportsPlugin(nuxt) {
|
|
|
1880
1879
|
//#region src/plugins/resolved-externals.ts
|
|
1881
1880
|
function ResolveExternalsPlugin(nuxt) {
|
|
1882
1881
|
let external = /* @__PURE__ */ new Set();
|
|
1883
|
-
const nitro = useNitro();
|
|
1884
1882
|
return {
|
|
1885
1883
|
name: "nuxt:resolve-externals",
|
|
1886
1884
|
enforce: "pre",
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
external = new Set([
|
|
1890
|
-
"unhead",
|
|
1891
|
-
"@unhead/vue",
|
|
1892
|
-
"@nuxt/devalue",
|
|
1893
|
-
"unstorage",
|
|
1894
|
-
...nitro.options.inlineDynamicImports ? ["vue", "@vue/server-renderer"] : [],
|
|
1895
|
-
...runtimeDependencies,
|
|
1896
|
-
...runtimeNitroDependencies
|
|
1897
|
-
]);
|
|
1885
|
+
config() {
|
|
1886
|
+
external = new Set(nuxt["~runtimeDependencies"]);
|
|
1898
1887
|
return { optimizeDeps: { exclude: Array.from(external) } };
|
|
1899
1888
|
},
|
|
1900
1889
|
applyToEnvironment(environment) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/vite-builder-nightly",
|
|
3
|
-
"version": "4.3.0-
|
|
3
|
+
"version": "4.3.0-29470213.bdd5155f",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/nuxt/nuxt.git",
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"dist"
|
|
23
23
|
],
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@nuxt/schema": "npm:@nuxt/schema-nightly@4.3.0-
|
|
26
|
-
"h3": "
|
|
27
|
-
"h3-next": "npm:h3
|
|
25
|
+
"@nuxt/schema": "npm:@nuxt/schema-nightly@4.3.0-29470213.bdd5155f",
|
|
26
|
+
"h3": "1.15.4",
|
|
27
|
+
"h3-next": "npm:h3@2.0.1-rc.7",
|
|
28
28
|
"nitropack": "2.12.9",
|
|
29
29
|
"obuild": "0.4.14",
|
|
30
30
|
"rolldown": "1.0.0-beta.58",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"vue": "3.5.26"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@nuxt/kit": "npm:@nuxt/kit-nightly@4.3.0-
|
|
35
|
+
"@nuxt/kit": "npm:@nuxt/kit-nightly@4.3.0-29470213.bdd5155f",
|
|
36
36
|
"@rollup/plugin-replace": "^6.0.3",
|
|
37
37
|
"@vitejs/plugin-vue": "^6.0.3",
|
|
38
38
|
"@vitejs/plugin-vue-jsx": "^5.1.3",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"vue-bundle-renderer": "^2.2.0"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
|
-
"nuxt": "npm:nuxt-nightly@4.3.0-
|
|
66
|
+
"nuxt": "npm:nuxt-nightly@4.3.0-29470213.bdd5155f",
|
|
67
67
|
"rolldown": "^1.0.0-beta.38",
|
|
68
68
|
"vue": "^3.3.4"
|
|
69
69
|
},
|