nitro-nightly 3.0.1-20260106-122901-e9c3a660 → 3.0.1-20260106-182834-5019d347
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/rolldown.mjs +11 -11
- package/dist/_build/rollup.mjs +19 -11
- package/dist/_build/shared.mjs +3 -2
- package/dist/_build/shared2.mjs +1 -1
- package/dist/_build/shared3.mjs +2 -2
- package/dist/_build/vite.build.mjs +8 -9
- package/dist/_dev.mjs +4 -3
- package/dist/_libs/@hiogawa/vite-plugin-fullstack.mjs +6 -1561
- package/dist/_libs/@jridgewell/gen-mapping.mjs +2 -304
- package/dist/_libs/@jridgewell/remapping.mjs +2 -1
- package/dist/_libs/@jridgewell/resolve-uri.mjs +166 -0
- package/dist/_libs/@jridgewell/sourcemap-codec.mjs +167 -0
- package/dist/_libs/@jridgewell/trace-mapping.mjs +141 -0
- package/dist/_libs/@rolldown/pluginutils.mjs +31 -0
- package/dist/_libs/@rollup/plugin-commonjs.mjs +33 -2636
- package/dist/_libs/@rollup/plugin-inject.mjs +3 -2
- package/dist/_libs/@rollup/plugin-json.mjs +1 -1
- package/dist/_libs/@rollup/plugin-node-resolve.mjs +8 -1112
- package/dist/_libs/@rollup/plugin-replace.mjs +2 -2
- package/dist/_libs/@rollup/pluginutils.mjs +241 -0
- package/dist/_libs/c12.mjs +63 -2513
- package/dist/_libs/chokidar.mjs +2 -235
- package/dist/_libs/commondir.mjs +22 -0
- package/dist/_libs/confbox.mjs +1511 -911
- package/dist/_libs/deepmerge.mjs +86 -0
- package/dist/_libs/dotenv.mjs +345 -0
- package/dist/_libs/estree-walker.mjs +144 -1
- package/dist/_libs/exsolve.mjs +1007 -0
- package/dist/_libs/fdir.mjs +514 -0
- package/dist/_libs/function-bind.mjs +63 -0
- package/dist/_libs/giget.mjs +1380 -2238
- package/dist/_libs/hasown.mjs +14 -0
- package/dist/_libs/is-core-module.mjs +220 -0
- package/dist/_libs/is-module.mjs +13 -0
- package/dist/_libs/is-reference.mjs +33 -0
- package/dist/_libs/js-tokens.mjs +382 -0
- package/dist/_libs/local-pkg.mjs +7 -1561
- package/dist/_libs/magic-string.mjs +939 -0
- package/dist/_libs/mlly.mjs +1415 -0
- package/dist/_libs/node-fetch-native.mjs +7 -0
- package/dist/_libs/nypm.mjs +239 -0
- package/dist/_libs/path-parse.mjs +47 -0
- package/dist/_libs/pathe.mjs +163 -2
- package/dist/_libs/perfect-debounce.mjs +89 -0
- package/dist/_libs/picomatch.mjs +1673 -0
- package/dist/_libs/pkg-types.mjs +197 -0
- package/dist/_libs/quansync.mjs +90 -0
- package/dist/_libs/rc9.mjs +136 -0
- package/dist/_libs/readdirp.mjs +237 -0
- package/dist/_libs/resolve.mjs +689 -0
- package/dist/_libs/strip-literal.mjs +51 -0
- package/dist/_libs/tinyexec.mjs +627 -0
- package/dist/_libs/tinyglobby.mjs +2 -1
- package/dist/_libs/tsconfck.mjs +1 -1
- package/dist/_libs/unimport.mjs +93 -1617
- package/dist/_libs/unplugin-utils.mjs +61 -0
- package/dist/_libs/unplugin.mjs +1225 -0
- package/dist/_libs/unwasm.mjs +3 -2
- package/dist/_libs/webpack-virtual-modules.mjs +272 -0
- package/dist/_nitro.mjs +9 -7
- package/dist/_nitro2.mjs +6 -7
- package/dist/_presets.mjs +9 -7
- package/dist/builder.mjs +5 -5
- package/dist/cli/_chunks/build.mjs +1 -1
- package/dist/cli/_chunks/dev.mjs +1 -1
- package/dist/cli/_chunks/list.mjs +1 -1
- package/dist/cli/_chunks/prepare.mjs +1 -1
- package/dist/cli/_chunks/run.mjs +1 -1
- package/dist/vite.mjs +1825 -22
- package/package.json +2 -2
- package/dist/_build/shared4.mjs +0 -1112
- package/dist/_build/vite.plugin.mjs +0 -712
package/dist/_libs/unwasm.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { n as basename } from "./pathe.mjs";
|
|
2
|
+
import { t as resolveModulePath } from "./exsolve.mjs";
|
|
3
3
|
import { a as genString, i as genSafeVariableName, n as genObjectFromRaw, t as genImport } from "./knitwork.mjs";
|
|
4
|
+
import { t as MagicString } from "./magic-string.mjs";
|
|
4
5
|
import { existsSync, promises } from "node:fs";
|
|
5
6
|
import { fileURLToPath } from "node:url";
|
|
6
7
|
import { createHash } from "node:crypto";
|
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
import { r as __require, t as __commonJSMin } from "../_rolldown.mjs";
|
|
2
|
+
|
|
3
|
+
//#region node_modules/.pnpm/webpack-virtual-modules@0.6.2/node_modules/webpack-virtual-modules/lib/virtual-stats.js
|
|
4
|
+
var require_virtual_stats = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5
|
+
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
6
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.VirtualStats = void 0;
|
|
10
|
+
const constants_1 = __importDefault(__require("constants"));
|
|
11
|
+
var VirtualStats = class {
|
|
12
|
+
constructor(config) {
|
|
13
|
+
for (const key in config) {
|
|
14
|
+
if (!Object.prototype.hasOwnProperty.call(config, key)) continue;
|
|
15
|
+
this[key] = config[key];
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
_checkModeProperty(property) {
|
|
19
|
+
return (this.mode & constants_1.default.S_IFMT) === property;
|
|
20
|
+
}
|
|
21
|
+
isDirectory() {
|
|
22
|
+
return this._checkModeProperty(constants_1.default.S_IFDIR);
|
|
23
|
+
}
|
|
24
|
+
isFile() {
|
|
25
|
+
return this._checkModeProperty(constants_1.default.S_IFREG);
|
|
26
|
+
}
|
|
27
|
+
isBlockDevice() {
|
|
28
|
+
return this._checkModeProperty(constants_1.default.S_IFBLK);
|
|
29
|
+
}
|
|
30
|
+
isCharacterDevice() {
|
|
31
|
+
return this._checkModeProperty(constants_1.default.S_IFCHR);
|
|
32
|
+
}
|
|
33
|
+
isSymbolicLink() {
|
|
34
|
+
return this._checkModeProperty(constants_1.default.S_IFLNK);
|
|
35
|
+
}
|
|
36
|
+
isFIFO() {
|
|
37
|
+
return this._checkModeProperty(constants_1.default.S_IFIFO);
|
|
38
|
+
}
|
|
39
|
+
isSocket() {
|
|
40
|
+
return this._checkModeProperty(constants_1.default.S_IFSOCK);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
exports.VirtualStats = VirtualStats;
|
|
44
|
+
}));
|
|
45
|
+
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region node_modules/.pnpm/webpack-virtual-modules@0.6.2/node_modules/webpack-virtual-modules/lib/index.js
|
|
48
|
+
var require_lib = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
49
|
+
const path_1 = (exports && exports.__importDefault || function(mod) {
|
|
50
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
51
|
+
})(__require("path"));
|
|
52
|
+
const virtual_stats_1 = require_virtual_stats();
|
|
53
|
+
let inode = 45e6;
|
|
54
|
+
const ALL = "all";
|
|
55
|
+
const STATIC = "static";
|
|
56
|
+
const DYNAMIC = "dynamic";
|
|
57
|
+
function checkActivation(instance) {
|
|
58
|
+
if (!instance._compiler) throw new Error("You must use this plugin only after creating webpack instance!");
|
|
59
|
+
}
|
|
60
|
+
function getModulePath(filePath, compiler) {
|
|
61
|
+
return path_1.default.isAbsolute(filePath) ? filePath : path_1.default.join(compiler.context, filePath);
|
|
62
|
+
}
|
|
63
|
+
function createWebpackData(result) {
|
|
64
|
+
return (backendOrStorage) => {
|
|
65
|
+
if (backendOrStorage._data) {
|
|
66
|
+
const curLevelIdx = backendOrStorage._currentLevel;
|
|
67
|
+
return {
|
|
68
|
+
result,
|
|
69
|
+
level: backendOrStorage._levels[curLevelIdx]
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
return [null, result];
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
function getData(storage, key) {
|
|
76
|
+
if (storage._data instanceof Map) return storage._data.get(key);
|
|
77
|
+
else if (storage._data) return storage.data[key];
|
|
78
|
+
else if (storage.data instanceof Map) return storage.data.get(key);
|
|
79
|
+
else return storage.data[key];
|
|
80
|
+
}
|
|
81
|
+
function setData(backendOrStorage, key, valueFactory) {
|
|
82
|
+
const value = valueFactory(backendOrStorage);
|
|
83
|
+
if (backendOrStorage._data instanceof Map) backendOrStorage._data.set(key, value);
|
|
84
|
+
else if (backendOrStorage._data) backendOrStorage.data[key] = value;
|
|
85
|
+
else if (backendOrStorage.data instanceof Map) backendOrStorage.data.set(key, value);
|
|
86
|
+
else backendOrStorage.data[key] = value;
|
|
87
|
+
}
|
|
88
|
+
function getStatStorage(fileSystem) {
|
|
89
|
+
if (fileSystem._statStorage) return fileSystem._statStorage;
|
|
90
|
+
else if (fileSystem._statBackend) return fileSystem._statBackend;
|
|
91
|
+
else throw new Error("Couldn't find a stat storage");
|
|
92
|
+
}
|
|
93
|
+
function getFileStorage(fileSystem) {
|
|
94
|
+
if (fileSystem._readFileStorage) return fileSystem._readFileStorage;
|
|
95
|
+
else if (fileSystem._readFileBackend) return fileSystem._readFileBackend;
|
|
96
|
+
else throw new Error("Couldn't find a readFileStorage");
|
|
97
|
+
}
|
|
98
|
+
function getReadDirBackend(fileSystem) {
|
|
99
|
+
if (fileSystem._readdirBackend) return fileSystem._readdirBackend;
|
|
100
|
+
else if (fileSystem._readdirStorage) return fileSystem._readdirStorage;
|
|
101
|
+
else throw new Error("Couldn't find a readDirStorage from Webpack Internals");
|
|
102
|
+
}
|
|
103
|
+
function getRealpathBackend(fileSystem) {
|
|
104
|
+
if (fileSystem._realpathBackend) return fileSystem._realpathBackend;
|
|
105
|
+
}
|
|
106
|
+
var VirtualModulesPlugin = class {
|
|
107
|
+
constructor(modules) {
|
|
108
|
+
this._compiler = null;
|
|
109
|
+
this._watcher = null;
|
|
110
|
+
this._staticModules = modules || null;
|
|
111
|
+
}
|
|
112
|
+
getModuleList(filter = ALL) {
|
|
113
|
+
var _a, _b;
|
|
114
|
+
let modules = {};
|
|
115
|
+
const shouldGetStaticModules = filter === ALL || filter === STATIC;
|
|
116
|
+
const shouldGetDynamicModules = filter === ALL || filter === DYNAMIC;
|
|
117
|
+
if (shouldGetStaticModules) modules = Object.assign(Object.assign({}, modules), this._staticModules);
|
|
118
|
+
if (shouldGetDynamicModules) {
|
|
119
|
+
const finalInputFileSystem = (_a = this._compiler) === null || _a === void 0 ? void 0 : _a.inputFileSystem;
|
|
120
|
+
const virtualFiles = (_b = finalInputFileSystem === null || finalInputFileSystem === void 0 ? void 0 : finalInputFileSystem._virtualFiles) !== null && _b !== void 0 ? _b : {};
|
|
121
|
+
const dynamicModules = {};
|
|
122
|
+
Object.keys(virtualFiles).forEach((key) => {
|
|
123
|
+
dynamicModules[key] = virtualFiles[key].contents;
|
|
124
|
+
});
|
|
125
|
+
modules = Object.assign(Object.assign({}, modules), dynamicModules);
|
|
126
|
+
}
|
|
127
|
+
return modules;
|
|
128
|
+
}
|
|
129
|
+
writeModule(filePath, contents) {
|
|
130
|
+
if (!this._compiler) throw new Error(`Plugin has not been initialized`);
|
|
131
|
+
checkActivation(this);
|
|
132
|
+
const len = contents ? contents.length : 0;
|
|
133
|
+
const time = Date.now();
|
|
134
|
+
const date = new Date(time);
|
|
135
|
+
const stats = new virtual_stats_1.VirtualStats({
|
|
136
|
+
dev: 8675309,
|
|
137
|
+
nlink: 0,
|
|
138
|
+
uid: 1e3,
|
|
139
|
+
gid: 1e3,
|
|
140
|
+
rdev: 0,
|
|
141
|
+
blksize: 4096,
|
|
142
|
+
ino: inode++,
|
|
143
|
+
mode: 33188,
|
|
144
|
+
size: len,
|
|
145
|
+
blocks: Math.floor(len / 4096),
|
|
146
|
+
atime: date,
|
|
147
|
+
mtime: date,
|
|
148
|
+
ctime: date,
|
|
149
|
+
birthtime: date
|
|
150
|
+
});
|
|
151
|
+
const modulePath = getModulePath(filePath, this._compiler);
|
|
152
|
+
if (process.env.WVM_DEBUG) console.log(this._compiler.name, "Write virtual module:", modulePath, contents);
|
|
153
|
+
let finalWatchFileSystem = this._watcher && this._watcher.watchFileSystem;
|
|
154
|
+
while (finalWatchFileSystem && finalWatchFileSystem.wfs) finalWatchFileSystem = finalWatchFileSystem.wfs;
|
|
155
|
+
let finalInputFileSystem = this._compiler.inputFileSystem;
|
|
156
|
+
while (finalInputFileSystem && finalInputFileSystem._inputFileSystem) finalInputFileSystem = finalInputFileSystem._inputFileSystem;
|
|
157
|
+
finalInputFileSystem._writeVirtualFile(modulePath, stats, contents);
|
|
158
|
+
if (finalWatchFileSystem && finalWatchFileSystem.watcher && (finalWatchFileSystem.watcher.fileWatchers.size || finalWatchFileSystem.watcher.fileWatchers.length)) {
|
|
159
|
+
const fileWatchers = finalWatchFileSystem.watcher.fileWatchers instanceof Map ? Array.from(finalWatchFileSystem.watcher.fileWatchers.values()) : finalWatchFileSystem.watcher.fileWatchers;
|
|
160
|
+
for (let fileWatcher of fileWatchers) {
|
|
161
|
+
if ("watcher" in fileWatcher) fileWatcher = fileWatcher.watcher;
|
|
162
|
+
if (fileWatcher.path === modulePath) {
|
|
163
|
+
if (process.env.DEBUG) console.log(this._compiler.name, "Emit file change:", modulePath, time);
|
|
164
|
+
delete fileWatcher.directoryWatcher._cachedTimeInfoEntries;
|
|
165
|
+
fileWatcher.emit("change", time, null);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
apply(compiler) {
|
|
171
|
+
this._compiler = compiler;
|
|
172
|
+
const afterEnvironmentHook = () => {
|
|
173
|
+
let finalInputFileSystem = compiler.inputFileSystem;
|
|
174
|
+
while (finalInputFileSystem && finalInputFileSystem._inputFileSystem) finalInputFileSystem = finalInputFileSystem._inputFileSystem;
|
|
175
|
+
if (!finalInputFileSystem._writeVirtualFile) {
|
|
176
|
+
const originalPurge = finalInputFileSystem.purge;
|
|
177
|
+
finalInputFileSystem.purge = () => {
|
|
178
|
+
originalPurge.apply(finalInputFileSystem, []);
|
|
179
|
+
if (finalInputFileSystem._virtualFiles) Object.keys(finalInputFileSystem._virtualFiles).forEach((file) => {
|
|
180
|
+
const data = finalInputFileSystem._virtualFiles[file];
|
|
181
|
+
finalInputFileSystem._writeVirtualFile(file, data.stats, data.contents);
|
|
182
|
+
});
|
|
183
|
+
};
|
|
184
|
+
finalInputFileSystem._writeVirtualFile = (file, stats, contents) => {
|
|
185
|
+
const statStorage = getStatStorage(finalInputFileSystem);
|
|
186
|
+
const fileStorage = getFileStorage(finalInputFileSystem);
|
|
187
|
+
const readDirStorage = getReadDirBackend(finalInputFileSystem);
|
|
188
|
+
const realPathStorage = getRealpathBackend(finalInputFileSystem);
|
|
189
|
+
finalInputFileSystem._virtualFiles = finalInputFileSystem._virtualFiles || {};
|
|
190
|
+
finalInputFileSystem._virtualFiles[file] = {
|
|
191
|
+
stats,
|
|
192
|
+
contents
|
|
193
|
+
};
|
|
194
|
+
setData(statStorage, file, createWebpackData(stats));
|
|
195
|
+
setData(fileStorage, file, createWebpackData(contents));
|
|
196
|
+
const segments = file.split(/[\\/]/);
|
|
197
|
+
let count = segments.length - 1;
|
|
198
|
+
const minCount = segments[0] ? 1 : 0;
|
|
199
|
+
while (count > minCount) {
|
|
200
|
+
const dir = segments.slice(0, count).join(path_1.default.sep) || path_1.default.sep;
|
|
201
|
+
try {
|
|
202
|
+
finalInputFileSystem.readdirSync(dir);
|
|
203
|
+
} catch (e) {
|
|
204
|
+
const time = Date.now();
|
|
205
|
+
const dirStats = new virtual_stats_1.VirtualStats({
|
|
206
|
+
dev: 8675309,
|
|
207
|
+
nlink: 0,
|
|
208
|
+
uid: 1e3,
|
|
209
|
+
gid: 1e3,
|
|
210
|
+
rdev: 0,
|
|
211
|
+
blksize: 4096,
|
|
212
|
+
ino: inode++,
|
|
213
|
+
mode: 16877,
|
|
214
|
+
size: stats.size,
|
|
215
|
+
blocks: Math.floor(stats.size / 4096),
|
|
216
|
+
atime: time,
|
|
217
|
+
mtime: time,
|
|
218
|
+
ctime: time,
|
|
219
|
+
birthtime: time
|
|
220
|
+
});
|
|
221
|
+
setData(readDirStorage, dir, createWebpackData([]));
|
|
222
|
+
if (realPathStorage) setData(realPathStorage, dir, createWebpackData(dir));
|
|
223
|
+
setData(statStorage, dir, createWebpackData(dirStats));
|
|
224
|
+
}
|
|
225
|
+
let dirData = getData(getReadDirBackend(finalInputFileSystem), dir);
|
|
226
|
+
dirData = dirData[1] || dirData.result;
|
|
227
|
+
const filename = segments[count];
|
|
228
|
+
if (dirData.indexOf(filename) < 0) {
|
|
229
|
+
const files = dirData.concat([filename]).sort();
|
|
230
|
+
setData(getReadDirBackend(finalInputFileSystem), dir, createWebpackData(files));
|
|
231
|
+
} else break;
|
|
232
|
+
count--;
|
|
233
|
+
}
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
};
|
|
237
|
+
const afterResolversHook = () => {
|
|
238
|
+
if (this._staticModules) {
|
|
239
|
+
for (const [filePath, contents] of Object.entries(this._staticModules)) this.writeModule(filePath, contents);
|
|
240
|
+
this._staticModules = null;
|
|
241
|
+
}
|
|
242
|
+
};
|
|
243
|
+
const version = typeof compiler.webpack === "undefined" ? 4 : 5;
|
|
244
|
+
const watchRunHook = (watcher, callback) => {
|
|
245
|
+
this._watcher = watcher.compiler || watcher;
|
|
246
|
+
const virtualFiles = compiler.inputFileSystem._virtualFiles;
|
|
247
|
+
const fts = compiler.fileTimestamps;
|
|
248
|
+
if (virtualFiles && fts && typeof fts.set === "function") Object.keys(virtualFiles).forEach((file) => {
|
|
249
|
+
const mtime = +virtualFiles[file].stats.mtime;
|
|
250
|
+
fts.set(file, version === 4 ? mtime : {
|
|
251
|
+
safeTime: mtime,
|
|
252
|
+
timestamp: mtime
|
|
253
|
+
});
|
|
254
|
+
});
|
|
255
|
+
callback();
|
|
256
|
+
};
|
|
257
|
+
if (compiler.hooks) {
|
|
258
|
+
compiler.hooks.afterEnvironment.tap("VirtualModulesPlugin", afterEnvironmentHook);
|
|
259
|
+
compiler.hooks.afterResolvers.tap("VirtualModulesPlugin", afterResolversHook);
|
|
260
|
+
compiler.hooks.watchRun.tapAsync("VirtualModulesPlugin", watchRunHook);
|
|
261
|
+
} else {
|
|
262
|
+
compiler.plugin("after-environment", afterEnvironmentHook);
|
|
263
|
+
compiler.plugin("after-resolvers", afterResolversHook);
|
|
264
|
+
compiler.plugin("watch-run", watchRunHook);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
};
|
|
268
|
+
module.exports = VirtualModulesPlugin;
|
|
269
|
+
}));
|
|
270
|
+
|
|
271
|
+
//#endregion
|
|
272
|
+
export { require_lib as t };
|
package/dist/_nitro.mjs
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { l as relative, o as join, u as resolve } from "./_libs/pathe.mjs";
|
|
2
|
+
import { n as resolveModuleURL, t as resolveModulePath } from "./_libs/exsolve.mjs";
|
|
3
|
+
import { i as findWorkspaceDir } from "./_libs/pkg-types.mjs";
|
|
4
|
+
import { o as watchConfig, r as loadConfig } from "./_libs/c12.mjs";
|
|
5
5
|
import { n as resolveCompatibilityDates, r as resolveCompatibilityDatesFromEnv } from "./_libs/compatx.mjs";
|
|
6
6
|
import { t as klona } from "./_libs/klona.mjs";
|
|
7
7
|
import { a as d, i as a } from "./_libs/std-env.mjs";
|
|
8
8
|
import { t as escapeStringRegexp } from "./_libs/escape-string-regexp.mjs";
|
|
9
9
|
import { n as parse, t as TSConfckCache } from "./_libs/tsconfck.mjs";
|
|
10
10
|
import { i as writeFile$1, n as prettyPath, r as resolveNitroPath, t as isDirectory } from "./_build/shared2.mjs";
|
|
11
|
+
import { t as glob } from "./_libs/tinyglobby.mjs";
|
|
11
12
|
import { i as scanHandlers, r as scanAndSyncOptions, t as runParallel } from "./_nitro2.mjs";
|
|
12
13
|
import { a as findRoute, i as findAllRoutes, n as addRoute, r as createRouter, t as compileRouterToString } from "./_libs/rou3.mjs";
|
|
13
14
|
import { t as src_default } from "./_libs/mime.mjs";
|
|
@@ -16,10 +17,10 @@ import { createRequire } from "node:module";
|
|
|
16
17
|
import consola$1, { consola } from "consola";
|
|
17
18
|
import { Hookable, createDebugger } from "hookable";
|
|
18
19
|
import { existsSync, promises } from "node:fs";
|
|
19
|
-
import { joinURL, parseURL, withBase, withLeadingSlash, withQuery, withTrailingSlash, withoutBase, withoutTrailingSlash } from "ufo";
|
|
20
|
-
import { pathToFileURL } from "node:url";
|
|
21
20
|
import fsp, { readFile } from "node:fs/promises";
|
|
21
|
+
import { pathToFileURL } from "node:url";
|
|
22
22
|
import { defu } from "defu";
|
|
23
|
+
import { joinURL, parseURL, withBase, withLeadingSlash, withQuery, withTrailingSlash, withoutBase, withoutTrailingSlash } from "ufo";
|
|
23
24
|
import { runtimeDir } from "nitro/meta";
|
|
24
25
|
import { colors } from "consola/utils";
|
|
25
26
|
import { hash } from "ohash";
|
|
@@ -573,7 +574,7 @@ function isPkgInstalled(pkg, root) {
|
|
|
573
574
|
}
|
|
574
575
|
}
|
|
575
576
|
async function installPkg(pkg, root) {
|
|
576
|
-
const { addDevDependency } = await import("./_libs/
|
|
577
|
+
const { addDevDependency } = await import("./_libs/nypm.mjs").then((n) => n.t);
|
|
577
578
|
return addDevDependency(pkg, { cwd: root });
|
|
578
579
|
}
|
|
579
580
|
|
|
@@ -891,6 +892,7 @@ async function createNitro(config = {}, opts = {}) {
|
|
|
891
892
|
nitro.hooks.addHooks(nitro.options.hooks);
|
|
892
893
|
await installModules(nitro);
|
|
893
894
|
if (nitro.options.imports) {
|
|
895
|
+
const { createUnimport } = await import("./_libs/unimport.mjs").then((n) => n.l);
|
|
894
896
|
nitro.unimport = createUnimport(nitro.options.imports);
|
|
895
897
|
await nitro.unimport.init();
|
|
896
898
|
nitro.options.virtual["#imports"] = () => nitro.unimport?.toExports() || "";
|
package/dist/_nitro2.mjs
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { o as lookupNodeModuleSubpath, s as parseNodeModulePath } from "./_libs/local-pkg.mjs";
|
|
4
|
-
import { s as toExports } from "./_libs/unimport.mjs";
|
|
5
|
-
import { t as glob } from "./_libs/tinyglobby.mjs";
|
|
1
|
+
import { a as isAbsolute, l as relative, o as join, r as dirname, t as resolveAlias, u as resolve } from "./_libs/pathe.mjs";
|
|
2
|
+
import { t as resolveModulePath } from "./_libs/exsolve.mjs";
|
|
6
3
|
import { i as writeFile, r as resolveNitroPath, t as isDirectory } from "./_build/shared2.mjs";
|
|
7
|
-
import { t as
|
|
4
|
+
import { t as glob } from "./_libs/tinyglobby.mjs";
|
|
5
|
+
import { a as lookupNodeModuleSubpath, o as parseNodeModulePath } from "./_libs/mlly.mjs";
|
|
8
6
|
import { n as resolveSchema, t as generateTypes } from "./_libs/untyped.mjs";
|
|
7
|
+
import { M as toExports } from "./_libs/unimport.mjs";
|
|
9
8
|
import { existsSync, promises } from "node:fs";
|
|
10
|
-
import { withBase, withLeadingSlash, withoutTrailingSlash } from "ufo";
|
|
11
9
|
import { defu } from "defu";
|
|
10
|
+
import { withBase, withLeadingSlash, withoutTrailingSlash } from "ufo";
|
|
12
11
|
import { runtimeDir } from "nitro/meta";
|
|
13
12
|
|
|
14
13
|
//#region src/scan.ts
|
package/dist/_presets.mjs
CHANGED
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
import "./_rolldown.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import "./_libs
|
|
5
|
-
import {
|
|
2
|
+
import { l as relative$1, o as join$1, r as dirname$1, u as resolve$1 } from "./_libs/pathe.mjs";
|
|
3
|
+
import { t as resolveModulePath } from "./_libs/exsolve.mjs";
|
|
4
|
+
import { a as Q, s as gr, u as h } from "./_libs/confbox.mjs";
|
|
5
|
+
import { n as findFile, o as readGitConfig, r as findNearestFile, s as readPackageJSON } from "./_libs/pkg-types.mjs";
|
|
6
6
|
import { r as resolveCompatibilityDatesFromEnv, t as formatCompatibilityDate } from "./_libs/compatx.mjs";
|
|
7
7
|
import { i as a, n as K, o as p } from "./_libs/std-env.mjs";
|
|
8
8
|
import { i as writeFile$2, n as prettyPath$1 } from "./_build/shared2.mjs";
|
|
9
|
+
import "./_libs/fdir.mjs";
|
|
10
|
+
import { t as glob } from "./_libs/tinyglobby.mjs";
|
|
9
11
|
import { builtinModules } from "node:module";
|
|
10
12
|
import consola$1 from "consola";
|
|
11
|
-
import { dirname, extname, relative, resolve } from "node:path";
|
|
12
|
-
import { kebabCase } from "scule";
|
|
13
13
|
import { existsSync, promises } from "node:fs";
|
|
14
|
-
import { hasProtocol, joinURL, withLeadingSlash, withTrailingSlash, withoutLeadingSlash } from "ufo";
|
|
15
14
|
import fsp, { readFile, writeFile } from "node:fs/promises";
|
|
15
|
+
import { dirname, extname, relative, resolve } from "node:path";
|
|
16
16
|
import { defu } from "defu";
|
|
17
|
+
import { hasProtocol, joinURL, withLeadingSlash, withTrailingSlash, withoutLeadingSlash } from "ufo";
|
|
17
18
|
import { presetsDir, runtimeDir, version } from "nitro/meta";
|
|
18
19
|
import { colors } from "consola/utils";
|
|
20
|
+
import { kebabCase } from "scule";
|
|
19
21
|
|
|
20
22
|
//#region src/presets/_utils/preset.ts
|
|
21
23
|
function defineNitroPreset(preset, meta) {
|
package/dist/builder.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "./_rolldown.mjs";
|
|
2
|
-
import "./_libs/
|
|
3
|
-
import "./_libs/@hiogawa/vite-plugin-fullstack.mjs";
|
|
4
|
-
import "./_libs/acorn.mjs";
|
|
5
|
-
import "./_libs/unimport.mjs";
|
|
6
|
-
import "./_libs/@rollup/plugin-commonjs.mjs";
|
|
2
|
+
import "./_libs/dotenv.mjs";
|
|
7
3
|
import { a as copyPublicAssets, c as loadOptions, i as prepare, n as runTask, o as build, r as prerender, s as createNitro, t as listTasks } from "./_nitro.mjs";
|
|
8
4
|
import "./_libs/tsconfck.mjs";
|
|
9
5
|
import "./_build/shared2.mjs";
|
|
6
|
+
import "./_libs/fdir.mjs";
|
|
10
7
|
import { n as writeTypes } from "./_nitro2.mjs";
|
|
11
8
|
import "./_libs/mime.mjs";
|
|
9
|
+
import "./_libs/acorn.mjs";
|
|
10
|
+
import "./_libs/@jridgewell/sourcemap-codec.mjs";
|
|
11
|
+
import "./_libs/js-tokens.mjs";
|
|
12
12
|
import { t as getBuildInfo } from "./_build/shared3.mjs";
|
|
13
13
|
import { n as createDevServer } from "./_dev.mjs";
|
|
14
14
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { u as resolve } from "../../_libs/pathe.mjs";
|
|
2
2
|
import { t as defineCommand } from "../../_libs/citty.mjs";
|
|
3
3
|
import { t as commonArgs } from "./common.mjs";
|
|
4
4
|
import { build, copyPublicAssets, createNitro, prepare, prerender } from "nitro/builder";
|
package/dist/cli/_chunks/dev.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { u as resolve } from "../../_libs/pathe.mjs";
|
|
2
2
|
import { t as defineCommand } from "../../_libs/citty.mjs";
|
|
3
3
|
import { t as commonArgs } from "./common.mjs";
|
|
4
4
|
import { createNitro, writeTypes } from "nitro/builder";
|
package/dist/cli/_chunks/run.mjs
CHANGED