nitro-nightly 3.1.0-20251028-090722-437659e4 → 3.1.0-20251028-131831-fe9fd554

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.
Files changed (157) hide show
  1. package/dist/_build/build.mjs +379 -14
  2. package/dist/_build/{rollup.mjs → build2.mjs} +218 -68
  3. package/dist/_build/info.mjs +963 -7
  4. package/dist/_build/prepare.mjs +1491 -2
  5. package/dist/_build/snapshot.mjs +155 -31
  6. package/dist/_build/vite.mjs +43 -2307
  7. package/dist/_build/vite2.mjs +149 -0
  8. package/dist/{_deps → _chunks/_deps}/c12.mjs +1 -1
  9. package/dist/{_deps → _chunks/_deps}/giget.mjs +1 -1
  10. package/dist/_chunks/_deps/klona.mjs +137 -0
  11. package/dist/{_deps → _chunks/_deps}/knitwork.mjs +1 -1
  12. package/dist/{_deps → _chunks/_deps}/local-pkg.mjs +1 -1
  13. package/dist/{_deps → _chunks/_deps}/mlly.mjs +1 -1
  14. package/dist/{_deps → _chunks/_deps}/nypm.mjs +1 -1
  15. package/dist/{_deps → _chunks/_deps}/pathe.mjs +1 -1
  16. package/dist/{_deps → _chunks/_deps}/pkg-types.mjs +2 -2
  17. package/dist/{_deps → _chunks/_deps}/rou3.mjs +1 -1
  18. package/dist/_chunks/_deps/std-env.mjs +3 -0
  19. package/dist/{_deps → _chunks/_deps}/unimport.mjs +2 -2
  20. package/dist/{_deps → _chunks/_deps}/unplugin-utils.mjs +1 -1
  21. package/dist/{_deps → _chunks/_deps}/untyped.mjs +1 -1
  22. package/dist/{_deps → _chunks/_deps}/unwasm.mjs +2 -2
  23. package/dist/{_presets → _chunks/_presets}/_resolve.mjs +2 -2
  24. package/dist/{_presets → _chunks/_presets}/_utils.mjs +1 -1
  25. package/dist/{_presets → _chunks/_presets}/azure.mjs +1 -1
  26. package/dist/{_presets → _chunks/_presets}/cloudflare.mjs +4 -4
  27. package/dist/{_presets → _chunks/_presets}/deno.mjs +1 -1
  28. package/dist/{_presets → _chunks/_presets}/firebase.mjs +1 -1
  29. package/dist/{_presets → _chunks/_presets}/iis.mjs +1 -1
  30. package/dist/{_presets → _chunks/_presets}/index.mjs +1 -1
  31. package/dist/{_presets → _chunks/_presets}/vercel.mjs +3 -3
  32. package/dist/{_presets → _chunks/_presets}/zeabur.mjs +1 -1
  33. package/dist/_chunks/app.mjs +600 -0
  34. package/dist/_chunks/index.mjs +648 -0
  35. package/dist/_chunks/server.mjs +256 -0
  36. package/dist/_cli/build.mjs +2 -2
  37. package/dist/_cli/dev.mjs +46 -130
  38. package/dist/_cli/index.mjs +1 -1
  39. package/dist/_cli/list.mjs +2 -2
  40. package/dist/_cli/prepare.mjs +2 -2
  41. package/dist/_cli/run.mjs +2 -2
  42. package/dist/cli/index.mjs +1 -1
  43. package/dist/index.mjs +94 -120
  44. package/dist/node_modules/cookie-es/dist/index.mjs +262 -0
  45. package/dist/node_modules/cookie-es/package.json +37 -0
  46. package/dist/node_modules/rendu/dist/index.mjs +380 -0
  47. package/dist/node_modules/rendu/package.json +47 -0
  48. package/dist/runtime/internal/task.mjs +1 -2
  49. package/dist/types/index.d.mts +2 -1
  50. package/dist/vite.mjs +103 -114
  51. package/lib/runtime/meta.mjs +18 -25
  52. package/package.json +9 -10
  53. package/dist/_build/assets.mjs +0 -235
  54. package/dist/_build/config.mjs +0 -124
  55. package/dist/_build/plugins.mjs +0 -1041
  56. package/dist/_build/rolldown.mjs +0 -494
  57. package/dist/_build/types.mjs +0 -268
  58. package/dist/node_modules/klona/dist/index.mjs +0 -81
  59. package/dist/node_modules/klona/full/index.mjs +0 -53
  60. package/dist/node_modules/klona/package.json +0 -74
  61. package/dist/node_modules/std-env/dist/index.mjs +0 -1
  62. package/dist/node_modules/std-env/package.json +0 -46
  63. /package/dist/{_deps → _chunks/_deps}/@jridgewell/gen-mapping.mjs +0 -0
  64. /package/dist/{_deps → _chunks/_deps}/@jridgewell/remapping.mjs +0 -0
  65. /package/dist/{_deps → _chunks/_deps}/@jridgewell/resolve-uri.mjs +0 -0
  66. /package/dist/{_deps → _chunks/_deps}/@jridgewell/sourcemap-codec.mjs +0 -0
  67. /package/dist/{_deps → _chunks/_deps}/@jridgewell/trace-mapping.mjs +0 -0
  68. /package/dist/{_deps → _chunks/_deps}/@pi0/vite-plugin-fullstack.mjs +0 -0
  69. /package/dist/{_deps → _chunks/_deps}/@rollup/plugin-alias.mjs +0 -0
  70. /package/dist/{_deps → _chunks/_deps}/@rollup/plugin-commonjs.mjs +0 -0
  71. /package/dist/{_deps → _chunks/_deps}/@rollup/plugin-inject.mjs +0 -0
  72. /package/dist/{_deps → _chunks/_deps}/@rollup/plugin-json.mjs +0 -0
  73. /package/dist/{_deps → _chunks/_deps}/@rollup/plugin-node-resolve.mjs +0 -0
  74. /package/dist/{_deps → _chunks/_deps}/@rollup/plugin-replace.mjs +0 -0
  75. /package/dist/{_deps → _chunks/_deps}/@rollup/pluginutils.mjs +0 -0
  76. /package/dist/{_deps → _chunks/_deps}/acorn.mjs +0 -0
  77. /package/dist/{_deps → _chunks/_deps}/chokidar.mjs +0 -0
  78. /package/dist/{_deps → _chunks/_deps}/citty.mjs +0 -0
  79. /package/dist/{_deps → _chunks/_deps}/commondir.mjs +0 -0
  80. /package/dist/{_deps → _chunks/_deps}/compatx.mjs +0 -0
  81. /package/dist/{_deps → _chunks/_deps}/confbox.mjs +0 -0
  82. /package/dist/{_deps → _chunks/_deps}/debug.mjs +0 -0
  83. /package/dist/{_deps → _chunks/_deps}/deepmerge.mjs +0 -0
  84. /package/dist/{_deps → _chunks/_deps}/depd.mjs +0 -0
  85. /package/dist/{_deps → _chunks/_deps}/dot-prop.mjs +0 -0
  86. /package/dist/{_deps → _chunks/_deps}/dotenv.mjs +0 -0
  87. /package/dist/{_deps → _chunks/_deps}/duplexer.mjs +0 -0
  88. /package/dist/{_deps → _chunks/_deps}/ee-first.mjs +0 -0
  89. /package/dist/{_deps → _chunks/_deps}/encodeurl.mjs +0 -0
  90. /package/dist/{_deps → _chunks/_deps}/escape-html.mjs +0 -0
  91. /package/dist/{_deps → _chunks/_deps}/escape-string-regexp.mjs +0 -0
  92. /package/dist/{_deps → _chunks/_deps}/estree-walker.mjs +0 -0
  93. /package/dist/{_deps → _chunks/_deps}/etag.mjs +0 -0
  94. /package/dist/{_deps → _chunks/_deps}/exsolve.mjs +0 -0
  95. /package/dist/{_deps → _chunks/_deps}/fdir.mjs +0 -0
  96. /package/dist/{_deps → _chunks/_deps}/fresh.mjs +0 -0
  97. /package/dist/{_deps → _chunks/_deps}/function-bind.mjs +0 -0
  98. /package/dist/{_deps → _chunks/_deps}/gzip-size.mjs +0 -0
  99. /package/dist/{_deps → _chunks/_deps}/hasown.mjs +0 -0
  100. /package/dist/{_deps → _chunks/_deps}/http-errors.mjs +0 -0
  101. /package/dist/{_deps → _chunks/_deps}/httpxy.mjs +0 -0
  102. /package/dist/{_deps → _chunks/_deps}/inherits.mjs +0 -0
  103. /package/dist/{_deps → _chunks/_deps}/is-core-module.mjs +0 -0
  104. /package/dist/{_deps → _chunks/_deps}/is-module.mjs +0 -0
  105. /package/dist/{_deps → _chunks/_deps}/is-reference.mjs +0 -0
  106. /package/dist/{_deps → _chunks/_deps}/js-tokens.mjs +0 -0
  107. /package/dist/{_deps → _chunks/_deps}/magic-string.mjs +0 -0
  108. /package/dist/{_deps → _chunks/_deps}/mime-db.mjs +0 -0
  109. /package/dist/{_deps → _chunks/_deps}/mime-types.mjs +0 -0
  110. /package/dist/{_deps → _chunks/_deps}/mime.mjs +0 -0
  111. /package/dist/{_deps → _chunks/_deps}/ms.mjs +0 -0
  112. /package/dist/{_deps → _chunks/_deps}/node-fetch-native.mjs +0 -0
  113. /package/dist/{_deps → _chunks/_deps}/on-finished.mjs +0 -0
  114. /package/dist/{_deps → _chunks/_deps}/parseurl.mjs +0 -0
  115. /package/dist/{_deps → _chunks/_deps}/path-parse.mjs +0 -0
  116. /package/dist/{_deps → _chunks/_deps}/perfect-debounce.mjs +0 -0
  117. /package/dist/{_deps → _chunks/_deps}/picomatch.mjs +0 -0
  118. /package/dist/{_deps → _chunks/_deps}/pretty-bytes.mjs +0 -0
  119. /package/dist/{_deps → _chunks/_deps}/quansync.mjs +0 -0
  120. /package/dist/{_deps → _chunks/_deps}/range-parser.mjs +0 -0
  121. /package/dist/{_deps → _chunks/_deps}/rc9.mjs +0 -0
  122. /package/dist/{_deps → _chunks/_deps}/readdirp.mjs +0 -0
  123. /package/dist/{_deps → _chunks/_deps}/resolve.mjs +0 -0
  124. /package/dist/{_deps → _chunks/_deps}/send.mjs +0 -0
  125. /package/dist/{_deps → _chunks/_deps}/serve-static.mjs +0 -0
  126. /package/dist/{_deps → _chunks/_deps}/setprototypeof.mjs +0 -0
  127. /package/dist/{_deps → _chunks/_deps}/statuses.mjs +0 -0
  128. /package/dist/{_deps → _chunks/_deps}/strip-literal.mjs +0 -0
  129. /package/dist/{_deps → _chunks/_deps}/supports-color.mjs +0 -0
  130. /package/dist/{_deps → _chunks/_deps}/tinyexec.mjs +0 -0
  131. /package/dist/{_deps → _chunks/_deps}/tinyglobby.mjs +0 -0
  132. /package/dist/{_deps → _chunks/_deps}/toidentifier.mjs +0 -0
  133. /package/dist/{_deps → _chunks/_deps}/ultrahtml.mjs +0 -0
  134. /package/dist/{_deps → _chunks/_deps}/unplugin.mjs +0 -0
  135. /package/dist/{_deps → _chunks/_deps}/webpack-virtual-modules.mjs +0 -0
  136. /package/dist/{_presets → _chunks/_presets}/_all.mjs +0 -0
  137. /package/dist/{_presets → _chunks/_presets}/_nitro.mjs +0 -0
  138. /package/dist/{_presets → _chunks/_presets}/_static.mjs +0 -0
  139. /package/dist/{_presets → _chunks/_presets}/_types.mjs +0 -0
  140. /package/dist/{_presets → _chunks/_presets}/alwaysdata.mjs +0 -0
  141. /package/dist/{_presets → _chunks/_presets}/aws-amplify.mjs +0 -0
  142. /package/dist/{_presets → _chunks/_presets}/aws-lambda.mjs +0 -0
  143. /package/dist/{_presets → _chunks/_presets}/bun.mjs +0 -0
  144. /package/dist/{_presets → _chunks/_presets}/cleavr.mjs +0 -0
  145. /package/dist/{_presets → _chunks/_presets}/digitalocean.mjs +0 -0
  146. /package/dist/{_presets → _chunks/_presets}/flightcontrol.mjs +0 -0
  147. /package/dist/{_presets → _chunks/_presets}/genezio.mjs +0 -0
  148. /package/dist/{_presets → _chunks/_presets}/heroku.mjs +0 -0
  149. /package/dist/{_presets → _chunks/_presets}/koyeb.mjs +0 -0
  150. /package/dist/{_presets → _chunks/_presets}/netlify.mjs +0 -0
  151. /package/dist/{_presets → _chunks/_presets}/node.mjs +0 -0
  152. /package/dist/{_presets → _chunks/_presets}/platform.mjs +0 -0
  153. /package/dist/{_presets → _chunks/_presets}/render.mjs +0 -0
  154. /package/dist/{_presets → _chunks/_presets}/standard.mjs +0 -0
  155. /package/dist/{_presets → _chunks/_presets}/stormkit.mjs +0 -0
  156. /package/dist/{_presets → _chunks/_presets}/winterjs.mjs +0 -0
  157. /package/dist/{_presets → _chunks/_presets}/zerops.mjs +0 -0
