nitro-nightly 4.0.0-20251010-091516-7cafddba → 4.0.0-20251030-091344-d4418b98
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/{_chunks/build2.mjs → _build/build.mjs} +108 -58
- package/dist/_build/build2.mjs +556 -0
- package/dist/_build/info.mjs +1002 -0
- package/dist/_build/prepare.mjs +1511 -0
- package/dist/_build/snapshot.mjs +185 -0
- package/dist/{_chunks/plugin.mjs → _build/vite.mjs} +295 -296
- package/dist/_build/vite2.mjs +149 -0
- package/dist/_chunks/_deps/@jridgewell/gen-mapping.mjs +189 -0
- package/dist/_chunks/_deps/@jridgewell/remapping.mjs +137 -0
- package/dist/_chunks/_deps/@jridgewell/resolve-uri.mjs +231 -0
- package/dist/_chunks/_deps/@jridgewell/sourcemap-codec.mjs +173 -0
- package/dist/_chunks/_deps/@jridgewell/trace-mapping.mjs +170 -0
- package/dist/_chunks/_deps/@pi0/vite-plugin-fullstack.mjs +575 -0
- package/dist/_chunks/_deps/@rollup/plugin-alias.mjs +89 -0
- package/dist/_chunks/_deps/@rollup/plugin-commonjs.mjs +2376 -0
- package/dist/_chunks/{index2.mjs → _deps/@rollup/plugin-inject.mjs} +5 -90
- package/dist/_chunks/_deps/@rollup/plugin-json.mjs +37 -0
- package/dist/_chunks/_deps/@rollup/plugin-node-resolve.mjs +1386 -0
- package/dist/_chunks/_deps/@rollup/plugin-replace.mjs +133 -0
- package/dist/_chunks/_deps/@rollup/pluginutils.mjs +346 -0
- package/dist/_chunks/_deps/acorn.mjs +6225 -0
- package/dist/_chunks/_deps/c12.mjs +510 -0
- package/dist/_chunks/_deps/chokidar.mjs +1428 -0
- package/dist/_chunks/_deps/citty.mjs +460 -0
- package/dist/_chunks/_deps/commondir.mjs +77 -0
- package/dist/_chunks/_deps/compatx.mjs +76 -0
- package/dist/_chunks/_deps/confbox.mjs +300 -0
- package/dist/_chunks/_deps/debug.mjs +885 -0
- package/dist/_chunks/_deps/deepmerge.mjs +147 -0
- package/dist/_chunks/_deps/depd.mjs +550 -0
- package/dist/_chunks/_deps/dot-prop.mjs +282 -0
- package/dist/_chunks/_deps/dotenv.mjs +555 -0
- package/dist/_chunks/_deps/duplexer.mjs +1 -0
- package/dist/_chunks/_deps/ee-first.mjs +104 -0
- package/dist/_chunks/_deps/encodeurl.mjs +69 -0
- package/dist/_chunks/_deps/escape-html.mjs +87 -0
- package/dist/_chunks/_deps/escape-string-regexp.mjs +13 -0
- package/dist/_chunks/_deps/estree-walker.mjs +433 -0
- package/dist/_chunks/_deps/etag.mjs +147 -0
- package/dist/_chunks/_deps/exsolve.mjs +1416 -0
- package/dist/_chunks/_deps/fdir.mjs +569 -0
- package/dist/_chunks/_deps/fresh.mjs +145 -0
- package/dist/_chunks/_deps/function-bind.mjs +106 -0
- package/dist/_chunks/{index4.mjs → _deps/giget.mjs} +21 -776
- package/dist/_chunks/_deps/gzip-size.mjs +19 -0
- package/dist/_chunks/_deps/hasown.mjs +19 -0
- package/dist/_chunks/_deps/http-errors.mjs +307 -0
- package/dist/_chunks/_deps/httpxy.mjs +580 -0
- package/dist/_chunks/_deps/inherits.mjs +57 -0
- package/dist/_chunks/_deps/is-core-module.mjs +596 -0
- package/dist/_chunks/_deps/is-module.mjs +25 -0
- package/dist/_chunks/_deps/is-reference.mjs +31 -0
- package/dist/_chunks/_deps/js-tokens.mjs +411 -0
- package/dist/_chunks/_deps/klona.mjs +137 -0
- package/dist/_chunks/_deps/knitwork.mjs +172 -0
- package/dist/_chunks/_deps/local-pkg.mjs +163 -0
- package/dist/_chunks/_deps/magic-string.mjs +1296 -0
- package/dist/_chunks/_deps/mime-db.mjs +11685 -0
- package/dist/_chunks/_deps/mime-types.mjs +287 -0
- package/dist/_chunks/_deps/mime.mjs +1172 -0
- package/dist/_chunks/_deps/mlly.mjs +2413 -0
- package/dist/_chunks/_deps/ms.mjs +172 -0
- package/dist/_chunks/_deps/node-fetch-native.mjs +3 -0
- package/dist/_chunks/_deps/nypm.mjs +219 -0
- package/dist/_chunks/_deps/on-finished.mjs +246 -0
- package/dist/_chunks/_deps/parseurl.mjs +168 -0
- package/dist/_chunks/_deps/path-parse.mjs +85 -0
- package/dist/_chunks/{pathe.M-eThtNZ.mjs → _deps/pathe.mjs} +48 -1
- package/dist/_chunks/_deps/perfect-debounce.mjs +88 -0
- package/dist/_chunks/_deps/picomatch.mjs +2144 -0
- package/dist/_chunks/_deps/pkg-types.mjs +247 -0
- package/dist/_chunks/{snapshot.mjs → _deps/pretty-bytes.mjs} +1 -105
- package/dist/_chunks/_deps/quansync.mjs +99 -0
- package/dist/_chunks/_deps/range-parser.mjs +171 -0
- package/dist/_chunks/_deps/rc9.mjs +219 -0
- package/dist/_chunks/_deps/readdirp.mjs +245 -0
- package/dist/_chunks/_deps/resolve.mjs +1260 -0
- package/dist/_chunks/_deps/rou3.mjs +326 -0
- package/dist/_chunks/_deps/send.mjs +1022 -0
- package/dist/_chunks/_deps/serve-static.mjs +228 -0
- package/dist/_chunks/_deps/setprototypeof.mjs +26 -0
- package/dist/_chunks/_deps/statuses.mjs +457 -0
- package/dist/_chunks/_deps/std-env.mjs +3 -0
- package/dist/_chunks/_deps/strip-literal.mjs +67 -0
- package/dist/_chunks/_deps/supports-color.mjs +44 -0
- package/dist/_chunks/_deps/tinyexec.mjs +552 -0
- package/dist/_chunks/_deps/tinyglobby.mjs +293 -0
- package/dist/_chunks/_deps/toidentifier.mjs +41 -0
- package/dist/_chunks/_deps/ultrahtml.mjs +3 -0
- package/dist/_chunks/_deps/unimport.mjs +2267 -0
- package/dist/_chunks/_deps/unplugin-utils.mjs +65 -0
- package/dist/_chunks/_deps/unplugin.mjs +1294 -0
- package/dist/_chunks/_deps/untyped.mjs +375 -0
- package/dist/_chunks/{info.mjs → _deps/unwasm.mjs} +8 -4206
- package/dist/_chunks/_deps/webpack-virtual-modules.mjs +360 -0
- package/dist/_chunks/_presets/_all.mjs +59 -0
- package/dist/_chunks/_presets/_nitro.mjs +74 -0
- package/dist/_chunks/_presets/_resolve.mjs +64 -0
- package/dist/_chunks/_presets/_static.mjs +69 -0
- package/dist/_chunks/_presets/_types.mjs +3 -0
- package/dist/_chunks/_presets/_utils.mjs +31 -0
- package/dist/_chunks/_presets/alwaysdata.mjs +17 -0
- package/dist/_chunks/_presets/aws-amplify.mjs +111 -0
- package/dist/_chunks/_presets/aws-lambda.mjs +23 -0
- package/dist/_chunks/_presets/azure.mjs +162 -0
- package/dist/_chunks/_presets/bun.mjs +19 -0
- package/dist/_chunks/_presets/cleavr.mjs +15 -0
- package/dist/_chunks/_presets/cloudflare.mjs +608 -0
- package/dist/_chunks/_presets/deno.mjs +196 -0
- package/dist/_chunks/_presets/digitalocean.mjs +14 -0
- package/dist/_chunks/_presets/firebase.mjs +47 -0
- package/dist/_chunks/_presets/flightcontrol.mjs +14 -0
- package/dist/_chunks/_presets/genezio.mjs +13 -0
- package/dist/_chunks/_presets/heroku.mjs +14 -0
- package/dist/_chunks/_presets/iis.mjs +194 -0
- package/dist/_chunks/_presets/index.mjs +62 -0
- package/dist/_chunks/_presets/koyeb.mjs +14 -0
- package/dist/_chunks/_presets/netlify.mjs +241 -0
- package/dist/_chunks/_presets/node.mjs +54 -0
- package/dist/_chunks/_presets/platform.mjs +14 -0
- package/dist/_chunks/_presets/render.mjs +14 -0
- package/dist/_chunks/_presets/standard.mjs +23 -0
- package/dist/_chunks/_presets/stormkit.mjs +18 -0
- package/dist/_chunks/_presets/vercel.mjs +375 -0
- package/dist/_chunks/_presets/winterjs.mjs +22 -0
- package/dist/_chunks/_presets/zeabur.mjs +69 -0
- package/dist/_chunks/_presets/zerops.mjs +27 -0
- package/dist/_chunks/app.mjs +9 -19206
- package/dist/_chunks/{index3.mjs → builder.mjs} +560 -970
- package/dist/_chunks/server.mjs +6 -4
- package/dist/{cli → _cli}/build.mjs +3 -8
- package/dist/{cli → _cli}/dev.mjs +38 -12
- package/dist/{cli/index2.mjs → _cli/index.mjs} +1 -2
- package/dist/{cli → _cli}/list.mjs +3 -4
- package/dist/{cli → _cli}/prepare.mjs +3 -4
- package/dist/{cli → _cli}/run.mjs +3 -4
- package/dist/{index.d.mts → builder.d.mts} +11 -11
- package/dist/builder.mjs +117 -0
- package/dist/cli/index.mjs +7 -464
- package/dist/node_modules/@speed-highlight/core/dist/index.js +1 -1
- package/dist/node_modules/@speed-highlight/core/dist/terminal.js +1 -1
- package/dist/node_modules/@speed-highlight/core/package.json +7 -3
- package/dist/node_modules/cookie-es/dist/index.mjs +262 -0
- package/dist/node_modules/cookie-es/package.json +37 -0
- package/dist/node_modules/hookable/dist/index.mjs +243 -266
- package/dist/node_modules/hookable/package.json +29 -26
- package/dist/node_modules/rendu/dist/index.mjs +380 -0
- package/dist/node_modules/rendu/package.json +47 -0
- package/dist/presets/_nitro/runtime/nitro-dev.mjs +4 -7
- package/dist/presets/_nitro/runtime/nitro-prerenderer.mjs +5 -4
- package/dist/presets/azure/runtime/azure-swa.mjs +1 -1
- package/dist/presets/cloudflare/runtime/_module-handler.mjs +7 -6
- package/dist/presets/cloudflare/runtime/cloudflare-durable.mjs +4 -5
- package/dist/presets/cloudflare/runtime/plugin.dev.mjs +7 -10
- package/dist/presets/cloudflare/runtime/shims/workers.dev.d.mts +21 -0
- package/dist/presets/cloudflare/runtime/shims/workers.dev.mjs +27 -0
- package/dist/presets/node/runtime/node-server.mjs +1 -1
- package/dist/runtime/index.d.mts +1 -1
- package/dist/runtime/index.mjs +1 -1
- package/dist/runtime/internal/app.d.mts +3 -1
- package/dist/runtime/internal/app.mjs +90 -64
- package/dist/runtime/internal/error/prod.d.mts +3 -2
- package/dist/runtime/internal/error/prod.mjs +9 -13
- package/dist/runtime/internal/renderer.mjs +4 -4
- package/dist/runtime/internal/routes/dev-tasks.d.mts +30 -2
- package/dist/runtime/internal/shutdown.d.mts +1 -2
- package/dist/runtime/internal/shutdown.mjs +3 -2
- package/dist/runtime/internal/task.mjs +1 -2
- package/dist/types/index.d.mts +1603 -10
- package/dist/vite.d.mts +5 -0
- package/dist/vite.mjs +94 -30
- package/lib/index.mjs +1 -0
- package/lib/indexd.mts +1 -0
- package/lib/runtime/meta.mjs +35 -0
- package/package.json +40 -41
- package/dist/_chunks/build.mjs +0 -84
- package/dist/_chunks/build3.mjs +0 -6452
- package/dist/_chunks/detect-acorn.mjs +0 -503
- package/dist/_chunks/index.mjs +0 -22242
- package/dist/_chunks/json5.mjs +0 -68
- package/dist/_chunks/jsonc.mjs +0 -51
- package/dist/_chunks/toml.mjs +0 -259
- package/dist/_chunks/yaml.mjs +0 -86
- package/dist/index.mjs +0 -55
- package/dist/node_modules/klona/dist/index.mjs +0 -81
- package/dist/node_modules/klona/full/index.mjs +0 -53
- package/dist/node_modules/klona/package.json +0 -74
- package/dist/node_modules/std-env/dist/index.mjs +0 -1
- package/dist/node_modules/std-env/package.json +0 -46
- package/dist/presets.mjs +0 -2460
- package/dist/runtime/internal/debug.d.mts +0 -2
- package/dist/runtime/internal/debug.mjs +0 -5
- package/lib/runtime-meta.mjs +0 -38
- /package/dist/{cli → _cli}/common.mjs +0 -0
- /package/lib/{runtime-meta.d.mts → runtime/meta.d.mts} +0 -0
package/dist/vite.d.mts
CHANGED
|
@@ -28,6 +28,11 @@ interface NitroPluginConfig {
|
|
|
28
28
|
* @note This is unsafe if plugins rely on temporary files on the filesystem.
|
|
29
29
|
*/
|
|
30
30
|
virtualBundle?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* @experimental Enable `?assets` import proposed by https://github.com/vitejs/vite/discussions/20913
|
|
33
|
+
* @default true
|
|
34
|
+
*/
|
|
35
|
+
assetsImport?: boolean;
|
|
31
36
|
};
|
|
32
37
|
}
|
|
33
38
|
interface ServiceConfig {
|
package/dist/vite.mjs
CHANGED
|
@@ -1,68 +1,132 @@
|
|
|
1
|
-
export { n as nitro } from './
|
|
2
|
-
import './
|
|
1
|
+
export { n as nitro } from './_build/vite.mjs';
|
|
2
|
+
import './_build/prepare.mjs';
|
|
3
3
|
import 'consola';
|
|
4
4
|
import 'hookable';
|
|
5
|
-
import '
|
|
5
|
+
import './_chunks/_deps/c12.mjs';
|
|
6
6
|
import 'node:fs';
|
|
7
7
|
import 'node:fs/promises';
|
|
8
8
|
import 'node:url';
|
|
9
9
|
import 'node:os';
|
|
10
|
+
import './_chunks/_deps/exsolve.mjs';
|
|
10
11
|
import 'node:path';
|
|
11
12
|
import 'node:assert';
|
|
12
13
|
import 'node:process';
|
|
13
14
|
import 'node:v8';
|
|
14
15
|
import 'node:util';
|
|
15
16
|
import 'jiti';
|
|
17
|
+
import './_chunks/_deps/rc9.mjs';
|
|
16
18
|
import 'destr';
|
|
17
19
|
import 'defu';
|
|
18
|
-
import './_chunks/
|
|
20
|
+
import './_chunks/_deps/pkg-types.mjs';
|
|
21
|
+
import './_chunks/_deps/mlly.mjs';
|
|
22
|
+
import './_chunks/_deps/acorn.mjs';
|
|
23
|
+
import 'node:module';
|
|
24
|
+
import 'ufo';
|
|
25
|
+
import './_chunks/_deps/pathe.mjs';
|
|
26
|
+
import './_chunks/_deps/confbox.mjs';
|
|
27
|
+
import './_chunks/_deps/dotenv.mjs';
|
|
19
28
|
import 'fs';
|
|
20
|
-
import 'path';
|
|
21
29
|
import 'os';
|
|
22
30
|
import 'crypto';
|
|
23
|
-
import '
|
|
31
|
+
import 'path';
|
|
32
|
+
import './_chunks/_deps/commondir.mjs';
|
|
33
|
+
import './_chunks/_deps/perfect-debounce.mjs';
|
|
34
|
+
import './_chunks/_deps/compatx.mjs';
|
|
35
|
+
import './_chunks/_deps/klona.mjs';
|
|
36
|
+
import 'nitro/runtime/meta';
|
|
37
|
+
import './_chunks/_deps/std-env.mjs';
|
|
38
|
+
import './_chunks/_deps/escape-string-regexp.mjs';
|
|
39
|
+
import './_chunks/_deps/tinyglobby.mjs';
|
|
40
|
+
import 'url';
|
|
41
|
+
import './_chunks/_deps/fdir.mjs';
|
|
42
|
+
import 'module';
|
|
43
|
+
import './_chunks/_deps/picomatch.mjs';
|
|
44
|
+
import 'ofetch';
|
|
45
|
+
import 'unstorage';
|
|
46
|
+
import './_chunks/_deps/rou3.mjs';
|
|
47
|
+
import 'ohash';
|
|
48
|
+
import './_chunks/_deps/unimport.mjs';
|
|
49
|
+
import 'scule';
|
|
50
|
+
import './_chunks/_deps/magic-string.mjs';
|
|
51
|
+
import './_chunks/_deps/@jridgewell/sourcemap-codec.mjs';
|
|
52
|
+
import './_chunks/_deps/unplugin.mjs';
|
|
53
|
+
import 'node:buffer';
|
|
54
|
+
import './_chunks/_deps/@jridgewell/remapping.mjs';
|
|
55
|
+
import './_chunks/_deps/@jridgewell/trace-mapping.mjs';
|
|
56
|
+
import './_chunks/_deps/@jridgewell/resolve-uri.mjs';
|
|
57
|
+
import './_chunks/_deps/@jridgewell/gen-mapping.mjs';
|
|
58
|
+
import 'node:querystring';
|
|
59
|
+
import './_chunks/_deps/webpack-virtual-modules.mjs';
|
|
60
|
+
import 'constants';
|
|
61
|
+
import './_chunks/_deps/unplugin-utils.mjs';
|
|
62
|
+
import './_chunks/_deps/local-pkg.mjs';
|
|
63
|
+
import './_chunks/_deps/quansync.mjs';
|
|
64
|
+
import './_chunks/_deps/estree-walker.mjs';
|
|
65
|
+
import './_chunks/_deps/strip-literal.mjs';
|
|
66
|
+
import './_chunks/_deps/js-tokens.mjs';
|
|
67
|
+
import 'consola/utils';
|
|
68
|
+
import './_chunks/_deps/dot-prop.mjs';
|
|
69
|
+
import 'node:zlib';
|
|
70
|
+
import './_chunks/_deps/mime.mjs';
|
|
24
71
|
import 'node:worker_threads';
|
|
25
|
-
import 'std-env';
|
|
26
|
-
import 'fs/promises';
|
|
27
|
-
import 'events';
|
|
28
|
-
import 'node:stream';
|
|
29
72
|
import 'h3';
|
|
30
|
-
import '
|
|
73
|
+
import 'undici';
|
|
74
|
+
import 'nitro/meta';
|
|
75
|
+
import 'srvx/node';
|
|
76
|
+
import './_chunks/app.mjs';
|
|
77
|
+
import './_chunks/_deps/serve-static.mjs';
|
|
78
|
+
import './_chunks/_deps/encodeurl.mjs';
|
|
79
|
+
import './_chunks/_deps/escape-html.mjs';
|
|
80
|
+
import './_chunks/_deps/parseurl.mjs';
|
|
81
|
+
import './_chunks/_deps/send.mjs';
|
|
82
|
+
import './_chunks/_deps/http-errors.mjs';
|
|
83
|
+
import './_chunks/_deps/depd.mjs';
|
|
84
|
+
import './_chunks/_deps/setprototypeof.mjs';
|
|
85
|
+
import './_chunks/_deps/statuses.mjs';
|
|
86
|
+
import './_chunks/_deps/inherits.mjs';
|
|
87
|
+
import './_chunks/_deps/toidentifier.mjs';
|
|
88
|
+
import './_chunks/_deps/debug.mjs';
|
|
31
89
|
import 'tty';
|
|
32
90
|
import 'util';
|
|
91
|
+
import './_chunks/_deps/ms.mjs';
|
|
92
|
+
import './_chunks/_deps/supports-color.mjs';
|
|
93
|
+
import './_chunks/_deps/etag.mjs';
|
|
94
|
+
import './_chunks/_deps/fresh.mjs';
|
|
95
|
+
import './_chunks/_deps/mime-types.mjs';
|
|
96
|
+
import './_chunks/_deps/mime-db.mjs';
|
|
97
|
+
import './_chunks/_deps/on-finished.mjs';
|
|
98
|
+
import './_chunks/_deps/ee-first.mjs';
|
|
99
|
+
import './_chunks/_deps/range-parser.mjs';
|
|
33
100
|
import 'stream';
|
|
34
|
-
import '
|
|
101
|
+
import './_chunks/_deps/httpxy.mjs';
|
|
35
102
|
import 'node:http';
|
|
36
103
|
import 'node:https';
|
|
37
104
|
import 'node:events';
|
|
38
|
-
import 'undici';
|
|
39
105
|
import 'youch-core';
|
|
40
106
|
import 'youch';
|
|
41
107
|
import 'source-map';
|
|
42
108
|
import 'srvx';
|
|
43
|
-
import '
|
|
44
|
-
import '
|
|
45
|
-
import '
|
|
46
|
-
import '
|
|
47
|
-
import '
|
|
48
|
-
import 'ohash';
|
|
49
|
-
import 'scule';
|
|
50
|
-
import 'module';
|
|
51
|
-
import 'consola/utils';
|
|
52
|
-
import 'node:zlib';
|
|
53
|
-
import 'nitro/meta';
|
|
54
|
-
import 'srvx/node';
|
|
55
|
-
import './_chunks/index2.mjs';
|
|
56
|
-
import './_chunks/info.mjs';
|
|
109
|
+
import './_chunks/_deps/@rollup/plugin-alias.mjs';
|
|
110
|
+
import './_chunks/_deps/@rollup/plugin-inject.mjs';
|
|
111
|
+
import './_chunks/_deps/@rollup/pluginutils.mjs';
|
|
112
|
+
import './_build/info.mjs';
|
|
113
|
+
import './_chunks/_deps/@rollup/plugin-replace.mjs';
|
|
57
114
|
import 'unenv';
|
|
58
|
-
import '
|
|
59
|
-
import 'node:querystring';
|
|
60
|
-
import 'constants';
|
|
115
|
+
import './_chunks/_deps/unwasm.mjs';
|
|
61
116
|
import 'node:crypto';
|
|
117
|
+
import './_chunks/_deps/knitwork.mjs';
|
|
62
118
|
import 'db0';
|
|
63
119
|
import 'esbuild';
|
|
64
120
|
import 'nf3';
|
|
65
121
|
import 'rendu';
|
|
122
|
+
import './_chunks/_presets/_types.mjs';
|
|
66
123
|
import 'vite';
|
|
124
|
+
import './_chunks/_deps/chokidar.mjs';
|
|
125
|
+
import 'fs/promises';
|
|
126
|
+
import 'events';
|
|
127
|
+
import './_chunks/_deps/readdirp.mjs';
|
|
128
|
+
import 'node:stream';
|
|
67
129
|
import 'get-port-please';
|
|
68
130
|
import 'node:child_process';
|
|
131
|
+
import './_chunks/_deps/@pi0/vite-plugin-fullstack.mjs';
|
|
132
|
+
import 'node:assert/strict';
|
package/lib/index.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// reserved for "nitro" import
|
package/lib/indexd.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// reserved for "nitro" import
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { fileURLToPath } from "node:url";
|
|
2
|
+
|
|
3
|
+
export const pkgDir = fileURLToPath(new URL("../../", import.meta.url));
|
|
4
|
+
|
|
5
|
+
export const runtimeDir = fileURLToPath(
|
|
6
|
+
new URL("../../dist/runtime/", import.meta.url)
|
|
7
|
+
);
|
|
8
|
+
|
|
9
|
+
export const presetsDir = fileURLToPath(
|
|
10
|
+
new URL("../../dist/presets/", import.meta.url)
|
|
11
|
+
);
|
|
12
|
+
|
|
13
|
+
export const runtimeDependencies = [
|
|
14
|
+
"crossws", // dep
|
|
15
|
+
"croner", // traced
|
|
16
|
+
"db0", // dep
|
|
17
|
+
"defu", // traced
|
|
18
|
+
"destr", // traced
|
|
19
|
+
"h3", // dep
|
|
20
|
+
"rou3", // sub-dep of h3
|
|
21
|
+
"hookable", // traced
|
|
22
|
+
"ofetch", // dep
|
|
23
|
+
"ohash", // traced
|
|
24
|
+
"rendu", // traced
|
|
25
|
+
"scule", // traced
|
|
26
|
+
"srvx", // dep
|
|
27
|
+
"ufo", // traced
|
|
28
|
+
"unctx", // traced
|
|
29
|
+
"unenv", // dep
|
|
30
|
+
"unstorage", // dep
|
|
31
|
+
"nitro/h3",
|
|
32
|
+
"nitro/deps/h3",
|
|
33
|
+
"nitro/deps/ofetch",
|
|
34
|
+
"nitro/runtime",
|
|
35
|
+
];
|
package/package.json
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nitro-nightly",
|
|
3
|
-
"version": "4.0.0-
|
|
3
|
+
"version": "4.0.0-20251030-091344-d4418b98",
|
|
4
4
|
"description": "Build and Deploy Universal JavaScript Servers",
|
|
5
5
|
"homepage": "https://nitro.build",
|
|
6
6
|
"repository": "nitrojs/nitro",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"exports": {
|
|
10
|
+
".": "./lib/index.mjs",
|
|
10
11
|
"./package.json": "./package.json",
|
|
11
|
-
"
|
|
12
|
+
"./builder": "./dist/builder.mjs",
|
|
12
13
|
"./config": "./lib/config.mjs",
|
|
13
14
|
"./types": "./dist/types/index.d.mts",
|
|
14
15
|
"./meta": "./lib/meta.mjs",
|
|
15
16
|
"./runtime": "./dist/runtime/index.mjs",
|
|
16
17
|
"./runtime/internal": "./dist/runtime/internal/index.mjs",
|
|
17
|
-
"./runtime/meta": "./lib/runtime
|
|
18
|
+
"./runtime/meta": "./lib/runtime/meta.mjs",
|
|
18
19
|
"./vite": "./dist/vite.mjs",
|
|
19
20
|
"./h3": "./lib/deps/h3.mjs",
|
|
20
21
|
"./deps/h3": "./lib/deps/h3.mjs",
|
|
@@ -53,64 +54,62 @@
|
|
|
53
54
|
},
|
|
54
55
|
"dependencies": {
|
|
55
56
|
"consola": "^3.4.2",
|
|
56
|
-
"cookie-es": "^2.0.0",
|
|
57
57
|
"crossws": "^0.4.1",
|
|
58
58
|
"db0": "^0.3.4",
|
|
59
|
-
"esbuild": "^0.25.
|
|
60
|
-
"
|
|
61
|
-
"h3": "2.0.1-rc.2",
|
|
59
|
+
"esbuild": "^0.25.11",
|
|
60
|
+
"h3": "2.0.1-rc.5",
|
|
62
61
|
"jiti": "^2.6.1",
|
|
63
|
-
"nf3": "^0.1.
|
|
64
|
-
"ofetch": "^
|
|
62
|
+
"nf3": "^0.1.5",
|
|
63
|
+
"ofetch": "^2.0.0-alpha.3",
|
|
65
64
|
"ohash": "^2.0.11",
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"srvx": "^0.8.15",
|
|
65
|
+
"rollup": "^4.52.5",
|
|
66
|
+
"srvx": "^0.9.2",
|
|
69
67
|
"undici": "^7.16.0",
|
|
70
|
-
"unenv": "2.0.0-rc.
|
|
71
|
-
"unstorage": "2.0.0-alpha.
|
|
68
|
+
"unenv": "^2.0.0-rc.24",
|
|
69
|
+
"unstorage": "^2.0.0-alpha.4"
|
|
72
70
|
},
|
|
73
71
|
"devDependencies": {
|
|
74
72
|
"@azure/functions": "^3.5.1",
|
|
75
73
|
"@azure/static-web-apps-cli": "^2.0.7",
|
|
76
|
-
"@cloudflare/workers-types": "^4.
|
|
74
|
+
"@cloudflare/workers-types": "^4.20251014.0",
|
|
77
75
|
"@deno/types": "^0.0.1",
|
|
78
|
-
"@
|
|
79
|
-
"@netlify/functions": "^
|
|
80
|
-
"@
|
|
81
|
-
"@rollup/plugin-
|
|
76
|
+
"@hiogawa/vite-plugin-fullstack": "npm:@pi0/vite-plugin-fullstack@0.0.5-pr-1297",
|
|
77
|
+
"@netlify/edge-functions": "^3.0.1",
|
|
78
|
+
"@netlify/functions": "^5.0.1",
|
|
79
|
+
"@rollup/plugin-alias": "^6.0.0",
|
|
80
|
+
"@rollup/plugin-commonjs": "^28.0.9",
|
|
82
81
|
"@rollup/plugin-inject": "^5.0.5",
|
|
83
82
|
"@rollup/plugin-json": "^6.1.0",
|
|
84
|
-
"@rollup/plugin-node-resolve": "^16.0.
|
|
85
|
-
"@rollup/plugin-replace": "^6.0.
|
|
83
|
+
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
84
|
+
"@rollup/plugin-replace": "^6.0.3",
|
|
86
85
|
"@rollup/plugin-terser": "^0.4.4",
|
|
87
|
-
"@scalar/api-reference": "^1.
|
|
88
|
-
"@types/
|
|
89
|
-
"@types/aws-lambda": "^8.10.155",
|
|
86
|
+
"@scalar/api-reference": "^1.38.1",
|
|
87
|
+
"@types/aws-lambda": "^8.10.157",
|
|
90
88
|
"@types/estree": "^1.0.8",
|
|
91
89
|
"@types/etag": "^1.8.4",
|
|
92
90
|
"@types/fs-extra": "^11.0.4",
|
|
93
|
-
"@types/http-proxy": "^1.17.
|
|
94
|
-
"@types/node": "^24.
|
|
91
|
+
"@types/http-proxy": "^1.17.17",
|
|
92
|
+
"@types/node": "^24.9.2",
|
|
95
93
|
"@types/node-fetch": "^2.6.13",
|
|
96
94
|
"@types/semver": "^7.7.1",
|
|
97
|
-
"@types/serve-static": "^
|
|
95
|
+
"@types/serve-static": "^2.2.0",
|
|
98
96
|
"@types/xml2js": "^0.4.14",
|
|
99
|
-
"@vitest/coverage-v8": "^
|
|
97
|
+
"@vitest/coverage-v8": "^4.0.5",
|
|
100
98
|
"automd": "^0.4.2",
|
|
101
|
-
"c12": "^3.3.
|
|
99
|
+
"c12": "^3.3.1",
|
|
102
100
|
"changelogen": "^0.6.2",
|
|
103
101
|
"chokidar": "^4.0.3",
|
|
104
102
|
"citty": "^0.1.6",
|
|
105
103
|
"compatx": "^0.2.0",
|
|
106
104
|
"confbox": "^0.2.2",
|
|
105
|
+
"cookie-es": "^2.0.0",
|
|
107
106
|
"croner": "^9.1.0",
|
|
108
107
|
"defu": "^6.1.4",
|
|
109
108
|
"destr": "^2.0.5",
|
|
110
109
|
"dot-prop": "^10.1.0",
|
|
111
110
|
"edge-runtime": "^4.0.1",
|
|
112
111
|
"escape-string-regexp": "^5.0.0",
|
|
113
|
-
"eslint": "^9.
|
|
112
|
+
"eslint": "^9.38.0",
|
|
114
113
|
"eslint-config-unjs": "^0.5.0",
|
|
115
114
|
"etag": "^1.8.1",
|
|
116
115
|
"execa": "^9.6.0",
|
|
@@ -119,14 +118,13 @@
|
|
|
119
118
|
"fs-extra": "^11.3.2",
|
|
120
119
|
"get-port-please": "^3.2.0",
|
|
121
120
|
"gzip-size": "^7.0.0",
|
|
122
|
-
"hookable": "
|
|
121
|
+
"hookable": "6.0.0-rc.1",
|
|
123
122
|
"httpxy": "^0.1.7",
|
|
124
123
|
"klona": "^2.0.6",
|
|
125
124
|
"knitwork": "^1.2.0",
|
|
126
|
-
"magic-string": "^0.30.
|
|
127
|
-
"magicast": "^0.3.5",
|
|
125
|
+
"magic-string": "^0.30.21",
|
|
128
126
|
"mime": "^4.1.0",
|
|
129
|
-
"miniflare": "^4.
|
|
127
|
+
"miniflare": "^4.20251011.1",
|
|
130
128
|
"mlly": "^1.8.0",
|
|
131
129
|
"pathe": "^2.0.3",
|
|
132
130
|
"perfect-debounce": "^2.0.0",
|
|
@@ -134,14 +132,15 @@
|
|
|
134
132
|
"prettier": "^3.6.2",
|
|
135
133
|
"pretty-bytes": "^7.1.0",
|
|
136
134
|
"react": "^19.2.0",
|
|
137
|
-
"
|
|
138
|
-
"
|
|
135
|
+
"rendu": "^0.0.7",
|
|
136
|
+
"rolldown": "1.0.0-beta.45",
|
|
137
|
+
"rou3": "^0.7.9",
|
|
139
138
|
"scule": "^1.3.0",
|
|
140
139
|
"semver": "^7.7.3",
|
|
141
140
|
"serve-placeholder": "^2.0.2",
|
|
142
141
|
"serve-static": "^2.2.0",
|
|
143
142
|
"source-map": "^0.7.6",
|
|
144
|
-
"std-env": "^3.
|
|
143
|
+
"std-env": "^3.10.0",
|
|
145
144
|
"tinyglobby": "^0.2.15",
|
|
146
145
|
"typescript": "^5.9.3",
|
|
147
146
|
"ufo": "^1.6.1",
|
|
@@ -149,14 +148,14 @@
|
|
|
149
148
|
"unbuild": "^3.6.1",
|
|
150
149
|
"uncrypto": "^0.1.3",
|
|
151
150
|
"unctx": "^2.4.1",
|
|
152
|
-
"unimport": "^5.
|
|
151
|
+
"unimport": "^5.5.0",
|
|
153
152
|
"unplugin-utils": "^0.3.1",
|
|
154
153
|
"untyped": "^2.0.0",
|
|
155
154
|
"unwasm": "^0.3.11",
|
|
156
|
-
"vitest": "^
|
|
157
|
-
"wrangler": "^4.
|
|
155
|
+
"vitest": "^4.0.5",
|
|
156
|
+
"wrangler": "^4.45.2",
|
|
158
157
|
"xml2js": "^0.6.2",
|
|
159
|
-
"youch": "4.1.0-beta.11",
|
|
158
|
+
"youch": "^4.1.0-beta.11",
|
|
160
159
|
"youch-core": "^0.3.3"
|
|
161
160
|
},
|
|
162
161
|
"peerDependencies": {
|
package/dist/_chunks/build.mjs
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { n as nitro } from './plugin.mjs';
|
|
2
|
-
import './index.mjs';
|
|
3
|
-
import 'consola';
|
|
4
|
-
import 'hookable';
|
|
5
|
-
import 'nitro/runtime/meta';
|
|
6
|
-
import 'node:fs';
|
|
7
|
-
import 'node:fs/promises';
|
|
8
|
-
import 'node:url';
|
|
9
|
-
import 'node:os';
|
|
10
|
-
import 'node:path';
|
|
11
|
-
import 'node:assert';
|
|
12
|
-
import 'node:process';
|
|
13
|
-
import 'node:v8';
|
|
14
|
-
import 'node:util';
|
|
15
|
-
import 'jiti';
|
|
16
|
-
import 'destr';
|
|
17
|
-
import 'defu';
|
|
18
|
-
import './pathe.M-eThtNZ.mjs';
|
|
19
|
-
import 'fs';
|
|
20
|
-
import 'path';
|
|
21
|
-
import 'os';
|
|
22
|
-
import 'crypto';
|
|
23
|
-
import './app.mjs';
|
|
24
|
-
import 'node:worker_threads';
|
|
25
|
-
import 'std-env';
|
|
26
|
-
import 'fs/promises';
|
|
27
|
-
import 'events';
|
|
28
|
-
import 'node:stream';
|
|
29
|
-
import 'h3';
|
|
30
|
-
import 'url';
|
|
31
|
-
import 'tty';
|
|
32
|
-
import 'util';
|
|
33
|
-
import 'stream';
|
|
34
|
-
import 'ufo';
|
|
35
|
-
import 'node:http';
|
|
36
|
-
import 'node:https';
|
|
37
|
-
import 'node:events';
|
|
38
|
-
import 'undici';
|
|
39
|
-
import 'youch-core';
|
|
40
|
-
import 'youch';
|
|
41
|
-
import 'source-map';
|
|
42
|
-
import 'srvx';
|
|
43
|
-
import 'klona/full';
|
|
44
|
-
import 'node:module';
|
|
45
|
-
import 'ofetch';
|
|
46
|
-
import 'klona';
|
|
47
|
-
import 'unstorage';
|
|
48
|
-
import 'ohash';
|
|
49
|
-
import 'scule';
|
|
50
|
-
import 'module';
|
|
51
|
-
import 'consola/utils';
|
|
52
|
-
import 'node:zlib';
|
|
53
|
-
import 'nitro/meta';
|
|
54
|
-
import 'srvx/node';
|
|
55
|
-
import './index2.mjs';
|
|
56
|
-
import './info.mjs';
|
|
57
|
-
import 'unenv';
|
|
58
|
-
import 'node:buffer';
|
|
59
|
-
import 'node:querystring';
|
|
60
|
-
import 'constants';
|
|
61
|
-
import 'node:crypto';
|
|
62
|
-
import 'db0';
|
|
63
|
-
import 'esbuild';
|
|
64
|
-
import 'nf3';
|
|
65
|
-
import 'rendu';
|
|
66
|
-
import 'vite';
|
|
67
|
-
import 'get-port-please';
|
|
68
|
-
import 'node:child_process';
|
|
69
|
-
|
|
70
|
-
async function viteBuild(nitro$1) {
|
|
71
|
-
if (nitro$1.options.dev) {
|
|
72
|
-
throw new Error(
|
|
73
|
-
"Nitro vite builder is not supported in development mode. Please use `vite dev` instead."
|
|
74
|
-
);
|
|
75
|
-
}
|
|
76
|
-
const { createBuilder } = await import('vite');
|
|
77
|
-
const builder = await createBuilder({
|
|
78
|
-
base: nitro$1.options.rootDir,
|
|
79
|
-
plugins: [nitro({ _nitro: nitro$1 })]
|
|
80
|
-
});
|
|
81
|
-
await builder.buildApp();
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export { viteBuild };
|