nitro-nightly 3.0.1-20260122-193916-3c506bba → 3.0.1-20260122-200414-64df4cfd
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/_build/common.mjs +2 -3
- package/dist/vite.mjs +6 -8
- package/package.json +2 -2
package/dist/_build/common.mjs
CHANGED
|
@@ -28,7 +28,6 @@ import { RENDER_CONTEXT_KEYS, compileTemplateToString, hasTemplateSyntax } from
|
|
|
28
28
|
import { builtinDrivers, normalizeKey } from "unstorage";
|
|
29
29
|
import { createHash } from "node:crypto";
|
|
30
30
|
import { transformSync } from "oxc-transform";
|
|
31
|
-
import { NodeNativePackages } from "nf3";
|
|
32
31
|
import { minifySync } from "oxc-minify";
|
|
33
32
|
|
|
34
33
|
//#region node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs
|
|
@@ -24874,7 +24873,6 @@ function flattenExports(exports = {}, parentSubpath = "./") {
|
|
|
24874
24873
|
|
|
24875
24874
|
//#endregion
|
|
24876
24875
|
//#region src/build/plugins.ts
|
|
24877
|
-
const FORCE_TRACE_DEPS = ["pg"];
|
|
24878
24876
|
async function baseBuildPlugins(nitro, base) {
|
|
24879
24877
|
const plugins$1 = [];
|
|
24880
24878
|
const virtualPlugin = virtual(virtualTemplates(nitro, [...base.env.polyfill]));
|
|
@@ -24894,9 +24892,10 @@ async function baseBuildPlugins(nitro, base) {
|
|
|
24894
24892
|
}));
|
|
24895
24893
|
if (nitro.options.node && nitro.options.noExternals !== true) {
|
|
24896
24894
|
const isDevOrPrerender = nitro.options.dev || nitro.options.preset === "nitro-prerender";
|
|
24895
|
+
const { NodeNativePackages, NonBundleablePackages } = await import("nf3/db");
|
|
24897
24896
|
const traceDeps = [...new Set([
|
|
24898
24897
|
...NodeNativePackages,
|
|
24899
|
-
...
|
|
24898
|
+
...NonBundleablePackages,
|
|
24900
24899
|
...nitro.options.traceDeps || []
|
|
24901
24900
|
])];
|
|
24902
24901
|
plugins$1.push(externals({
|
package/dist/vite.mjs
CHANGED
|
@@ -44,24 +44,23 @@ const getBundlerConfig = async (ctx) => {
|
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
46
|
if (ctx._isRolldown) {
|
|
47
|
-
const rolldownConfig = {
|
|
47
|
+
const rolldownConfig = defu({
|
|
48
48
|
transform: { inject: base.env.inject },
|
|
49
49
|
output: { codeSplitting: { groups: [{
|
|
50
50
|
test: NODE_MODULES_RE,
|
|
51
51
|
name: (id) => libChunkName(id)
|
|
52
52
|
}] } }
|
|
53
|
-
};
|
|
53
|
+
}, nitro$1.options.rolldownConfig, nitro$1.options.rollupConfig, commonConfig);
|
|
54
54
|
const outputConfig = rolldownConfig.output;
|
|
55
55
|
if (outputConfig.inlineDynamicImports || outputConfig.format === "iife") delete outputConfig.codeSplitting;
|
|
56
56
|
return {
|
|
57
57
|
base,
|
|
58
|
-
|
|
59
|
-
rolldownConfig: defu(rolldownConfig, nitro$1.options.rolldownConfig, nitro$1.options.rollupConfig, commonConfig)
|
|
58
|
+
rolldownConfig
|
|
60
59
|
};
|
|
61
60
|
} else {
|
|
62
61
|
const inject = (await import("./_libs/plugin-inject.mjs").then((n) => n.t)).default;
|
|
63
62
|
const alias = (await import("./_libs/plugin-alias.mjs").then((n) => n.n)).default;
|
|
64
|
-
const rollupConfig = {
|
|
63
|
+
const rollupConfig = defu({
|
|
65
64
|
plugins: [inject(base.env.inject), alias({ entries: base.aliases })],
|
|
66
65
|
output: {
|
|
67
66
|
sourcemapExcludeSources: true,
|
|
@@ -70,13 +69,12 @@ const getBundlerConfig = async (ctx) => {
|
|
|
70
69
|
if (NODE_MODULES_RE.test(id)) return libChunkName(id);
|
|
71
70
|
}
|
|
72
71
|
}
|
|
73
|
-
};
|
|
72
|
+
}, nitro$1.options.rolldownConfig, nitro$1.options.rollupConfig, commonConfig);
|
|
74
73
|
const outputConfig = rollupConfig.output;
|
|
75
74
|
if (outputConfig.inlineDynamicImports || outputConfig.format === "iife") delete outputConfig.manualChunks;
|
|
76
75
|
return {
|
|
77
76
|
base,
|
|
78
|
-
|
|
79
|
-
rollupConfig: defu(rollupConfig, nitro$1.options.rolldownConfig, nitro$1.options.rollupConfig, commonConfig)
|
|
77
|
+
rollupConfig
|
|
80
78
|
};
|
|
81
79
|
}
|
|
82
80
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nitro-nightly",
|
|
3
|
-
"version": "3.0.1-20260122-
|
|
3
|
+
"version": "3.0.1-20260122-200414-64df4cfd",
|
|
4
4
|
"description": "Build and Deploy Universal JavaScript Servers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"api-routes",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"db0": "^0.3.4",
|
|
77
77
|
"h3": "^2.0.1-rc.11",
|
|
78
78
|
"jiti": "^2.6.1",
|
|
79
|
-
"nf3": "^0.3.
|
|
79
|
+
"nf3": "^0.3.6",
|
|
80
80
|
"ofetch": "^2.0.0-alpha.3",
|
|
81
81
|
"ohash": "^2.0.11",
|
|
82
82
|
"oxc-minify": "^0.110.0",
|