@@ -0,0 +1,256 @@
1
+ import { N as NitroDevApp, a as NodeDevWorker } from './app.mjs';
2
+ import { HTTPError } from 'h3';
3
+ import { version } from 'nitro/meta';
4
+ import consola from 'consola';
5
+ import { writeFile } from 'node:fs/promises';
6
+ import { watch } from './_deps/chokidar.mjs';
7
+ import { serve } from 'srvx/node';
8
+ import { d as debounce } from './_deps/perfect-debounce.mjs';
9
+ import { a, T } from './_deps/std-env.mjs';
10
+ import { r as resolve } from './_deps/pathe.mjs';
11
+
12
+ function createDevServer(nitro) {
13
+ return new NitroDevServer(nitro);
14
+ }
15
+ class NitroDevServer extends NitroDevApp {
16
+ #entry;
17
+ #workerData = {};
18
+ #listeners = [];
19
+ #watcher;
20
+ #workers = [];
21
+ #workerIdCtr = 0;
22
+ #workerError;
23
+ #building = true;
24
+ // Assume initial build will start soon
25
+ #buildError;
26
+ #messageListeners = /* @__PURE__ */ new Set();
27
+ constructor(nitro) {
28
+ super(nitro, async (event) => {
29
+ const worker = await this.#getWorker();
30
+ if (!worker) {
31
+ return this.#generateError();
32
+ }
33
+ return worker.fetch(event.req);
34
+ });
35
+ for (const key of Object.getOwnPropertyNames(NitroDevServer.prototype)) {
36
+ const value = this[key];
37
+ if (typeof value === "function" && key !== "constructor") {
38
+ this[key] = value.bind(this);
39
+ }
40
+ }
41
+ this.#entry = resolve(
42
+ nitro.options.output.dir,
43
+ nitro.options.output.serverDir,
44
+ "index.mjs"
45
+ );
46
+ nitro.hooks.hook("close", () => this.close());
47
+ nitro.hooks.hook("dev:start", () => {
48
+ this.#building = true;
49
+ this.#buildError = void 0;
50
+ });
51
+ nitro.hooks.hook("dev:reload", (payload) => {
52
+ this.#buildError = void 0;
53
+ this.#building = false;
54
+ if (payload?.entry) {
55
+ this.#entry = payload.entry;
56
+ }
57
+ if (payload?.workerData) {
58
+ this.#workerData = payload.workerData;
59
+ }
60
+ this.reload();
61
+ });
62
+ nitro.hooks.hook("dev:error", (cause) => {
63
+ this.#buildError = cause;
64
+ this.#building = false;
65
+ for (const worker of this.#workers) {
66
+ worker.close();
67
+ }
68
+ });
69
+ if (nitro.options.devServer.watch.length > 0) {
70
+ const debouncedReload = debounce(() => this.reload());
71
+ this.#watcher = watch(
72
+ nitro.options.devServer.watch,
73
+ nitro.options.watchOptions
74
+ );
75
+ this.#watcher.on("add", debouncedReload).on("change", debouncedReload);
76
+ }
77
+ }
78
+ // #region Public Methods
79
+ async upgrade(req, socket, head) {
80
+ const worker = await this.#getWorker();
81
+ if (!worker) {
82
+ throw new HTTPError({
83
+ status: 503,
84
+ statusText: "No worker available."
85
+ });
86
+ }
87
+ return worker.upgrade(req, socket, head);
88
+ }
89
+ listen(opts) {
90
+ const server = serve({
91
+ ...opts,
92
+ fetch: this.fetch
93
+ });
94
+ this.#listeners.push(server);
95
+ if (server.node?.server) {
96
+ server.node.server.on(
97
+ "upgrade",
98
+ (req, sock, head) => this.upgrade(req, sock, head)
99
+ );
100
+ }
101
+ return server;
102
+ }
103
+ async close() {
104
+ await Promise.all(
105
+ [
106
+ Promise.all(this.#listeners.map((l) => l.close())).then(() => {
107
+ this.#listeners = [];
108
+ }),
109
+ Promise.all(this.#workers.map((w) => w.close())).then(() => {
110
+ this.#workers = [];
111
+ }),
112
+ Promise.resolve(this.#watcher?.close()).then(() => {
113
+ this.#watcher = void 0;
114
+ })
115
+ ].map(
116
+ (p) => p.catch((error) => {
117
+ consola.error(error);
118
+ })
119
+ )
120
+ );
121
+ }
122
+ reload() {
123
+ for (const worker2 of this.#workers) {
124
+ worker2.close();
125
+ }
126
+ const worker = new NodeDevWorker({
127
+ name: `Nitro_${this.#workerIdCtr++}`,
128
+ entry: this.#entry,
129
+ data: {
130
+ ...this.#workerData,
131
+ globals: {
132
+ __NITRO_RUNTIME_CONFIG__: this.nitro.options.runtimeConfig,
133
+ ...this.#workerData.globals
134
+ }
135
+ },
136
+ hooks: {
137
+ onClose: (worker2, cause) => {
138
+ this.#workerError = cause;
139
+ const index = this.#workers.indexOf(worker2);
140
+ if (index !== -1) {
141
+ this.#workers.splice(index, 1);
142
+ }
143
+ },
144
+ onReady: (worker2, addr) => {
145
+ this.#writeBuildInfo(worker2, addr);
146
+ }
147
+ }
148
+ });
149
+ if (!worker.closed) {
150
+ for (const listener of this.#messageListeners) {
151
+ worker.onMessage(listener);
152
+ }
153
+ this.#workers.unshift(worker);
154
+ }
155
+ }
156
+ sendMessage(message) {
157
+ for (const worker of this.#workers) {
158
+ if (!worker.closed) {
159
+ worker.sendMessage(message);
160
+ }
161
+ }
162
+ }
163
+ onMessage(listener) {
164
+ this.#messageListeners.add(listener);
165
+ for (const worker of this.#workers) {
166
+ worker.onMessage(listener);
167
+ }
168
+ }
169
+ offMessage(listener) {
170
+ this.#messageListeners.delete(listener);
171
+ for (const worker of this.#workers) {
172
+ worker.offMessage(listener);
173
+ }
174
+ }
175
+ // #endregion
176
+ // #region Private Methods
177
+ #writeBuildInfo(_worker, addr) {
178
+ const buildInfoPath = resolve(this.nitro.options.buildDir, "nitro.json");
179
+ const buildInfo = {
180
+ date: (/* @__PURE__ */ new Date()).toJSON(),
181
+ preset: this.nitro.options.preset,
182
+ framework: this.nitro.options.framework,
183
+ versions: {
184
+ nitro: version
185
+ },
186
+ dev: {
187
+ pid: process.pid,
188
+ workerAddress: addr
189
+ }
190
+ };
191
+ writeFile(buildInfoPath, JSON.stringify(buildInfo, null, 2)).catch(
192
+ (error) => {
193
+ consola.error(error);
194
+ }
195
+ );
196
+ }
197
+ async #getWorker() {
198
+ let retry = 0;
199
+ const maxRetries = a || T ? 100 : 10;
200
+ while (this.#building || ++retry < maxRetries) {
201
+ if ((this.#workers.length === 0 || this.#buildError) && !this.#building) {
202
+ return;
203
+ }
204
+ const activeWorker = this.#workers.find((w) => w.ready);
205
+ if (activeWorker) {
206
+ return activeWorker;
207
+ }
208
+ await new Promise((resolve2) => setTimeout(resolve2, 600));
209
+ }
210
+ }
211
+ #generateError() {
212
+ const error = this.#buildError || this.#workerError;
213
+ if (error) {
214
+ try {
215
+ error.unhandled = false;
216
+ let id = error.id || error.path;
217
+ if (id) {
218
+ const cause = error.errors?.[0];
219
+ const loc = error.location || error.loc || cause?.location || cause?.loc;
220
+ if (loc) {
221
+ id += `:${loc.line}:${loc.column}`;
222
+ }
223
+ error.stack = (error.stack || "").replace(
224
+ /(^\s*at\s+.+)/m,
225
+ ` at ${id}
226
+ $1`
227
+ );
228
+ }
229
+ } catch {
230
+ }
231
+ return new HTTPError(error);
232
+ }
233
+ return new Response(
234
+ JSON.stringify(
235
+ {
236
+ error: "Dev server is unavailable.",
237
+ hint: "Please reload the page and check the console for errors if the issue persists."
238
+ },
239
+ null,
240
+ 2
241
+ ),
242
+ {
243
+ status: 503,
244
+ statusText: "Dev server is unavailable",
245
+ headers: {
246
+ "Content-Type": "application/json",
247
+ "Cache-Control": "no-store",
248
+ Refresh: "3"
249
+ }
250
+ }
251
+ );
252
+ }
253
+ // #endregion
254
+ }
255
+
256
+ export { NitroDevServer as N, createDevServer as c };
@@ -1,8 +1,8 @@
1
1
  import nodeCrypto from 'node:crypto';
