nitro-nightly 3.0.1-20251108-165335-a649b96d → 3.0.1-20251108-180447-f148172c

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.
@@ -5,7 +5,7 @@ import { t as glob } from "../_libs/tinyglobby.mjs";
5
5
  import { t as src_default } from "../_libs/mime.mjs";
6
6
  import { i as genSafeVariableName, t as genImport } from "../_libs/knitwork.mjs";
7
7
  import { t as replace } from "../_libs/plugin-replace.mjs";
8
- import { t as rollup } from "../_libs/unwasm.mjs";
8
+ import { t as unwasm } from "../_libs/unwasm.mjs";
9
9
  import { t as require_etag } from "../_libs/etag.mjs";
10
10
  import { camelCase } from "scule";
11
11
  import { promises } from "node:fs";
@@ -82,6 +82,21 @@ function baseBuildConfig(nitro) {
82
82
  ...Object.fromEntries(Object.entries(staticFlags).map(([key, val]) => [`import.meta.${key}`, JSON.stringify(val)])),
83
83
  ...nitro.options.replace
84
84
  };
85
+ const noExternal = [
86
+ "#",
87
+ "~",
88
+ "@/",
89
+ "~~",
90
+ "@@/",
91
+ "virtual:",
92
+ "nitro",
93
+ pkgDir,
94
+ nitro.options.serverDir,
95
+ dirname(nitro.options.entry),
96
+ ...nitro.options.experimental.wasm ? [(id) => id?.endsWith(".wasm")] : [],
97
+ ...nitro.options.handlers.map((m) => m.handler).filter((i) => typeof i === "string"),
98
+ ...nitro.options.dev || nitro.options.preset === "nitro-prerender" ? [] : runtimeDependencies
99
+ ].filter(Boolean);
85
100
  const { env } = defineEnv({
86
101
  nodeCompat: isNodeless,
87
102
  npmShims: true,
@@ -97,7 +112,8 @@ function baseBuildConfig(nitro) {
97
112
  staticFlags,
98
113
  replacements,
99
114
  env,
100
- aliases: resolveAliases({ ...env.alias })
115
+ aliases: resolveAliases({ ...env.alias }),
116
+ noExternal
101
117
  };
102
118
  }
103
119
  function resolveAliases(_aliases) {
@@ -650,7 +666,7 @@ function nitroResolveIds() {
650
666
  function baseBuildPlugins(nitro, base) {
651
667
  const plugins = [];
652
668
  if (nitro.options.imports) plugins.push(unplugin.rollup(nitro.options.imports));
653
- if (nitro.options.experimental.wasm) plugins.push(rollup(nitro.options.wasm || {}));
669
+ if (nitro.options.experimental.wasm) plugins.push(unwasm(nitro.options.wasm || {}));
654
670
  plugins.push(serverMain(nitro));
655
671
  const nitroPlugins = [...new Set(nitro.options.plugins)];
656
672
  plugins.push(virtual({ "#nitro-internal-virtual/plugins": `
@@ -676,21 +692,7 @@ function baseBuildPlugins(nitro, base) {
676
692
  outDir: nitro.options.output.serverDir,
677
693
  moduleDirectories: nitro.options.nodeModulesDirs,
678
694
  external: nitro.options.nodeModulesDirs,
679
- inline: [
680
- "#",
681
- "~",
682
- "@/",
683
- "~~",
684
- "@@/",
685
- "virtual:",
686
- "nitro",
687
- pkgDir,
688
- nitro.options.serverDir,
689
- dirname(nitro.options.entry),
690
- ...nitro.options.experimental.wasm ? [(id) => id?.endsWith(".wasm")] : [],
691
- ...nitro.options.handlers.map((m) => m.handler).filter((i) => typeof i === "string"),
692
- ...nitro.options.dev || nitro.options.preset === "nitro-prerender" ? [] : runtimeDependencies
693
- ].filter(Boolean),
695
+ inline: [...base.noExternal],
694
696
  traceOptions: {
695
697
  base: "/",
696
698
  processCwd: nitro.options.rootDir,
@@ -378,7 +378,7 @@ function createNitroEnvironment(ctx) {
378
378
  }
379
379
  },
380
380
  resolve: {
381
- noExternal: ctx.nitro.options.dev ? new RegExp(runtimeDependencies.join("|")) : true,
381
+ noExternal: ctx.nitro.options.dev ? [...ctx.rollupConfig.base.noExternal, ...runtimeDependencies] : true,
382
382
  conditions: ctx.nitro.options.exportConditions,
383
383
  externalConditions: ctx.nitro.options.exportConditions
384
384
  },
@@ -2314,7 +2314,7 @@ var require_main = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/dotenv@17.2.
2314
2314
  }) });
2315
2315
 
2316
2316
  //#endregion
2317
- //#region node_modules/.pnpm/c12@3.3.1_magicast@0.3.5/node_modules/c12/dist/shared/c12.8GPsgFQh.mjs
2317
+ //#region node_modules/.pnpm/c12@3.3.1/node_modules/c12/dist/shared/c12.8GPsgFQh.mjs
2318
2318
  var import_main$1 = /* @__PURE__ */ __toESM(require_main(), 1);
2319
2319
  async function setupDotenv(options) {
2320
2320
  const targetEnvironment = options.env ?? process.env;
@@ -2728,7 +2728,7 @@ async function _applyPromised(fn, _this, args) {
2728
2728
  }
2729
2729
 
2730
2730
  //#endregion
2731
- //#region node_modules/.pnpm/c12@3.3.1_magicast@0.3.5/node_modules/c12/dist/index.mjs
2731
+ //#region node_modules/.pnpm/c12@3.3.1/node_modules/c12/dist/index.mjs
2732
2732
  var import_main = /* @__PURE__ */ __toESM(require_main(), 1);
2733
2733
  const eventMap = {
2734
2734
  add: "created",
@@ -1,6 +1,6 @@
1
1
  import path from "node:path";
2
2
 
3
- //#region node_modules/.pnpm/@rollup+plugin-alias@6.0.0_rollup@4.52.5/node_modules/@rollup/plugin-alias/dist/index.js
3
+ //#region node_modules/.pnpm/@rollup+plugin-alias@6.0.0_rollup@4.53.1/node_modules/@rollup/plugin-alias/dist/index.js
4
4
  function matches(pattern, importee) {
5
5
  if (pattern instanceof RegExp) return pattern.test(importee);
6
6
  if (importee.length < pattern.length) return false;
@@ -8,7 +8,7 @@ import { t as require_is_reference } from "./is-reference.mjs";
8
8
  import { existsSync, readFileSync, statSync } from "fs";
9
9
  import { basename, dirname, extname, isAbsolute, join, posix, relative, resolve, sep, win32 } from "path";
10
10
 
11
- //#region node_modules/.pnpm/@rollup+pluginutils@5.3.0_rollup@4.52.5/node_modules/@rollup/pluginutils/dist/es/index.js
11
+ //#region node_modules/.pnpm/@rollup+pluginutils@5.3.0_rollup@4.53.1/node_modules/@rollup/pluginutils/dist/es/index.js
12
12
  var import_picomatch = /* @__PURE__ */ __toESM(require_picomatch(), 1);
13
13
  const extractors = {
14
14
  ArrayPattern(names, param) {
@@ -243,7 +243,7 @@ const dataToEsm = function dataToEsm$1(data, options = {}) {
243
243
  };
244
244
 
245
245
  //#endregion
246
- //#region node_modules/.pnpm/@rollup+plugin-commonjs@29.0.0_rollup@4.52.5/node_modules/@rollup/plugin-commonjs/dist/es/index.js
246
+ //#region node_modules/.pnpm/@rollup+plugin-commonjs@29.0.0_rollup@4.53.1/node_modules/@rollup/plugin-commonjs/dist/es/index.js
247
247
  var import_commondir = /* @__PURE__ */ __toESM(require_commondir(), 1);
248
248
  var import_is_reference = /* @__PURE__ */ __toESM(require_is_reference(), 1);
249
249
  var version = "29.0.0";
@@ -3,7 +3,7 @@ import { n as walk } from "./estree-walker.mjs";
3
3
  import { a as makeLegalIdentifier, n as attachScopes, r as createFilter } from "./plugin-commonjs.mjs";
4
4
  import { sep } from "path";
5
5
 
6
- //#region node_modules/.pnpm/@rollup+plugin-inject@5.0.5_rollup@4.52.5/node_modules/@rollup/plugin-inject/dist/es/index.js
6
+ //#region node_modules/.pnpm/@rollup+plugin-inject@5.0.5_rollup@4.53.1/node_modules/@rollup/plugin-inject/dist/es/index.js
7
7
  var escape = function(str) {
8
8
  return str.replace(/[-[\]/{}()*+?.\\^$|]/g, "\\$&");
9
9
  };
@@ -1,6 +1,6 @@
1
1
  import { i as dataToEsm, r as createFilter } from "./plugin-commonjs.mjs";
2
2
 
3
- //#region node_modules/.pnpm/@rollup+plugin-json@6.1.0_rollup@4.52.5/node_modules/@rollup/plugin-json/dist/es/index.js
3
+ //#region node_modules/.pnpm/@rollup+plugin-json@6.1.0_rollup@4.53.1/node_modules/@rollup/plugin-json/dist/es/index.js
4
4
  function json(options) {
5
5
  if (options === void 0) options = {};
6
6
  var filter = createFilter(options.include, options.exclude);
@@ -694,7 +694,7 @@ var require_resolve = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/resolve@1
694
694
  }) });
695
695
 
696
696
  //#endregion
697
- //#region node_modules/.pnpm/@rollup+plugin-node-resolve@16.0.3_rollup@4.52.5/node_modules/@rollup/plugin-node-resolve/dist/es/index.js
697
+ //#region node_modules/.pnpm/@rollup+plugin-node-resolve@16.0.3_rollup@4.53.1/node_modules/@rollup/plugin-node-resolve/dist/es/index.js
698
698
  var import_cjs = /* @__PURE__ */ __toESM(require_cjs(), 1);
699
699
  var import_is_module = /* @__PURE__ */ __toESM(require_is_module(), 1);
700
700
  var import_resolve = /* @__PURE__ */ __toESM(require_resolve(), 1);
@@ -1,7 +1,7 @@
1
1
  import { t as MagicString } from "./magic-string.mjs";
2
2
  import { r as createFilter } from "./plugin-commonjs.mjs";
3
3
 
4
- //#region node_modules/.pnpm/@rollup+plugin-replace@6.0.3_rollup@4.52.5/node_modules/@rollup/plugin-replace/dist/es/index.js
4
+ //#region node_modules/.pnpm/@rollup+plugin-replace@6.0.3_rollup@4.53.1/node_modules/@rollup/plugin-replace/dist/es/index.js
5
5
  function escape(str) {
6
6
  return str.replace(/[-[\]/{}()*+?.\\^$|]/g, "\\$&");
7
7
  }
@@ -5831,8 +5831,6 @@ function unwasm(opts) {
5831
5831
  }
5832
5832
  };
5833
5833
  }
5834
- /** @deprecated use unwasm export */
5835
- const rollup = unwasm;
5836
5834
 
5837
5835
  //#endregion
5838
- export { rollup as t };
5836
+ export { unwasm as t };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nitro-nightly",
3
- "version": "3.0.1-20251108-165335-a649b96d",
3
+ "version": "3.0.1-20251108-180447-f148172c",
4
4
  "description": "Build and Deploy Universal JavaScript Servers",
5
5
  "homepage": "https://nitro.build",
6
6
  "repository": "nitrojs/nitro",
@@ -66,7 +66,7 @@
66
66
  "nf3": "^0.1.5",
67
67
  "ofetch": "^2.0.0-alpha.3",
68
68
  "ohash": "^2.0.11",
69
- "rollup": "^4.52.5",
69
+ "rollup": "^4.53.1",
70
70
  "srvx": "^0.9.5",
71
71
  "undici": "^7.16.0",
72
72
  "unenv": "^2.0.0-rc.24",
@@ -75,7 +75,7 @@
75
75
  "devDependencies": {
76
76
  "@azure/functions": "^3.5.1",
77
77
  "@azure/static-web-apps-cli": "^2.0.7",
78
- "@cloudflare/workers-types": "^4.20251014.0",
78
+ "@cloudflare/workers-types": "^4.20251107.0",
79
79
  "@deno/types": "^0.0.1",
80
80
  "@hiogawa/vite-plugin-fullstack": "npm:@pi0/vite-plugin-fullstack@0.0.5-pr-1297",
81
81
  "@netlify/edge-functions": "^3.0.2",
@@ -96,7 +96,7 @@
96
96
  "@types/node-fetch": "^2.6.13",
97
97
  "@types/semver": "^7.7.1",
98
98
  "@types/xml2js": "^0.4.14",
99
- "@vitest/coverage-v8": "^4.0.7",
99
+ "@vitest/coverage-v8": "^4.0.8",
100
100
  "automd": "^0.4.2",
101
101
  "c12": "^3.3.1",
102
102
  "changelogen": "^0.6.2",
@@ -137,7 +137,7 @@
137
137
  "react": "^19.2.0",
138
138
  "rendu": "^0.0.7",
139
139
  "rolldown": "^1.0.0-beta.47",
140
- "rolldown-vite": "^7.2.1",
140
+ "rolldown-vite": "^7.2.2",
141
141
  "rou3": "^0.7.10",
142
142
  "scule": "^1.3.0",
143
143
  "semver": "^7.7.3",
@@ -155,7 +155,7 @@
155
155
  "unplugin-utils": "^0.3.1",
156
156
  "untyped": "^2.0.0",
157
157
  "unwasm": "^0.4.2",
158
- "vitest": "^4.0.7",
158
+ "vitest": "^4.0.8",
159
159
  "wrangler": "^4.46.0",
160
160
  "xml2js": "^0.6.2",
161
161
  "youch": "^4.1.0-beta.12",