nitro-nightly 3.0.1-20251217-221413-0e6f159e → 3.0.1-20251217-223946-1ee0b5b8
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 +2 -2
- package/dist/_build/rollup.mjs +2 -2
- package/dist/_build/shared3.mjs +1124 -55
- package/dist/_build/shared4.mjs +59 -0
- package/dist/_build/vite.build.mjs +1 -1
- package/dist/_build/vite.plugin.mjs +1 -1
- package/dist/_libs/c12.mjs +33 -33
- package/dist/_libs/confbox.mjs +160 -160
- package/dist/_libs/giget.mjs +2 -6
- package/dist/_libs/local-pkg.mjs +2 -2
- package/dist/_libs/unimport.mjs +31 -33
- package/dist/_nitro.mjs +1 -0
- package/dist/_nitro2.mjs +1 -0
- package/dist/_presets.mjs +57 -57
- package/dist/vite.mjs +1 -1
- package/package.json +3 -3
- package/dist/_nitro3.mjs +0 -1158
package/dist/_libs/giget.mjs
CHANGED
|
@@ -16618,7 +16618,7 @@ ${p$2}`;
|
|
|
16618
16618
|
|
|
16619
16619
|
//#endregion
|
|
16620
16620
|
//#region node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.mjs
|
|
16621
|
-
var import_proxy
|
|
16621
|
+
var import_proxy = require_proxy();
|
|
16622
16622
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
16623
16623
|
function getDefaultExportFromCjs(x$1) {
|
|
16624
16624
|
return x$1 && x$1.__esModule && Object.prototype.hasOwnProperty.call(x$1, "default") ? x$1["default"] : x$1;
|
|
@@ -19073,7 +19073,7 @@ function debug(...args) {
|
|
|
19073
19073
|
}
|
|
19074
19074
|
async function sendFetch(url, options = {}) {
|
|
19075
19075
|
if (options.headers?.["sec-fetch-mode"]) options.mode = options.headers["sec-fetch-mode"];
|
|
19076
|
-
const res = await (0, import_proxy
|
|
19076
|
+
const res = await (0, import_proxy.fetch)(url, {
|
|
19077
19077
|
...options,
|
|
19078
19078
|
headers: normalizeHeaders(options.headers)
|
|
19079
19079
|
}).catch((error) => {
|
|
@@ -19281,9 +19281,5 @@ async function downloadTemplate(input, options = {}) {
|
|
|
19281
19281
|
};
|
|
19282
19282
|
}
|
|
19283
19283
|
|
|
19284
|
-
//#endregion
|
|
19285
|
-
//#region node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.mjs
|
|
19286
|
-
var import_proxy = require_proxy();
|
|
19287
|
-
|
|
19288
19284
|
//#endregion
|
|
19289
19285
|
export { addDependency as a, installDependencies as c, require_node_fetch_native_DhEqb06g as i, packageManagers as l, registryProvider as n, addDevDependency as o, require_node as r, detectPackageManager as s, downloadTemplate as t };
|
package/dist/_libs/local-pkg.mjs
CHANGED
|
@@ -567,7 +567,7 @@ function getDataProtocolModuleFormat(parsed) {
|
|
|
567
567
|
* @param {URL} url
|
|
568
568
|
* @returns {string}
|
|
569
569
|
*/
|
|
570
|
-
function extname$
|
|
570
|
+
function extname$1(url) {
|
|
571
571
|
const pathname = url.pathname;
|
|
572
572
|
let index = pathname.length;
|
|
573
573
|
while (index--) {
|
|
@@ -581,7 +581,7 @@ function extname$2(url) {
|
|
|
581
581
|
* @type {ProtocolHandler}
|
|
582
582
|
*/
|
|
583
583
|
function getFileProtocolModuleFormat(url, _context, ignoreErrors) {
|
|
584
|
-
const value = extname$
|
|
584
|
+
const value = extname$1(url);
|
|
585
585
|
if (value === ".js") {
|
|
586
586
|
const packageType = getPackageType(url);
|
|
587
587
|
if (packageType !== "none") return packageType;
|
package/dist/_libs/unimport.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as __toESM, n as __require, t as __commonJSMin } from "../_rolldown.mjs";
|
|
2
|
-
import { C as isAbsolute$
|
|
2
|
+
import { C as isAbsolute$2, D as parse$1, O as relative$1, T as normalize$2, b as basename$1, f as readPackageJSON, k as resolve$1, m as resolvePackageJSON, w as join$1, x as dirname$1 } from "./c12.mjs";
|
|
3
3
|
import { n as stripLiteral, r as MagicString } from "./@hiogawa/vite-plugin-fullstack.mjs";
|
|
4
|
-
import { n as parse, t as Parser } from "./acorn.mjs";
|
|
4
|
+
import { n as parse$2, t as Parser } from "./acorn.mjs";
|
|
5
5
|
import { a as findTypeExports, c as parseStaticImport, i as findStaticImports, l as resolve$2, n as detectSyntax, r as findExports, t as resolveModule, u as resolveModuleExportNames } from "./local-pkg.mjs";
|
|
6
6
|
import { c as require_picomatch } from "./@rollup/plugin-commonjs.mjs";
|
|
7
7
|
import { t as glob } from "./tinyglobby.mjs";
|
|
@@ -123,7 +123,7 @@ function toExports(imports, fileDir, includeType = false, options = {}) {
|
|
|
123
123
|
const map = toImportModuleMap(imports, includeType, options);
|
|
124
124
|
return Object.entries(map).flatMap(([name, imports2]) => {
|
|
125
125
|
if (isFilePath(name)) name = name.replace(/\.[a-z]+$/i, "");
|
|
126
|
-
if (fileDir && isAbsolute$
|
|
126
|
+
if (fileDir && isAbsolute$2(name)) {
|
|
127
127
|
name = relative$1(fileDir, name);
|
|
128
128
|
if (!name.match(/^[./]/)) name = `./${name}`;
|
|
129
129
|
}
|
|
@@ -274,7 +274,7 @@ function normalizeImports(imports) {
|
|
|
274
274
|
return imports;
|
|
275
275
|
}
|
|
276
276
|
function isFilePath(path$1) {
|
|
277
|
-
return path$1.startsWith(".") || isAbsolute$
|
|
277
|
+
return path$1.startsWith(".") || isAbsolute$2(path$1) || path$1.includes("://");
|
|
278
278
|
}
|
|
279
279
|
const contextRE$1 = /\b_ctx\.([$\w]+)\b/g;
|
|
280
280
|
const UNREF_KEY = "__unimport_unref_";
|
|
@@ -462,7 +462,7 @@ function* findDirective(imports, symbol, [begin, end, importName]) {
|
|
|
462
462
|
|
|
463
463
|
//#endregion
|
|
464
464
|
//#region node_modules/.pnpm/unimport@5.6.0/node_modules/unimport/dist/shared/unimport.u_OYhQoS.mjs
|
|
465
|
-
var import_picomatch
|
|
465
|
+
var import_picomatch = /* @__PURE__ */ __toESM(require_picomatch(), 1);
|
|
466
466
|
const version = "5.6.0";
|
|
467
467
|
function configureAddons(opts) {
|
|
468
468
|
const addons = [];
|
|
@@ -610,7 +610,7 @@ async function scanFilesFromDir(dir, options) {
|
|
|
610
610
|
expandDirectories: false
|
|
611
611
|
})).map((i) => normalize$2(i));
|
|
612
612
|
const fileFilter = options?.fileFilter || (() => true);
|
|
613
|
-
const indexOfDirs = (file) => dirGlobs.findIndex((glob2) => import_picomatch
|
|
613
|
+
const indexOfDirs = (file) => dirGlobs.findIndex((glob2) => import_picomatch.default.isMatch(file, glob2));
|
|
614
614
|
return files.reduce((acc, file) => {
|
|
615
615
|
const index = indexOfDirs(file);
|
|
616
616
|
if (acc[index]) acc[index].push(normalize$2(file));
|
|
@@ -622,7 +622,7 @@ async function scanDirExports(dirs, options) {
|
|
|
622
622
|
const normalizedDirs = normalizeScanDirs(dirs, options);
|
|
623
623
|
const files = await scanFilesFromDir(normalizedDirs, options);
|
|
624
624
|
const includeTypesDirs = normalizedDirs.filter((dir) => !dir.glob.startsWith("!") && dir.types);
|
|
625
|
-
const isIncludeTypes = (file) => includeTypesDirs.some((dir) => import_picomatch
|
|
625
|
+
const isIncludeTypes = (file) => includeTypesDirs.some((dir) => import_picomatch.default.isMatch(file, dir.glob));
|
|
626
626
|
return dedupeDtsExports((await Promise.all(files.map((file) => scanExports(file, isIncludeTypes(file))))).flat());
|
|
627
627
|
}
|
|
628
628
|
function dedupeDtsExports(exports$1) {
|
|
@@ -642,8 +642,8 @@ async function scanExports(filepath, includeTypes, seen = /* @__PURE__ */ new Se
|
|
|
642
642
|
const code = await readFile(filepath, "utf-8");
|
|
643
643
|
const exports$1 = findExports(code);
|
|
644
644
|
if (exports$1.find((i) => i.type === "default")) {
|
|
645
|
-
let name = parse$
|
|
646
|
-
if (name === "index") name = parse$
|
|
645
|
+
let name = parse$1(filepath).name;
|
|
646
|
+
if (name === "index") name = parse$1(filepath.split("/").slice(0, -1).join("/")).name;
|
|
647
647
|
const as = /[-_.]/.test(name) ? camelCase(name) : name;
|
|
648
648
|
imports.push({
|
|
649
649
|
name: "default",
|
|
@@ -1769,7 +1769,6 @@ async function resolveImports(ctx, imports, id) {
|
|
|
1769
1769
|
|
|
1770
1770
|
//#endregion
|
|
1771
1771
|
//#region node_modules/.pnpm/unplugin@2.3.11/node_modules/unplugin/dist/context-Csj9j3eN.js
|
|
1772
|
-
var import_picomatch$1 = /* @__PURE__ */ __toESM(require_picomatch(), 1);
|
|
1773
1772
|
function toArray$2(array) {
|
|
1774
1773
|
array = array || [];
|
|
1775
1774
|
if (Array.isArray(array)) return array;
|
|
@@ -1780,11 +1779,11 @@ function normalize$1(path$1) {
|
|
|
1780
1779
|
return path$1.replace(BACKSLASH_REGEX, "/");
|
|
1781
1780
|
}
|
|
1782
1781
|
const ABSOLUTE_PATH_REGEX = /^(?:\/|(?:[A-Z]:)?[/\\|])/i;
|
|
1783
|
-
function isAbsolute$1
|
|
1782
|
+
function isAbsolute$1(path$1) {
|
|
1784
1783
|
return ABSOLUTE_PATH_REGEX.test(path$1);
|
|
1785
1784
|
}
|
|
1786
1785
|
function getMatcherString$1(glob$1, cwd$1) {
|
|
1787
|
-
if (glob$1.startsWith("**") || isAbsolute$1
|
|
1786
|
+
if (glob$1.startsWith("**") || isAbsolute$1(glob$1)) return normalize$1(glob$1);
|
|
1788
1787
|
return normalize$1(resolve(cwd$1, glob$1));
|
|
1789
1788
|
}
|
|
1790
1789
|
function patternToIdFilter(pattern) {
|
|
@@ -1794,7 +1793,7 @@ function patternToIdFilter(pattern) {
|
|
|
1794
1793
|
pattern.lastIndex = 0;
|
|
1795
1794
|
return result;
|
|
1796
1795
|
};
|
|
1797
|
-
const matcher = (0, import_picomatch
|
|
1796
|
+
const matcher = (0, import_picomatch.default)(getMatcherString$1(pattern, process.cwd()), { dot: true });
|
|
1798
1797
|
return (id) => {
|
|
1799
1798
|
return matcher(normalize$1(id));
|
|
1800
1799
|
};
|
|
@@ -1868,7 +1867,7 @@ function normalizeObjectHook(name, hook) {
|
|
|
1868
1867
|
filter: filter || (() => true)
|
|
1869
1868
|
};
|
|
1870
1869
|
}
|
|
1871
|
-
function parse
|
|
1870
|
+
function parse(code, opts = {}) {
|
|
1872
1871
|
return Parser.parse(code, {
|
|
1873
1872
|
sourceType: "module",
|
|
1874
1873
|
ecmaVersion: "latest",
|
|
@@ -1908,7 +1907,7 @@ function normalizeAbsolutePath(path$1) {
|
|
|
1908
1907
|
|
|
1909
1908
|
//#endregion
|
|
1910
1909
|
//#region node_modules/.pnpm/unplugin@2.3.11/node_modules/unplugin/dist/context-DkYlx1xL.js
|
|
1911
|
-
function createBuildContext(compiler, compilation, loaderContext, inputSourceMap) {
|
|
1910
|
+
function createBuildContext$1(compiler, compilation, loaderContext, inputSourceMap) {
|
|
1912
1911
|
return {
|
|
1913
1912
|
getNativeBuildContext() {
|
|
1914
1913
|
return {
|
|
@@ -1926,7 +1925,7 @@ function createBuildContext(compiler, compilation, loaderContext, inputSourceMap
|
|
|
1926
1925
|
getWatchFiles() {
|
|
1927
1926
|
return Array.from(compilation.fileDependencies);
|
|
1928
1927
|
},
|
|
1929
|
-
parse
|
|
1928
|
+
parse,
|
|
1930
1929
|
emitFile(emittedFile) {
|
|
1931
1930
|
const outFileName = emittedFile.fileName || emittedFile.name;
|
|
1932
1931
|
if (emittedFile.source && outFileName) {
|
|
@@ -1936,7 +1935,7 @@ function createBuildContext(compiler, compilation, loaderContext, inputSourceMap
|
|
|
1936
1935
|
}
|
|
1937
1936
|
};
|
|
1938
1937
|
}
|
|
1939
|
-
function normalizeMessage(error) {
|
|
1938
|
+
function normalizeMessage$1(error) {
|
|
1940
1939
|
const err = new Error(typeof error === "string" ? error : error.message);
|
|
1941
1940
|
if (typeof error === "object") {
|
|
1942
1941
|
err.stack = error.stack;
|
|
@@ -2011,9 +2010,9 @@ const require$1 = createRequire(import.meta.url);
|
|
|
2011
2010
|
function getSource(fileSource) {
|
|
2012
2011
|
return new (require$1("webpack")).sources.RawSource(typeof fileSource === "string" ? fileSource : Buffer.from(fileSource.buffer));
|
|
2013
2012
|
}
|
|
2014
|
-
function createBuildContext
|
|
2013
|
+
function createBuildContext(options, compiler, compilation, loaderContext, inputSourceMap) {
|
|
2015
2014
|
return {
|
|
2016
|
-
parse
|
|
2015
|
+
parse,
|
|
2017
2016
|
addWatchFile(id) {
|
|
2018
2017
|
options.addWatchFile(resolve(process$1.cwd(), id));
|
|
2019
2018
|
},
|
|
@@ -2038,7 +2037,7 @@ function createBuildContext$1(options, compiler, compilation, loaderContext, inp
|
|
|
2038
2037
|
}
|
|
2039
2038
|
};
|
|
2040
2039
|
}
|
|
2041
|
-
function normalizeMessage
|
|
2040
|
+
function normalizeMessage(error) {
|
|
2042
2041
|
const err = new Error(typeof error === "string" ? error : error.message);
|
|
2043
2042
|
if (typeof error === "object") {
|
|
2044
2043
|
err.stack = error.stack;
|
|
@@ -2381,7 +2380,7 @@ function createBuildContext$2(build) {
|
|
|
2381
2380
|
const watchFiles = [];
|
|
2382
2381
|
const { initialOptions } = build;
|
|
2383
2382
|
return {
|
|
2384
|
-
parse
|
|
2383
|
+
parse,
|
|
2385
2384
|
addWatchFile() {
|
|
2386
2385
|
throw new Error("unplugin/esbuild: addWatchFile outside supported hooks (resolveId, load, transform)");
|
|
2387
2386
|
},
|
|
@@ -2607,7 +2606,7 @@ function buildSetup() {
|
|
|
2607
2606
|
}
|
|
2608
2607
|
function createFarmContext(context, currentResolveId) {
|
|
2609
2608
|
return {
|
|
2610
|
-
parse
|
|
2609
|
+
parse,
|
|
2611
2610
|
addWatchFile(id) {
|
|
2612
2611
|
context.addWatchFile(id, currentResolveId || id);
|
|
2613
2612
|
},
|
|
@@ -2988,11 +2987,11 @@ function getRspackPlugin(factory) {
|
|
|
2988
2987
|
let importer = requestContext.issuer !== "" ? requestContext.issuer : void 0;
|
|
2989
2988
|
const isEntry = requestContext.issuer === "";
|
|
2990
2989
|
if (importer?.startsWith(plugin.__virtualModulePrefix)) importer = decodeURIComponent(importer.slice(plugin.__virtualModulePrefix.length));
|
|
2991
|
-
const context = createBuildContext(compiler, compilation);
|
|
2990
|
+
const context = createBuildContext$1(compiler, compilation);
|
|
2992
2991
|
let error;
|
|
2993
2992
|
const pluginContext = {
|
|
2994
2993
|
error(msg) {
|
|
2995
|
-
if (error == null) error = normalizeMessage(msg);
|
|
2994
|
+
if (error == null) error = normalizeMessage$1(msg);
|
|
2996
2995
|
else console.error(`unplugin/rspack: multiple errors returned from resolveId hook: ${msg}`);
|
|
2997
2996
|
},
|
|
2998
2997
|
warn(msg) {
|
|
@@ -3052,7 +3051,7 @@ function getRspackPlugin(factory) {
|
|
|
3052
3051
|
});
|
|
3053
3052
|
if (plugin.rspack) plugin.rspack(compiler);
|
|
3054
3053
|
if (plugin.watchChange || plugin.buildStart) compiler.hooks.make.tapPromise(plugin.name, async (compilation) => {
|
|
3055
|
-
const context = createBuildContext(compiler, compilation);
|
|
3054
|
+
const context = createBuildContext$1(compiler, compilation);
|
|
3056
3055
|
if (plugin.watchChange && (compiler.modifiedFiles || compiler.removedFiles)) {
|
|
3057
3056
|
const promises$1 = [];
|
|
3058
3057
|
if (compiler.modifiedFiles) compiler.modifiedFiles.forEach((file) => promises$1.push(Promise.resolve(plugin.watchChange.call(context, file, { event: "update" }))));
|
|
@@ -3062,7 +3061,7 @@ function getRspackPlugin(factory) {
|
|
|
3062
3061
|
if (plugin.buildStart) return await plugin.buildStart.call(context);
|
|
3063
3062
|
});
|
|
3064
3063
|
if (plugin.buildEnd) compiler.hooks.emit.tapPromise(plugin.name, async (compilation) => {
|
|
3065
|
-
await plugin.buildEnd.call(createBuildContext(compiler, compilation));
|
|
3064
|
+
await plugin.buildEnd.call(createBuildContext$1(compiler, compilation));
|
|
3066
3065
|
});
|
|
3067
3066
|
if (plugin.writeBundle) compiler.hooks.afterEmit.tapPromise(plugin.name, async () => {
|
|
3068
3067
|
await plugin.writeBundle();
|
|
@@ -3124,7 +3123,7 @@ function getWebpackPlugin(factory) {
|
|
|
3124
3123
|
const isEntry = requestContext.issuer === "";
|
|
3125
3124
|
if (importer?.startsWith(plugin.__virtualModulePrefix)) importer = decodeURIComponent(importer.slice(plugin.__virtualModulePrefix.length));
|
|
3126
3125
|
const fileDependencies = /* @__PURE__ */ new Set();
|
|
3127
|
-
const context = createBuildContext
|
|
3126
|
+
const context = createBuildContext({
|
|
3128
3127
|
addWatchFile(file) {
|
|
3129
3128
|
fileDependencies.add(file);
|
|
3130
3129
|
resolveContext.fileDependencies?.add(file);
|
|
@@ -3136,7 +3135,7 @@ function getWebpackPlugin(factory) {
|
|
|
3136
3135
|
let error;
|
|
3137
3136
|
const pluginContext = {
|
|
3138
3137
|
error(msg) {
|
|
3139
|
-
if (error == null) error = normalizeMessage
|
|
3138
|
+
if (error == null) error = normalizeMessage(msg);
|
|
3140
3139
|
else console.error(`unplugin/webpack: multiple errors returned from resolveId hook: ${msg}`);
|
|
3141
3140
|
},
|
|
3142
3141
|
warn(msg) {
|
|
@@ -3189,7 +3188,7 @@ function getWebpackPlugin(factory) {
|
|
|
3189
3188
|
});
|
|
3190
3189
|
if (plugin.webpack) plugin.webpack(compiler);
|
|
3191
3190
|
if (plugin.watchChange || plugin.buildStart) compiler.hooks.make.tapPromise(plugin.name, async (compilation) => {
|
|
3192
|
-
const context = createBuildContext
|
|
3191
|
+
const context = createBuildContext(contextOptionsFromCompilation(compilation), compiler, compilation);
|
|
3193
3192
|
if (plugin.watchChange && (compiler.modifiedFiles || compiler.removedFiles)) {
|
|
3194
3193
|
const promises$1 = [];
|
|
3195
3194
|
if (compiler.modifiedFiles) compiler.modifiedFiles.forEach((file) => promises$1.push(Promise.resolve(plugin.watchChange.call(context, file, { event: "update" }))));
|
|
@@ -3199,7 +3198,7 @@ function getWebpackPlugin(factory) {
|
|
|
3199
3198
|
if (plugin.buildStart) return await plugin.buildStart.call(context);
|
|
3200
3199
|
});
|
|
3201
3200
|
if (plugin.buildEnd) compiler.hooks.emit.tapPromise(plugin.name, async (compilation) => {
|
|
3202
|
-
await plugin.buildEnd.call(createBuildContext
|
|
3201
|
+
await plugin.buildEnd.call(createBuildContext(contextOptionsFromCompilation(compilation), compiler, compilation));
|
|
3203
3202
|
});
|
|
3204
3203
|
if (plugin.writeBundle) compiler.hooks.afterEmit.tapPromise(plugin.name, async () => {
|
|
3205
3204
|
await plugin.writeBundle();
|
|
@@ -3249,7 +3248,6 @@ function createUnplugin(factory) {
|
|
|
3249
3248
|
|
|
3250
3249
|
//#endregion
|
|
3251
3250
|
//#region node_modules/.pnpm/unplugin-utils@0.3.1/node_modules/unplugin-utils/dist/index.js
|
|
3252
|
-
var import_picomatch = /* @__PURE__ */ __toESM(require_picomatch(), 1);
|
|
3253
3251
|
/**
|
|
3254
3252
|
* Converts path separators to forward slash.
|
|
3255
3253
|
*/
|
|
@@ -3264,7 +3262,7 @@ function toArray$1(thing) {
|
|
|
3264
3262
|
}
|
|
3265
3263
|
const escapeMark = "[_#EsCaPe#_]";
|
|
3266
3264
|
function getMatcherString(id, resolutionBase) {
|
|
3267
|
-
if (resolutionBase === false || isAbsolute$
|
|
3265
|
+
if (resolutionBase === false || isAbsolute$2(id) || id.startsWith("**")) return normalizePath(id);
|
|
3268
3266
|
return join$1(normalizePath(resolve$1(resolutionBase || "")).replaceAll(/[-^$*+?.()|[\]{}]/g, `${escapeMark}$&`), normalizePath(id)).replaceAll(escapeMark, "\\");
|
|
3269
3267
|
}
|
|
3270
3268
|
/**
|
|
@@ -3351,7 +3349,7 @@ async function detectImportsAcorn(code, ctx, options) {
|
|
|
3351
3349
|
const enableAutoImport = options?.autoImport !== false;
|
|
3352
3350
|
const enableTransformVirtualImports = options?.transformVirtualImports !== false && ctx.options.virtualImports?.length;
|
|
3353
3351
|
if (enableAutoImport || enableTransformVirtualImports) {
|
|
3354
|
-
const ast = parse(s.original, {
|
|
3352
|
+
const ast = parse$2(s.original, {
|
|
3355
3353
|
sourceType: "module",
|
|
3356
3354
|
ecmaVersion: "latest",
|
|
3357
3355
|
locations: true
|
package/dist/_nitro.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { i as __toESM } from "./_rolldown.mjs";
|
|
1
2
|
import { O as relative, a as watchConfig, g as resolveModuleURL, h as resolveModulePath, k as resolve, l as findWorkspaceDir, n as loadConfig, w as join } from "./_libs/c12.mjs";
|
|
2
3
|
import { a as createUnimport } from "./_libs/unimport.mjs";
|
|
3
4
|
import { t as glob } from "./_libs/tinyglobby.mjs";
|
package/dist/_nitro2.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { i as __toESM } from "./_rolldown.mjs";
|
|
1
2
|
import { C as isAbsolute, O as relative, h as resolveModulePath, k as resolve, w as join, x as dirname } from "./_libs/c12.mjs";
|
|
2
3
|
import { o as lookupNodeModuleSubpath, s as parseNodeModulePath } from "./_libs/local-pkg.mjs";
|
|
3
4
|
import { o as toExports } from "./_libs/unimport.mjs";
|
package/dist/_presets.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import "./_libs/@rollup/plugin-commonjs.mjs";
|
|
|
5
5
|
import { t as glob } from "./_libs/tinyglobby.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
|
-
import { i as writeFile$2, n as prettyPath } from "./_build/shared.mjs";
|
|
8
|
+
import { i as writeFile$2, n as prettyPath$1 } from "./_build/shared.mjs";
|
|
9
9
|
import { builtinModules } from "node:module";
|
|
10
10
|
import consola$1 from "consola";
|
|
11
11
|
import { dirname, extname, relative, resolve } from "node:path";
|
|
@@ -77,7 +77,7 @@ var nitro_prerender_default = [nitroPrerender];
|
|
|
77
77
|
|
|
78
78
|
//#endregion
|
|
79
79
|
//#region src/presets/_nitro/preset.ts
|
|
80
|
-
var preset_default = [
|
|
80
|
+
var preset_default$26 = [
|
|
81
81
|
...base_worker_default,
|
|
82
82
|
...nitro_dev_default,
|
|
83
83
|
...nitro_prerender_default
|
|
@@ -115,7 +115,7 @@ const gitlabPages = defineNitroPreset({
|
|
|
115
115
|
name: "gitlab-pages",
|
|
116
116
|
static: true
|
|
117
117
|
});
|
|
118
|
-
var preset_default$
|
|
118
|
+
var preset_default$25 = [
|
|
119
119
|
_static,
|
|
120
120
|
githubPages,
|
|
121
121
|
gitlabPages
|
|
@@ -128,7 +128,7 @@ const alwaysdata = defineNitroPreset({
|
|
|
128
128
|
serveStatic: true,
|
|
129
129
|
commands: { deploy: "rsync -rRt --info=progress2 ./ [account]@ssh-[account].alwaysdata.net:www/my-app" }
|
|
130
130
|
}, { name: "alwaysdata" });
|
|
131
|
-
var preset_default$
|
|
131
|
+
var preset_default$24 = [alwaysdata];
|
|
132
132
|
|
|
133
133
|
//#endregion
|
|
134
134
|
//#region src/presets/aws-amplify/utils.ts
|
|
@@ -212,7 +212,7 @@ const awsAmplify = defineNitroPreset({
|
|
|
212
212
|
name: "aws-amplify",
|
|
213
213
|
stdName: "aws_amplify"
|
|
214
214
|
});
|
|
215
|
-
var preset_default$
|
|
215
|
+
var preset_default$23 = [awsAmplify];
|
|
216
216
|
|
|
217
217
|
//#endregion
|
|
218
218
|
//#region src/presets/aws-lambda/preset.ts
|
|
@@ -223,18 +223,18 @@ const awsLambda = defineNitroPreset({
|
|
|
223
223
|
if (nitro.options.awsLambda?.streaming) rollupConfig.input += "-streaming";
|
|
224
224
|
} }
|
|
225
225
|
}, { name: "aws-lambda" });
|
|
226
|
-
var preset_default$
|
|
226
|
+
var preset_default$22 = [awsLambda];
|
|
227
227
|
|
|
228
228
|
//#endregion
|
|
229
229
|
//#region src/presets/_utils/fs.ts
|
|
230
|
-
function prettyPath
|
|
230
|
+
function prettyPath(p$1, highlight = true) {
|
|
231
231
|
p$1 = relative$1(process.cwd(), p$1);
|
|
232
232
|
return highlight ? colors.cyan(p$1) : p$1;
|
|
233
233
|
}
|
|
234
234
|
async function writeFile$1(file, contents, log = false) {
|
|
235
235
|
await fsp.mkdir(dirname$1(file), { recursive: true });
|
|
236
236
|
await fsp.writeFile(file, contents, typeof contents === "string" ? "utf8" : void 0);
|
|
237
|
-
if (log) consola$1.info("Generated", prettyPath
|
|
237
|
+
if (log) consola$1.info("Generated", prettyPath(file));
|
|
238
238
|
}
|
|
239
239
|
|
|
240
240
|
//#endregion
|
|
@@ -342,7 +342,7 @@ const azureSWA = defineNitroPreset({
|
|
|
342
342
|
name: "azure-swa",
|
|
343
343
|
stdName: "azure_static"
|
|
344
344
|
});
|
|
345
|
-
var preset_default$
|
|
345
|
+
var preset_default$21 = [azureSWA];
|
|
346
346
|
|
|
347
347
|
//#endregion
|
|
348
348
|
//#region src/presets/bun/preset.ts
|
|
@@ -357,7 +357,7 @@ const bun = defineNitroPreset({
|
|
|
357
357
|
],
|
|
358
358
|
commands: { preview: "bun run ./server/index.mjs" }
|
|
359
359
|
}, { name: "bun" });
|
|
360
|
-
var preset_default$
|
|
360
|
+
var preset_default$20 = [bun];
|
|
361
361
|
|
|
362
362
|
//#endregion
|
|
363
363
|
//#region src/presets/cleavr/preset.ts
|
|
@@ -368,7 +368,7 @@ const cleavr = defineNitroPreset({
|
|
|
368
368
|
name: "cleavr",
|
|
369
369
|
stdName: "cleavr"
|
|
370
370
|
});
|
|
371
|
-
var preset_default$
|
|
371
|
+
var preset_default$19 = [cleavr];
|
|
372
372
|
|
|
373
373
|
//#endregion
|
|
374
374
|
//#region src/presets/cloudflare/unenv/node-compat.ts
|
|
@@ -665,8 +665,8 @@ function resolveExportsEntry(nitro) {
|
|
|
665
665
|
extensions: RESOLVE_EXTENSIONS,
|
|
666
666
|
try: true
|
|
667
667
|
});
|
|
668
|
-
if (!entry && nitro.options.cloudflare?.exports) nitro.logger.warn(`Your custom Cloudflare entrypoint \`${prettyPath(nitro.options.cloudflare.exports)}\` file does not exist.`);
|
|
669
|
-
else if (entry && !nitro.options.cloudflare?.exports) nitro.logger.info(`Detected \`${prettyPath(entry)}\` as Cloudflare entrypoint.`);
|
|
668
|
+
if (!entry && nitro.options.cloudflare?.exports) nitro.logger.warn(`Your custom Cloudflare entrypoint \`${prettyPath$1(nitro.options.cloudflare.exports)}\` file does not exist.`);
|
|
669
|
+
else if (entry && !nitro.options.cloudflare?.exports) nitro.logger.info(`Detected \`${prettyPath$1(entry)}\` as Cloudflare entrypoint.`);
|
|
670
670
|
return entry;
|
|
671
671
|
}
|
|
672
672
|
|
|
@@ -788,7 +788,7 @@ const cloudflareDurable = defineNitroPreset({
|
|
|
788
788
|
extends: "cloudflare-module",
|
|
789
789
|
entry: "./cloudflare/runtime/cloudflare-durable"
|
|
790
790
|
}, { name: "cloudflare-durable" });
|
|
791
|
-
var preset_default$
|
|
791
|
+
var preset_default$18 = [
|
|
792
792
|
cloudflarePages,
|
|
793
793
|
cloudflarePagesStatic,
|
|
794
794
|
cloudflareModule,
|
|
@@ -922,7 +922,7 @@ const denoServer = defineNitroPreset({
|
|
|
922
922
|
aliases: ["deno"],
|
|
923
923
|
name: "deno-server"
|
|
924
924
|
});
|
|
925
|
-
var preset_default$
|
|
925
|
+
var preset_default$17 = [denoDeploy, denoServer];
|
|
926
926
|
|
|
927
927
|
//#endregion
|
|
928
928
|
//#region src/presets/digitalocean/preset.ts
|
|
@@ -930,7 +930,7 @@ const digitalOcean = defineNitroPreset({
|
|
|
930
930
|
extends: "node-server",
|
|
931
931
|
serveStatic: true
|
|
932
932
|
}, { name: "digital-ocean" });
|
|
933
|
-
var preset_default$
|
|
933
|
+
var preset_default$16 = [digitalOcean];
|
|
934
934
|
|
|
935
935
|
//#endregion
|
|
936
936
|
//#region src/presets/firebase/preset.ts
|
|
@@ -958,7 +958,7 @@ const firebaseAppHosting = defineNitroPreset({
|
|
|
958
958
|
name: "firebase-app-hosting",
|
|
959
959
|
stdName: "firebase_app_hosting"
|
|
960
960
|
});
|
|
961
|
-
var preset_default$
|
|
961
|
+
var preset_default$15 = [firebaseAppHosting];
|
|
962
962
|
|
|
963
963
|
//#endregion
|
|
964
964
|
//#region src/presets/flightcontrol/preset.ts
|
|
@@ -966,7 +966,7 @@ const flightControl = defineNitroPreset({
|
|
|
966
966
|
extends: "node-server",
|
|
967
967
|
serveStatic: true
|
|
968
968
|
}, { name: "flight-control" });
|
|
969
|
-
var preset_default$
|
|
969
|
+
var preset_default$14 = [flightControl];
|
|
970
970
|
|
|
971
971
|
//#endregion
|
|
972
972
|
//#region src/presets/genezio/preset.ts
|
|
@@ -979,7 +979,7 @@ const heroku = defineNitroPreset({
|
|
|
979
979
|
extends: "node-server",
|
|
980
980
|
serveStatic: true
|
|
981
981
|
}, { name: "heroku" });
|
|
982
|
-
var preset_default$
|
|
982
|
+
var preset_default$12 = [heroku];
|
|
983
983
|
|
|
984
984
|
//#endregion
|
|
985
985
|
//#region src/presets/iis/utils.ts
|
|
@@ -1129,7 +1129,7 @@ const iisNode = defineNitroPreset({
|
|
|
1129
1129
|
await writeIISNodeFiles(nitro);
|
|
1130
1130
|
} }
|
|
1131
1131
|
}, { name: "iis-node" });
|
|
1132
|
-
var preset_default$
|
|
1132
|
+
var preset_default$11 = [iisHandler, iisNode];
|
|
1133
1133
|
|
|
1134
1134
|
//#endregion
|
|
1135
1135
|
//#region src/presets/koyeb/preset.ts
|
|
@@ -1137,7 +1137,7 @@ const koyeb = defineNitroPreset({
|
|
|
1137
1137
|
extends: "node-server",
|
|
1138
1138
|
serveStatic: true
|
|
1139
1139
|
}, { name: "koyeb" });
|
|
1140
|
-
var preset_default$
|
|
1140
|
+
var preset_default$10 = [koyeb];
|
|
1141
1141
|
|
|
1142
1142
|
//#endregion
|
|
1143
1143
|
//#region src/presets/netlify/utils.ts
|
|
@@ -1286,7 +1286,7 @@ const netlifyStatic = defineNitroPreset({
|
|
|
1286
1286
|
stdName: "netlify",
|
|
1287
1287
|
static: true
|
|
1288
1288
|
});
|
|
1289
|
-
var preset_default$
|
|
1289
|
+
var preset_default$9 = [
|
|
1290
1290
|
netlify,
|
|
1291
1291
|
netlifyEdge,
|
|
1292
1292
|
netlifyStatic
|
|
@@ -1337,7 +1337,7 @@ const nodeServer = defineNitroPreset({
|
|
|
1337
1337
|
aliases: ["node"]
|
|
1338
1338
|
});
|
|
1339
1339
|
const nodeMiddleware = defineNitroPreset({ entry: "./node/runtime/node-middleware" }, { name: "node-middleware" });
|
|
1340
|
-
var preset_default$
|
|
1340
|
+
var preset_default$8 = [
|
|
1341
1341
|
nodeServer,
|
|
1342
1342
|
nodeCluster,
|
|
1343
1343
|
nodeMiddleware
|
|
@@ -1349,7 +1349,7 @@ const platformSh = defineNitroPreset({
|
|
|
1349
1349
|
extends: "node-server",
|
|
1350
1350
|
serveStatic: true
|
|
1351
1351
|
}, { name: "platform-sh" });
|
|
1352
|
-
var preset_default$
|
|
1352
|
+
var preset_default$7 = [platformSh];
|
|
1353
1353
|
|
|
1354
1354
|
//#endregion
|
|
1355
1355
|
//#region src/presets/render.com/preset.ts
|
|
@@ -1357,7 +1357,7 @@ const renderCom = defineNitroPreset({
|
|
|
1357
1357
|
extends: "node-server",
|
|
1358
1358
|
serveStatic: true
|
|
1359
1359
|
}, { name: "render-com" });
|
|
1360
|
-
var preset_default$
|
|
1360
|
+
var preset_default$6 = [renderCom];
|
|
1361
1361
|
|
|
1362
1362
|
//#endregion
|
|
1363
1363
|
//#region src/presets/standard/preset.ts
|
|
@@ -1375,7 +1375,7 @@ const standard = defineNitroPreset({
|
|
|
1375
1375
|
"srvx/generic": "srvx/generic"
|
|
1376
1376
|
}
|
|
1377
1377
|
}, { name: "standard" });
|
|
1378
|
-
var preset_default$
|
|
1378
|
+
var preset_default$5 = [standard];
|
|
1379
1379
|
|
|
1380
1380
|
//#endregion
|
|
1381
1381
|
//#region src/presets/stormkit/preset.ts
|
|
@@ -1389,7 +1389,7 @@ const stormkit = defineNitroPreset({
|
|
|
1389
1389
|
name: "stormkit",
|
|
1390
1390
|
stdName: "stormkit"
|
|
1391
1391
|
});
|
|
1392
|
-
var preset_default$
|
|
1392
|
+
var preset_default$4 = [stormkit];
|
|
1393
1393
|
|
|
1394
1394
|
//#endregion
|
|
1395
1395
|
//#region src/presets/vercel/runtime/isr.ts
|
|
@@ -1648,7 +1648,7 @@ const vercelStatic = defineNitroPreset({
|
|
|
1648
1648
|
stdName: "vercel",
|
|
1649
1649
|
static: true
|
|
1650
1650
|
});
|
|
1651
|
-
var preset_default$
|
|
1651
|
+
var preset_default$3 = [vercel, vercelStatic];
|
|
1652
1652
|
|
|
1653
1653
|
//#endregion
|
|
1654
1654
|
//#region src/presets/winterjs/preset.ts
|
|
@@ -1660,7 +1660,7 @@ const winterjs = defineNitroPreset({
|
|
|
1660
1660
|
wasm: { lazy: true },
|
|
1661
1661
|
commands: { preview: "wasmer run wasmer/winterjs --forward-host-env --net --mapdir app:./ app/server/index.mjs" }
|
|
1662
1662
|
}, { name: "winterjs" });
|
|
1663
|
-
var preset_default$
|
|
1663
|
+
var preset_default$2 = [winterjs];
|
|
1664
1664
|
|
|
1665
1665
|
//#endregion
|
|
1666
1666
|
//#region src/presets/zeabur/preset.ts
|
|
@@ -1702,7 +1702,7 @@ const zeaburStatic = defineNitroPreset({
|
|
|
1702
1702
|
name: "zeabur-static",
|
|
1703
1703
|
static: true
|
|
1704
1704
|
});
|
|
1705
|
-
var preset_default$
|
|
1705
|
+
var preset_default$1 = [zeabur, zeaburStatic];
|
|
1706
1706
|
|
|
1707
1707
|
//#endregion
|
|
1708
1708
|
//#region src/presets/zerops/preset.ts
|
|
@@ -1720,38 +1720,38 @@ const zeropsStatic = defineNitroPreset({
|
|
|
1720
1720
|
name: "zerops-static",
|
|
1721
1721
|
static: true
|
|
1722
1722
|
});
|
|
1723
|
-
var preset_default
|
|
1723
|
+
var preset_default = [zerops, zeropsStatic];
|
|
1724
1724
|
|
|
1725
1725
|
//#endregion
|
|
1726
1726
|
//#region src/presets/_all.gen.ts
|
|
1727
1727
|
var _all_gen_default = [
|
|
1728
|
-
...preset_default,
|
|
1729
|
-
...preset_default$1,
|
|
1730
|
-
...preset_default$2,
|
|
1731
|
-
...preset_default$3,
|
|
1732
|
-
...preset_default$4,
|
|
1733
|
-
...preset_default$5,
|
|
1734
|
-
...preset_default$6,
|
|
1735
|
-
...preset_default$7,
|
|
1736
|
-
...preset_default$8,
|
|
1737
|
-
...preset_default$9,
|
|
1738
|
-
...preset_default$10,
|
|
1739
|
-
...preset_default$11,
|
|
1740
|
-
...preset_default$12,
|
|
1741
|
-
...preset_default$13,
|
|
1742
|
-
...preset_default$14,
|
|
1743
|
-
...preset_default$15,
|
|
1744
|
-
...preset_default$16,
|
|
1745
|
-
...preset_default$17,
|
|
1746
|
-
...preset_default$18,
|
|
1747
|
-
...preset_default$19,
|
|
1748
|
-
...preset_default$20,
|
|
1749
|
-
...preset_default$21,
|
|
1750
|
-
...preset_default$22,
|
|
1751
|
-
...preset_default$23,
|
|
1752
|
-
...preset_default$24,
|
|
1728
|
+
...preset_default$26,
|
|
1753
1729
|
...preset_default$25,
|
|
1754
|
-
...preset_default$
|
|
1730
|
+
...preset_default$24,
|
|
1731
|
+
...preset_default$23,
|
|
1732
|
+
...preset_default$22,
|
|
1733
|
+
...preset_default$21,
|
|
1734
|
+
...preset_default$20,
|
|
1735
|
+
...preset_default$19,
|
|
1736
|
+
...preset_default$18,
|
|
1737
|
+
...preset_default$17,
|
|
1738
|
+
...preset_default$16,
|
|
1739
|
+
...preset_default$15,
|
|
1740
|
+
...preset_default$14,
|
|
1741
|
+
...preset_default$13,
|
|
1742
|
+
...preset_default$12,
|
|
1743
|
+
...preset_default$11,
|
|
1744
|
+
...preset_default$10,
|
|
1745
|
+
...preset_default$9,
|
|
1746
|
+
...preset_default$8,
|
|
1747
|
+
...preset_default$7,
|
|
1748
|
+
...preset_default$6,
|
|
1749
|
+
...preset_default$5,
|
|
1750
|
+
...preset_default$4,
|
|
1751
|
+
...preset_default$3,
|
|
1752
|
+
...preset_default$2,
|
|
1753
|
+
...preset_default$1,
|
|
1754
|
+
...preset_default
|
|
1755
1755
|
];
|
|
1756
1756
|
|
|
1757
1757
|
//#endregion
|
package/dist/vite.mjs
CHANGED
|
@@ -13,7 +13,7 @@ import "./_build/shared2.mjs";
|
|
|
13
13
|
import "./_dev.mjs";
|
|
14
14
|
import "./_libs/@rollup/plugin-alias.mjs";
|
|
15
15
|
import "./_libs/@rollup/plugin-inject.mjs";
|
|
16
|
-
import "./
|
|
16
|
+
import "./_build/shared3.mjs";
|
|
17
17
|
import "./_libs/etag.mjs";
|
|
18
18
|
import "./_libs/@jridgewell/gen-mapping.mjs";
|
|
19
19
|
import "./_libs/@jridgewell/remapping.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nitro-nightly",
|
|
3
|
-
"version": "3.0.1-20251217-
|
|
3
|
+
"version": "3.0.1-20251217-223946-1ee0b5b8",
|
|
4
4
|
"description": "Build and Deploy Universal JavaScript Servers",
|
|
5
5
|
"homepage": "https://nitro.build",
|
|
6
6
|
"repository": "nitrojs/nitro",
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
"mlly": "^1.8.0",
|
|
133
133
|
"nf3": "^0.3.1",
|
|
134
134
|
"nypm": "^0.6.2",
|
|
135
|
-
"obuild": "^0.4.
|
|
135
|
+
"obuild": "^0.4.9",
|
|
136
136
|
"pathe": "^2.0.3",
|
|
137
137
|
"perfect-debounce": "^2.0.0",
|
|
138
138
|
"pkg-types": "^2.3.0",
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
"pretty-bytes": "^7.1.0",
|
|
141
141
|
"react": "^19.2.3",
|
|
142
142
|
"rendu": "^0.0.7",
|
|
143
|
-
"rolldown": "1.0.0-beta.
|
|
143
|
+
"rolldown": "1.0.0-beta.55",
|
|
144
144
|
"rollup": "^4.53.5",
|
|
145
145
|
"rou3": "^0.7.12",
|
|
146
146
|
"scule": "^1.3.0",
|