2
- import { d as defineCommand } from '../_deps/citty.mjs';
2
+ import { d as defineCommand } from '../_chunks/_deps/citty.mjs';
3
3
  import { createNitro, prepare, copyPublicAssets, prerender, build as build$1 } from 'nitro';
4
4
  import { c as commonArgs } from './common.mjs';
5
- import { a as resolve } from '../_deps/pathe.mjs';
5
+ import { r as resolve } from '../_chunks/_deps/pathe.mjs';
6
6
  import 'consola';
7
7
  import 'consola/utils';
8
8
 
package/dist/_cli/dev.mjs CHANGED
@@ -1,149 +1,65 @@
1
- import { d as defineCommand } from '../_deps/citty.mjs';
1
+ import { d as defineCommand } from '../_chunks/_deps/citty.mjs';
2
2
  import { consola } from 'consola';
3
3
  import { createNitro, prepare, build } from 'nitro';
4
4
  import { c as commonArgs } from './common.mjs';
5
- import { N as NitroDevServer } from '../_build/vite.mjs';
6
- import { a as resolve } from '../_deps/pathe.mjs';
5
+ import { N as NitroDevServer } from '../_chunks/server.mjs';
6
+ import { r as resolve } from '../_chunks/_deps/pathe.mjs';
7
7
  import 'consola/utils';
