nitro-nightly 3.0.1-20251210-212455-5a5e1f5a → 3.0.1-20251211-001255-afcf27ad
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/_presets.mjs +2 -2
- package/package.json +1 -1
package/dist/_presets.mjs
CHANGED
|
@@ -426,7 +426,7 @@ const builtnNodeModules$1 = [
|
|
|
426
426
|
|
|
427
427
|
//#endregion
|
|
428
428
|
//#region src/presets/cloudflare/unenv/preset.ts
|
|
429
|
-
const
|
|
429
|
+
const unenvCfNodeCompat = {
|
|
430
430
|
meta: { name: "nitro:cloudflare-node-compat" },
|
|
431
431
|
external: builtnNodeModules$1,
|
|
432
432
|
alias: { ...Object.fromEntries(builtnNodeModules$1.flatMap((m) => [[m, m], [m.replace("node:", ""), m]])) },
|
|
@@ -530,7 +530,7 @@ async function enableNodeCompat(nitro) {
|
|
|
530
530
|
nitro.options.cloudflare ??= {};
|
|
531
531
|
nitro.options.cloudflare.deployConfig ??= true;
|
|
532
532
|
nitro.options.cloudflare.nodeCompat ??= true;
|
|
533
|
-
if (nitro.options.cloudflare.nodeCompat) nitro.options.unenv.push(
|
|
533
|
+
if (nitro.options.cloudflare.nodeCompat) nitro.options.unenv.push(unenvCfNodeCompat);
|
|
534
534
|
}
|
|
535
535
|
const extensionParsers = {
|
|
536
536
|
".json": h,
|
package/package.json
CHANGED