nitro-nightly 3.0.1-20251104-000640-50897794 → 3.0.1-20251104-010239-18820e2a
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/rollup.mjs +3 -14
- package/dist/_build/vite.plugin.mjs +2 -2
- package/dist/_presets.mjs +0 -1
- package/package.json +1 -2
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
|
|
|
@@ -695,10 +695,10 @@ async function setupNitroContext(ctx, configEnv, userConfig) {
|
|
|
695
695
|
};
|
|
696
696
|
nitroConfig.modules ??= [];
|
|
697
697
|
for (const plugin of flattenPlugins(userConfig.plugins || [])) if (plugin.nitro) nitroConfig.modules.push(plugin.nitro);
|
|
698
|
-
nitroConfig.builder = ctx._isRolldown ? "rolldown-vite" : "
|
|
698
|
+
nitroConfig.builder = ctx._isRolldown ? "rolldown-vite" : "vite";
|
|
699
699
|
debug("[init] Using builder:", nitroConfig.builder);
|
|
700
700
|
ctx.nitro = ctx.pluginConfig._nitro || await createNitro(nitroConfig);
|
|
701
|
-
ctx.nitro.options.builder = ctx._isRolldown ? "rolldown-vite" : "
|
|
701
|
+
ctx.nitro.options.builder = ctx._isRolldown ? "rolldown-vite" : "vite";
|
|
702
702
|
if (!ctx.pluginConfig.services?.ssr) {
|
|
703
703
|
ctx.pluginConfig.services ??= {};
|
|
704
704
|
if (userConfig.environments?.ssr === void 0) {
|
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-010239-18820e2a",
|
|
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",
|