8
- import 'node:url';
9
- import 'defu';
10
- import '../_deps/mime.mjs';
11
- import '../_build/assets.mjs';
8
+ import '../_chunks/app.mjs';
12
9
  import 'node:fs';
13
- import '../_deps/tinyglobby.mjs';
14
- import 'fs';
15
- import 'path';
16
- import 'url';
17
- import '../_deps/fdir.mjs';
18
- import 'module';
19
- import '../_deps/picomatch.mjs';
20
- import '../_deps/commondir.mjs';
21
10
  import 'node:fs/promises';
22
- import '../_deps/dot-prop.mjs';
23
- import 'node:zlib';
24
- import '../_deps/rou3.mjs';
25
- import 'ufo';
26
- import '../_build/build.mjs';
27
- import '../_build/rolldown.mjs';
28
- import '../_deps/mlly.mjs';
29
- import '../_deps/acorn.mjs';
30
- import 'node:module';
31
- import '../_deps/pkg-types.mjs';
32
- import '../_deps/confbox.mjs';
33
- import '../_deps/exsolve.mjs';
34
- import 'node:path';
35
- import 'node:assert';
36
- import 'node:process';
37
- import 'node:v8';
38
- import 'node:util';
39
- import 'nitro/runtime/meta';
40
- import '../_build/config.mjs';
41
- import 'unenv';
42
- import '../_build/plugins.mjs';
43
- import '../_deps/@rollup/plugin-replace.mjs';
44
- import '../_deps/magic-string.mjs';
45
- import '../_deps/@jridgewell/sourcemap-codec.mjs';
46
- import '../_deps/@rollup/pluginutils.mjs';
47
- import '../_deps/estree-walker.mjs';
48
- import 'ohash';
49
- import '../_deps/unimport.mjs';
50
- import 'scule';
51
- import 'node:os';
52
- import '../_deps/unplugin.mjs';
53
- import 'node:buffer';
54
- import '../_deps/@jridgewell/remapping.mjs';
55
- import '../_deps/@jridgewell/trace-mapping.mjs';
56
- import '../_deps/@jridgewell/resolve-uri.mjs';
57
- import '../_deps/@jridgewell/gen-mapping.mjs';
58
- import 'node:querystring';
59
- import '../_deps/webpack-virtual-modules.mjs';
60
- import 'constants';
61
- import '../_deps/unplugin-utils.mjs';
62
- import '../_deps/local-pkg.mjs';
63
- import '../_deps/quansync.mjs';
64
- import '../_deps/strip-literal.mjs';
65
- import '../_deps/js-tokens.mjs';
66
- import '../_deps/unwasm.mjs';
67
- import 'node:crypto';
68
- import '../_deps/knitwork.mjs';
69
- import 'db0';
70
- import 'esbuild';
71
- import '../_deps/etag.mjs';
72
- import 'crypto';
73
- import 'unstorage';
74
- import 'nf3';
75
- import 'rendu';
76
- import '../_deps/chokidar.mjs';
77
- import 'fs/promises';
78
- import 'events';
79
- import '../_deps/readdirp.mjs';
80
- import 'node:stream';
81
- import 'os';
82
- import '../_deps/perfect-debounce.mjs';
83
- import '../_build/types.mjs';
84
- import '../_deps/untyped.mjs';
85
- import '../_deps/compatx.mjs';
86
- import '../_deps/gzip-size.mjs';
87
- import 'stream';
88
- import '../_deps/pretty-bytes.mjs';
89
- import 'std-env';
90
- import '../_build/snapshot.mjs';
91
- import 'klona';
92
- import '../_build/info.mjs';
93
- import 'nitro/meta';
94
- import '../_presets/_types.mjs';
95
- import '../_deps/ultrahtml.mjs';
96
- import 'h3';
97
- import 'srvx/node';
98
- import '../_build/prepare.mjs';
99
- import 'hookable';
100
- import '../_deps/c12.mjs';
101
- import 'jiti';
102
- import '../_deps/rc9.mjs';
103
- import 'destr';
104
- import '../_deps/dotenv.mjs';
105
- import 'klona/full';
106
- import '../_deps/escape-string-regexp.mjs';
107
- import 'ofetch';
108
11
  import 'node:worker_threads';
