nitro-nightly 3.0.1-20251104-004217-fa27a9a2 → 3.0.1-20251104-010441-737f4e6e
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 +1 -1
- package/dist/_build/rollup.mjs +3 -14
- package/dist/_build/vite.plugin.mjs +1 -1
- package/dist/_presets.mjs +0 -1
- package/package.json +1 -2
package/dist/_build/common.mjs
CHANGED
|
@@ -767,7 +767,7 @@ async function writeBuildInfo(nitro) {
|
|
|
767
767
|
const lastBuild = resolve$1(nitro.options.rootDir, "node_modules/.nitro/last-build");
|
|
768
768
|
await mkdir(dirname(lastBuild), { recursive: true });
|
|
769
769
|
await unlink(lastBuild).catch(() => {});
|
|
770
|
-
await symlink(nitro.options.output.dir, lastBuild).catch(
|
|
770
|
+
await symlink(nitro.options.output.dir, lastBuild).catch(() => symlink(nitro.options.output.dir, lastBuild)).catch(() => {});
|
|
771
771
|
return buildInfo;
|
|
772
772
|
}
|
|
773
773
|
|
package/dist/_build/rollup.mjs
CHANGED
|
@@ -43,7 +43,6 @@ import "../_libs/path-parse.mjs";
|
|
|
43
43
|
import "../_libs/function-bind.mjs";
|
|
44
44
|
import "../_libs/hasown.mjs";
|
|
45
45
|
import "../_libs/is-core-module.mjs";
|
|
46
|
-
import { createRequire } from "node:module";
|
|
47
46
|
import { watch } from "node:fs";
|
|
48
47
|
import { defu } from "defu";
|
|
49
48
|
import { runtimeDir } from "nitro/runtime/meta";
|
|
@@ -112,7 +111,7 @@ function printWarnings(id, result, plugin) {
|
|
|
112
111
|
|
|
113
112
|
//#endregion
|
|
114
113
|
//#region src/build/plugins/sourcemap-min.ts
|
|
115
|
-
function
|
|
114
|
+
function sourcemapMinify() {
|
|
116
115
|
return {
|
|
117
116
|
name: "nitro:sourcemap-minify",
|
|
118
117
|
generateBundle(_options, bundle) {
|
|
@@ -151,6 +150,7 @@ const getRollupConfig = (nitro) => {
|
|
|
151
150
|
esbuild({
|
|
152
151
|
target: "esnext",
|
|
153
152
|
sourceMap: nitro.options.sourceMap,
|
|
153
|
+
minify: nitro.options.minify,
|
|
154
154
|
...nitro.options.esbuild?.options
|
|
155
155
|
}),
|
|
156
156
|
alias({ entries: base.aliases }),
|
|
@@ -221,18 +221,7 @@ const getRollupConfig = (nitro) => {
|
|
|
221
221
|
};
|
|
222
222
|
config = defu(nitro.options.rollupConfig, config);
|
|
223
223
|
if (config.output.inlineDynamicImports) delete config.output.manualChunks;
|
|
224
|
-
if (nitro.options.
|
|
225
|
-
const _terser = createRequire(import.meta.url)("@rollup/plugin-terser");
|
|
226
|
-
const terser = _terser.default || _terser;
|
|
227
|
-
config.plugins.push(terser({
|
|
228
|
-
mangle: {
|
|
229
|
-
keep_fnames: true,
|
|
230
|
-
keep_classnames: true
|
|
231
|
-
},
|
|
232
|
-
format: { comments: false }
|
|
233
|
-
}));
|
|
234
|
-
}
|
|
235
|
-
if (nitro.options.sourceMap && !nitro.options.dev && nitro.options.experimental.sourcemapMinify !== false) config.plugins.push(sourcemapMininify());
|
|
224
|
+
if (nitro.options.sourceMap && !nitro.options.dev && nitro.options.experimental.sourcemapMinify !== false) config.plugins.push(sourcemapMinify());
|
|
236
225
|
return config;
|
|
237
226
|
};
|
|
238
227
|
|
|
@@ -65,7 +65,7 @@ const getViteRollupConfig = (ctx) => {
|
|
|
65
65
|
}),
|
|
66
66
|
!ctx._isRolldown && inject(base.env.inject)
|
|
67
67
|
].filter(Boolean),
|
|
68
|
-
transform: { inject: base.env.inject },
|
|
68
|
+
...ctx._isRolldown ? { transform: { inject: base.env.inject } } : {},
|
|
69
69
|
treeshake: { moduleSideEffects(id) {
|
|
70
70
|
const normalizedId = normalize$1(id);
|
|
71
71
|
const idWithoutNodeModules = normalizedId.split("node_modules/").pop();
|
package/dist/_presets.mjs
CHANGED
|
@@ -712,7 +712,6 @@ const cloudflarePagesStatic = defineNitroPreset({
|
|
|
712
712
|
const cloudflareDev = defineNitroPreset({
|
|
713
713
|
extends: "nitro-dev",
|
|
714
714
|
modules: [cloudflareDevModule],
|
|
715
|
-
esbuild: { options: { target: "es2022" } },
|
|
716
715
|
unenv: {
|
|
717
716
|
meta: { name: "cloudflare-dev" },
|
|
718
717
|
alias: { "cloudflare:workers": resolve$1(presetsDir, "cloudflare/runtime/shims/workers.dev.mjs") }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nitro-nightly",
|
|
3
|
-
"version": "3.0.1-20251104-
|
|
3
|
+
"version": "3.0.1-20251104-010441-737f4e6e",
|
|
4
4
|
"description": "Build and Deploy Universal JavaScript Servers",
|
|
5
5
|
"homepage": "https://nitro.build",
|
|
6
6
|
"repository": "nitrojs/nitro",
|
|
@@ -82,7 +82,6 @@
|
|
|
82
82
|
"@rollup/plugin-json": "^6.1.0",
|
|
83
83
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
84
84
|
"@rollup/plugin-replace": "^6.0.3",
|
|
85
|
-
"@rollup/plugin-terser": "^0.4.4",
|
|
86
85
|
"@scalar/api-reference": "^1.39.0",
|
|
87
86
|
"@types/aws-lambda": "^8.10.157",
|
|
88
87
|
"@types/estree": "^1.0.8",
|