109
- import 'undici';
110
- import '../_deps/serve-static.mjs';
111
- import '../_deps/encodeurl.mjs';
112
- import '../_deps/escape-html.mjs';
113
- import '../_deps/parseurl.mjs';
114
- import '../_deps/send.mjs';
115
- import '../_deps/http-errors.mjs';
116
- import '../_deps/depd.mjs';
117
- import '../_deps/setprototypeof.mjs';
118
- import '../_deps/statuses.mjs';
119
- import '../_deps/inherits.mjs';
120
- import '../_deps/toidentifier.mjs';
121
- import '../_deps/debug.mjs';
12
+ import '../_chunks/_deps/std-env.mjs';
13
+ import 'h3';
14
+ import '../_chunks/_deps/serve-static.mjs';
15
+ import '../_chunks/_deps/commondir.mjs';
16
+ import 'path';
17
+ import '../_chunks/_deps/encodeurl.mjs';
18
+ import '../_chunks/_deps/escape-html.mjs';
19
+ import '../_chunks/_deps/parseurl.mjs';
20
+ import 'url';
21
+ import '../_chunks/_deps/send.mjs';
22
+ import '../_chunks/_deps/http-errors.mjs';
23
+ import '../_chunks/_deps/depd.mjs';
24
+ import '../_chunks/_deps/setprototypeof.mjs';
25
+ import '../_chunks/_deps/statuses.mjs';
26
+ import '../_chunks/_deps/inherits.mjs';
27
+ import '../_chunks/_deps/toidentifier.mjs';
28
+ import '../_chunks/_deps/debug.mjs';
122
29
  import 'tty';
123
30
  import 'util';
124
- import '../_deps/ms.mjs';
125
- import '../_deps/supports-color.mjs';
126
- import '../_deps/fresh.mjs';
127
- import '../_deps/mime-types.mjs';
128
- import '../_deps/mime-db.mjs';
129
- import '../_deps/on-finished.mjs';
130
- import '../_deps/ee-first.mjs';
131
- import '../_deps/range-parser.mjs';
132
- import '../_deps/httpxy.mjs';
31
+ import '../_chunks/_deps/ms.mjs';
32
+ import '../_chunks/_deps/supports-color.mjs';
33
+ import '../_chunks/_deps/etag.mjs';
34
+ import 'crypto';
35
+ import 'fs';
36
+ import '../_chunks/_deps/fresh.mjs';
37
+ import '../_chunks/_deps/mime-types.mjs';
38
+ import '../_chunks/_deps/mime-db.mjs';
39
+ import '../_chunks/_deps/on-finished.mjs';
40
+ import '../_chunks/_deps/ee-first.mjs';
41
+ import '../_chunks/_deps/range-parser.mjs';
42
+ import 'stream';
43
+ import 'ufo';
44
+ import '../_chunks/_deps/httpxy.mjs';
133
45
  import 'node:http';
134
46
  import 'node:https';
135
47
  import 'node:events';
48
+ import 'undici';
49
+ import 'node:path';
136
50
  import 'youch-core';
137
51
  import 'youch';
138
52
  import 'source-map';
139
53
  import 'srvx';
140
- import '../_deps/@rollup/plugin-alias.mjs';
141
- import '../_deps/@rollup/plugin-inject.mjs';
142
- import 'vite';
143
- import 'get-port-please';
144
- import 'node:child_process';
145
- import '../_deps/@pi0/vite-plugin-fullstack.mjs';
146
- import 'node:assert/strict';
54
+ import 'nitro/meta';
55
+ import '../_chunks/_deps/chokidar.mjs';
56
+ import 'fs/promises';
57
+ import 'events';
58
+ import '../_chunks/_deps/readdirp.mjs';
59
+ import 'node:stream';
60
+ import 'os';
61
+ import 'srvx/node';
62
+ import '../_chunks/_deps/perfect-debounce.mjs';
147
63
 
148
64
  const hmrKeyRe = /^runtimeConfig\.|routeRules\./;
149
65
  const dev = defineCommand({
@@ -1,4 +1,4 @@
1
- import { d as defineCommand } from '../_deps/citty.mjs';
1
+ import { d as defineCommand } from '../_chunks/_deps/citty.mjs';
2
2
  import 'consola';
3
3
  import 'consola/utils';
4
4
 
@@ -1,7 +1,7 @@
1
- import { d as defineCommand } from '../_deps/citty.mjs';
1
+ import { d as defineCommand } from '../_chunks/_deps/citty.mjs';
2
2
  import { consola } from 'consola';
3
3
  import { loadOptions, listTasks } from 'nitro';
4
- import { a as resolve } from '../_deps/pathe.mjs';
4
+ import { r as resolve } from '../_chunks/_deps/pathe.mjs';
5
5
  import 'consola/utils';
6
6
 
7
7
  const list = defineCommand({
@@ -1,7 +1,7 @@
1
- import { d as defineCommand } from '../_deps/citty.mjs';
1
+ import { d as defineCommand } from '../_chunks/_deps/citty.mjs';
2
2
  import { createNitro, writeTypes } from 'nitro';
3
3
  import { c as commonArgs } from './common.mjs';
4
- import { a as resolve } from '../_deps/pathe.mjs';
4
+ import { r as resolve } from '../_chunks/_deps/pathe.mjs';
5
5
  import 'consola';
6
6
  import 'consola/utils';
7
7
 
package/dist/_cli/run.mjs CHANGED
@@ -1,8 +1,8 @@
1
- import { d as defineCommand } from '../_deps/citty.mjs';
1
+ import { d as defineCommand } from '../_chunks/_deps/citty.mjs';
2
2
  import { consola } from 'consola';
3
3
  import destr from 'destr';
4
4
  import { loadOptions, runTask } from 'nitro';
5
- import { a as resolve } from '../_deps/pathe.mjs';
5
+ import { r as resolve } from '../_chunks/_deps/pathe.mjs';
6
6
  import 'consola/utils';
7
7
 
8
8
  const run = defineCommand({
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { r as runMain, d as defineCommand } from '../_deps/citty.mjs';
2
+ import { r as runMain, d as defineCommand } from '../_chunks/_deps/citty.mjs';
3
3
  import { version } from 'nitro/meta';
4
4
  import 'consola';
5
5
  import 'consola/utils';