@voidzero-dev/vite-plus-core 1.0.0 → 1.2.0
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/LICENSE +36 -177
- package/dist/rolldown/cli.mjs +33 -29
- package/dist/rolldown/config.d.mts +3 -3
- package/dist/rolldown/config.mjs +2 -2
- package/dist/rolldown/experimental-index.d.mts +29 -29
- package/dist/rolldown/experimental-index.mjs +8 -8
- package/dist/rolldown/experimental-runtime-types.d.ts +39 -7
- package/dist/rolldown/experimental-runtime.d.ts +39 -7
- package/dist/rolldown/experimental-runtime.mjs +284 -255
- package/dist/rolldown/filter-index.d.mts +1 -1
- package/dist/rolldown/index.d.mts +3 -3
- package/dist/rolldown/index.mjs +4 -4
- package/dist/rolldown/parallel-plugin-worker.mjs +2 -2
- package/dist/rolldown/parallel-plugin.d.mts +3 -3
- package/dist/rolldown/parse-ast-index.d.mts +6 -7
- package/dist/rolldown/parse-ast-index.mjs +1 -1
- package/dist/rolldown/plugins-index.d.mts +5 -5
- package/dist/rolldown/plugins-index.mjs +2 -2
- package/dist/rolldown/shared/{binding-BY0qR5iS.mjs → binding-DlR5d34p.mjs} +27 -28
- package/dist/rolldown/shared/{binding-BTa6BPQe.d.mts → binding-tzp6Hc_3.d.mts} +1 -1
- package/dist/rolldown/shared/{bindingify-input-options-B8JHmN6_.mjs → bindingify-input-options-DhjlrWZE.mjs} +203 -20
- package/dist/rolldown/shared/{constructors-xEvVj3lN.mjs → constructors-B2hkJoIA.mjs} +1 -1
- package/dist/rolldown/shared/{constructors-DuOq7MqW.d.mts → constructors-Dw9H1IvX.d.mts} +2 -2
- package/dist/rolldown/shared/{create-bundler-option-COco-7P6.mjs → create-bundler-option-1AEe_J0o.mjs} +36 -10
- package/dist/rolldown/shared/{define-config-C7HCoqY8.d.mts → define-config-CGhm2DU-.d.mts} +94 -5
- package/dist/rolldown/shared/{error-C7pxws0W.mjs → error-Dsqzw0Oa.mjs} +2 -1
- package/dist/rolldown/shared/{load-config-DkUBnDsI.mjs → load-config-bvw8z7Ft.mjs} +2 -2
- package/dist/rolldown/shared/{normalize-string-or-regex-F14uvr6D.mjs → normalize-string-or-regex-B7Gsiuz7.mjs} +1 -1
- package/dist/rolldown/shared/{parse-BWeE7Vr9.mjs → parse-BCSSrLHf.mjs} +2 -2
- package/dist/rolldown/shared/{resolve-tsconfig-DHwpIs5e.mjs → resolve-tsconfig-DyR2RUTm.mjs} +2 -2
- package/dist/rolldown/shared/{rolldown-Bue0gNT5.mjs → rolldown-C8QomUuX.mjs} +4 -4
- package/dist/rolldown/shared/{transform-DK_nCt9j.d.mts → transform-D4RDjIPI.d.mts} +1 -1
- package/dist/rolldown/shared/{watch-RXhXN1aG.mjs → watch-CPI70Lkn.mjs} +4 -4
- package/dist/rolldown/utils-index.d.mts +5 -5
- package/dist/rolldown/utils-index.mjs +5 -5
- package/dist/tsdown/{build-JVmLFaZt-DRlLhpV3.js → build-KEepWO_k-BOsPZ2cH.js} +26 -25
- package/dist/tsdown/{debug-CpC4hV25-C-OYr2iI.js → debug-DKTolR2K-BMJOFfj2.js} +4 -5
- package/dist/tsdown/{detect-Bg-d8iUV-Du8LljhG.js → detect-DHDepxVX-CpWW52Jd.js} +38 -34
- package/dist/tsdown/dist-BebyOHRu.js +6224 -0
- package/dist/tsdown/index-types.d.ts +216 -216
- package/dist/tsdown/index.js +4 -4
- package/dist/tsdown/{main-CyNcZUzu.js → main-Du9xCnhX.js} +105 -19
- package/dist/tsdown/npm_entry_picomatch.cjs +36 -25
- package/dist/tsdown/{resolver-DE0_sy8o-Bi3xbRxi.js → resolver-DE0_sy8o-DNoi-dFQ.js} +3 -2
- package/dist/tsdown/run.js +28 -26
- package/dist/tsdown/{src-pN7Bl6zo.js → src-CBWRkeF5.js} +4 -4
- package/dist/tsdown/{target-DgdLrXba-DpO9JXxB.js → target-HZbF5Cux-Cmv1LI5D.js} +175 -9
- package/dist/tsdown/{tsc-BLb4pSBY.js → tsc-YwU2b8yT.js} +4 -4
- package/dist/tsdown/tsdown-css.js +4 -4
- package/dist/tsdown/tsdown-exe.js +5 -43
- package/dist/vite/client/bundledDevClient.mjs +109 -345
- package/dist/vite/client/client.mjs +80 -28
- package/dist/vite/node/chunks/build.js +19 -19
- package/dist/vite/node/chunks/node.js +5210 -4942
- package/dist/vite/node/chunks/postcss-import.js +10 -10
- package/dist/vite/node/cli.js +24 -21
- package/dist/vite/node/index.d.ts +5 -2
- package/dist/vite/node/index.js +1 -2
- package/dist/vite/node/internal.js +1 -2
- package/dist/vite/node/module-runner.d.ts +1 -0
- package/dist/vite/node/module-runner.js +32 -27
- package/package.json +46 -30
- package/dist/rolldown/experimental-default-runtime.mjs +0 -116
- package/dist/rolldown/experimental-runtime-base.mjs +0 -95
- package/dist/tsdown/dist-VDcV1Qyy.js +0 -2952
- package/dist/tsdown/require-BbBF8Ii0-BDaWJgzA.js +0 -320
- package/dist/tsdown/style-DiMP8pYv-DIC5PXeH.js +0 -88
- package/dist/tsdown/version-CQ98ZBpL-D6GAHapk.js +0 -169
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as x, r as createDebug } from "./main-CyNcZUzu.js";
|
|
3
|
-
import { a as GREATER_LESS_THAN, c as LOOSE_PLAIN, d as compareParsed, f as formatComparableVersion, g as tryParse, h as safeRegex, i as FULL_PLAIN, l as XRANGE_PLAIN, m as parse$1, n as normalize$1, o as LONE_CARET, p as isGreaterOrEqual, r as BUILD, s as LONE_TILDE, u as XRANGE_PLAIN_LOOSE, v as RE_DTS } from "./version-CQ98ZBpL-D6GAHapk.js";
|
|
1
|
+
import { c as importWithError, f as resolveComma, g as toArray, h as styleText$1, n as x, r as createDebug } from "./main-Du9xCnhX.js";
|
|
4
2
|
import process from "node:process";
|
|
5
3
|
import path from "node:path";
|
|
4
|
+
import { RUNTIME_MODULE_ID } from "@voidzero-dev/vite-plus-core/rolldown";
|
|
6
5
|
import { access, cp, mkdir, mkdtemp, rm, stat, writeFile } from "node:fs/promises";
|
|
6
|
+
import { exactRegex } from "@voidzero-dev/vite-plus-core/rolldown/filter";
|
|
7
7
|
import { tmpdir } from "node:os";
|
|
8
|
-
//#region ../../node_modules/.pnpm/tsdown@0.23.
|
|
8
|
+
//#region ../../node_modules/.pnpm/tsdown@0.23.1_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.1_@tsdown+exe@0.23.1_@type_1c5668b23b89ab367f1fd43e24d0d72d/node_modules/tsdown/dist/format-DLxyxnif.mjs
|
|
9
9
|
function fsExists(path) {
|
|
10
10
|
return access(path).then(() => true, () => false);
|
|
11
11
|
}
|
|
@@ -53,7 +53,147 @@ function formatBytes(bytes) {
|
|
|
53
53
|
return `${(bytes / 1e3).toFixed(2)} kB`;
|
|
54
54
|
}
|
|
55
55
|
//#endregion
|
|
56
|
-
//#region ../../node_modules/.pnpm/
|
|
56
|
+
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.28.8_@typescript+native-preview@7.0.0-dev.20260707.2_@volar+types_4c1d5de710c0092ce9c83871c07b3140/node_modules/rolldown-plugin-dts/dist/filename-BFg1q_t3.mjs
|
|
57
|
+
const RE_JS = /\.([cm]?)jsx?$/;
|
|
58
|
+
const RE_TS = /\.([cm]?)tsx?$/;
|
|
59
|
+
const RE_DTS = /\.d\.([cm]?)ts$/;
|
|
60
|
+
const RE_DTS_MAP = /\.d\.([cm]?)ts\.map$/;
|
|
61
|
+
const RE_NODE_MODULES = /[\\/]node_modules[\\/]/;
|
|
62
|
+
const RE_CSS = /\.(?:css|scss|sass|less|styl|stylus)$/;
|
|
63
|
+
const RE_JSON = /\.json$/;
|
|
64
|
+
const RE_ROLLDOWN_RUNTIME = exactRegex(RUNTIME_MODULE_ID);
|
|
65
|
+
function filename_js_to_dts(id) {
|
|
66
|
+
return id.replace(RE_JS, ".d.$1ts");
|
|
67
|
+
}
|
|
68
|
+
function filename_to_dts(id, languageContext) {
|
|
69
|
+
id = languageContext?.toTsFilename?.(id) ?? id;
|
|
70
|
+
return id.replace(RE_TS, ".d.$1ts").replace(RE_JS, ".d.$1ts").replace(RE_JSON, ".json.d.ts");
|
|
71
|
+
}
|
|
72
|
+
function filename_dts_to(id, ext) {
|
|
73
|
+
return id.replace(RE_DTS, `.$1${ext}`);
|
|
74
|
+
}
|
|
75
|
+
function resolveTemplateFn(fn, chunk) {
|
|
76
|
+
return typeof fn === "function" ? fn(chunk) : fn;
|
|
77
|
+
}
|
|
78
|
+
function replaceTemplateName(template, name) {
|
|
79
|
+
return template.replaceAll("[name]", name);
|
|
80
|
+
}
|
|
81
|
+
//#endregion
|
|
82
|
+
//#region ../../node_modules/.pnpm/verkit@0.5.0/node_modules/verkit/dist/comparison-CmVirWIW.js
|
|
83
|
+
const LETTER_DASH_NUMBER = "[a-zA-Z0-9-]";
|
|
84
|
+
const NUMERIC_IDENTIFIER = String.raw`0|[1-9]\d*`;
|
|
85
|
+
const NUMERIC_IDENTIFIER_LOOSE = String.raw`\d+`;
|
|
86
|
+
const NON_NUMERIC_IDENTIFIER = String.raw`\d*[a-zA-Z-]${LETTER_DASH_NUMBER}*`;
|
|
87
|
+
const MAIN_VERSION = String.raw`(${NUMERIC_IDENTIFIER})\.(${NUMERIC_IDENTIFIER})\.(${NUMERIC_IDENTIFIER})`;
|
|
88
|
+
const MAIN_VERSION_LOOSE = String.raw`(${NUMERIC_IDENTIFIER_LOOSE})\.(${NUMERIC_IDENTIFIER_LOOSE})\.(${NUMERIC_IDENTIFIER_LOOSE})`;
|
|
89
|
+
const PRERELEASE_IDENTIFIER = `(?:${NON_NUMERIC_IDENTIFIER}|${NUMERIC_IDENTIFIER})`;
|
|
90
|
+
const PRERELEASE_IDENTIFIER_LOOSE = `(?:${NON_NUMERIC_IDENTIFIER}|${NUMERIC_IDENTIFIER_LOOSE})`;
|
|
91
|
+
const PRERELEASE = String.raw`(?:-(${PRERELEASE_IDENTIFIER}(?:\.${PRERELEASE_IDENTIFIER})*))`;
|
|
92
|
+
const PRERELEASE_LOOSE = String.raw`(?:-?(${PRERELEASE_IDENTIFIER_LOOSE}(?:\.${PRERELEASE_IDENTIFIER_LOOSE})*))`;
|
|
93
|
+
const BUILD_IDENTIFIER = `${LETTER_DASH_NUMBER}+`;
|
|
94
|
+
const BUILD = String.raw`(?:\+(${BUILD_IDENTIFIER}(?:\.${BUILD_IDENTIFIER})*))`;
|
|
95
|
+
const FULL_PLAIN = `v?${MAIN_VERSION}${PRERELEASE}?${BUILD}?`;
|
|
96
|
+
const LOOSE_PLAIN = String.raw`[v=\s]*${MAIN_VERSION_LOOSE}${PRERELEASE_LOOSE}?${BUILD}?`;
|
|
97
|
+
const GREATER_LESS_THAN = "((?:<|>)?=?)";
|
|
98
|
+
const XRANGE_IDENTIFIER = String.raw`${NUMERIC_IDENTIFIER}|x|X|\*`;
|
|
99
|
+
const XRANGE_IDENTIFIER_LOOSE = String.raw`${NUMERIC_IDENTIFIER_LOOSE}|x|X|\*`;
|
|
100
|
+
const XRANGE_PLAIN = String.raw`[v=\s]*(${XRANGE_IDENTIFIER})(?:\.(${XRANGE_IDENTIFIER})(?:\.(${XRANGE_IDENTIFIER})(?:${PRERELEASE})?${BUILD}?)?)?`;
|
|
101
|
+
const XRANGE_PLAIN_LOOSE = String.raw`[v=\s]*(${XRANGE_IDENTIFIER_LOOSE})(?:\.(${XRANGE_IDENTIFIER_LOOSE})(?:\.(${XRANGE_IDENTIFIER_LOOSE})(?:${PRERELEASE_LOOSE})?${BUILD}?)?)?`;
|
|
102
|
+
const LONE_TILDE = "(?:~>?)";
|
|
103
|
+
const LONE_CARET = String.raw`(?:\^)`;
|
|
104
|
+
const COERCE_PLAIN = String.raw`(^|[^\d])(\d{1,${16}})(?:\.(\d{1,${16}}))?(?:\.(\d{1,${16}}))?`;
|
|
105
|
+
const COERCE = String.raw`${COERCE_PLAIN}(?:$|[^\d])`;
|
|
106
|
+
const COERCE_FULL = String.raw`${COERCE_PLAIN}(?:${PRERELEASE})?(?:${BUILD})?(?:$|[^\d])`;
|
|
107
|
+
function makeSafeRegexSource(source) {
|
|
108
|
+
const replacements = [
|
|
109
|
+
[String.raw`\s`, 1],
|
|
110
|
+
[String.raw`\d`, 256],
|
|
111
|
+
[LETTER_DASH_NUMBER, 250]
|
|
112
|
+
];
|
|
113
|
+
for (const [token, maximum] of replacements) source = source.split(`${token}*`).join(`${token}{0,${maximum}}`).split(`${token}+`).join(`${token}{1,${maximum}}`);
|
|
114
|
+
return source;
|
|
115
|
+
}
|
|
116
|
+
function safeRegex(source, flags) {
|
|
117
|
+
return new RegExp(makeSafeRegexSource(source), flags);
|
|
118
|
+
}
|
|
119
|
+
const FULL = safeRegex(`^${FULL_PLAIN}$`);
|
|
120
|
+
const LOOSE = safeRegex(`^${LOOSE_PLAIN}$`);
|
|
121
|
+
const NUMERIC$1 = /^\d+$/;
|
|
122
|
+
function formatComparableVersion(version) {
|
|
123
|
+
const base = `${version.major}.${version.minor}.${version.patch}`;
|
|
124
|
+
return version.prerelease?.length ? `${base}-${version.prerelease.join(".")}` : base;
|
|
125
|
+
}
|
|
126
|
+
function parse$1(version, options = {}) {
|
|
127
|
+
if (typeof version !== "string") return version;
|
|
128
|
+
if (version.length > 256) throw new TypeError(`Version exceeds the maximum length of 256 characters`);
|
|
129
|
+
const match = version.trim().match(options.loose ? LOOSE : FULL);
|
|
130
|
+
if (!match) throw new TypeError(`Invalid version syntax: ${version}`);
|
|
131
|
+
const major = Number(match[1]);
|
|
132
|
+
const minor = Number(match[2]);
|
|
133
|
+
const patch = Number(match[3]);
|
|
134
|
+
if (major > Number.MAX_SAFE_INTEGER || major < 0) throw new TypeError(`Invalid major version: ${match[1]}`);
|
|
135
|
+
if (minor > Number.MAX_SAFE_INTEGER || minor < 0) throw new TypeError(`Invalid minor version: ${match[2]}`);
|
|
136
|
+
if (patch > Number.MAX_SAFE_INTEGER || patch < 0) throw new TypeError(`Invalid patch version: ${match[3]}`);
|
|
137
|
+
const prerelease = match[4] ? match[4].split(".").map((identifier) => {
|
|
138
|
+
if (NUMERIC$1.test(identifier)) {
|
|
139
|
+
const numeric = Number(identifier);
|
|
140
|
+
if (numeric >= 0 && numeric < Number.MAX_SAFE_INTEGER) return numeric;
|
|
141
|
+
}
|
|
142
|
+
return identifier;
|
|
143
|
+
}) : void 0;
|
|
144
|
+
return {
|
|
145
|
+
build: match[5]?.split("."),
|
|
146
|
+
major,
|
|
147
|
+
minor,
|
|
148
|
+
patch,
|
|
149
|
+
prerelease
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
function tryParse(version, options = {}) {
|
|
153
|
+
try {
|
|
154
|
+
return parse$1(version, options);
|
|
155
|
+
} catch {
|
|
156
|
+
return null;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
const NUMERIC = /^\d+$/;
|
|
160
|
+
function compareIdentifiers(left, right) {
|
|
161
|
+
if (typeof left === "number" && typeof right === "number") return left === right ? 0 : left < right ? -1 : 1;
|
|
162
|
+
const leftNumeric = NUMERIC.test(String(left));
|
|
163
|
+
const rightNumeric = NUMERIC.test(String(right));
|
|
164
|
+
const normalizedLeft = leftNumeric ? Number(left) : left;
|
|
165
|
+
const normalizedRight = rightNumeric ? Number(right) : right;
|
|
166
|
+
return normalizedLeft === normalizedRight ? 0 : leftNumeric && !rightNumeric ? -1 : rightNumeric && !leftNumeric ? 1 : normalizedLeft < normalizedRight ? -1 : 1;
|
|
167
|
+
}
|
|
168
|
+
function compareMainParsed(left, right) {
|
|
169
|
+
return left.major === right.major ? left.minor === right.minor ? left.patch === right.patch ? 0 : left.patch < right.patch ? -1 : 1 : left.minor < right.minor ? -1 : 1 : left.major < right.major ? -1 : 1;
|
|
170
|
+
}
|
|
171
|
+
function comparePrereleaseParsed(left, right) {
|
|
172
|
+
const leftPrerelease = left.prerelease;
|
|
173
|
+
const rightPrerelease = right.prerelease;
|
|
174
|
+
if (leftPrerelease?.length && !rightPrerelease?.length) return -1;
|
|
175
|
+
if (!leftPrerelease?.length && rightPrerelease?.length) return 1;
|
|
176
|
+
if (!leftPrerelease?.length && !rightPrerelease?.length) return 0;
|
|
177
|
+
for (let index = 0;; index++) {
|
|
178
|
+
const leftIdentifier = leftPrerelease?.[index];
|
|
179
|
+
const rightIdentifier = rightPrerelease?.[index];
|
|
180
|
+
if (leftIdentifier === void 0 && rightIdentifier === void 0) return 0;
|
|
181
|
+
if (rightIdentifier === void 0) return 1;
|
|
182
|
+
if (leftIdentifier === void 0) return -1;
|
|
183
|
+
if (leftIdentifier !== rightIdentifier) return compareIdentifiers(leftIdentifier, rightIdentifier);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
function compareParsed(left, right) {
|
|
187
|
+
return compareMainParsed(left, right) || comparePrereleaseParsed(left, right);
|
|
188
|
+
}
|
|
189
|
+
function compare(left, right, options = {}) {
|
|
190
|
+
return compareParsed(parse$1(left, options), parse$1(right, options));
|
|
191
|
+
}
|
|
192
|
+
function isGreaterThanOrEqual(left, right, options = {}) {
|
|
193
|
+
return compare(left, right, options) >= 0;
|
|
194
|
+
}
|
|
195
|
+
//#endregion
|
|
196
|
+
//#region ../../node_modules/.pnpm/verkit@0.5.0/node_modules/verkit/dist/set-BGFWKKE8.js
|
|
57
197
|
const STRICT_COMPARATOR = safeRegex(String.raw`^${GREATER_LESS_THAN}\s*(${FULL_PLAIN})$|^$`);
|
|
58
198
|
const LOOSE_COMPARATOR$1 = safeRegex(String.raw`^${GREATER_LESS_THAN}\s*(${LOOSE_PLAIN})$|^$`);
|
|
59
199
|
function parseComparator(comparator, options = {}) {
|
|
@@ -90,7 +230,7 @@ function testComparatorSet(set, version, options) {
|
|
|
90
230
|
return !version.prerelease?.length || !!options.includePrerelease || set.some((comparator) => comparatorAllowsPrerelease(comparator, version));
|
|
91
231
|
}
|
|
92
232
|
//#endregion
|
|
93
|
-
//#region ../../node_modules/.pnpm/verkit@0.
|
|
233
|
+
//#region ../../node_modules/.pnpm/verkit@0.5.0/node_modules/verkit/dist/range-C5wjdo9a.js
|
|
94
234
|
const BUILD_STRIP = new RegExp(BUILD, "g");
|
|
95
235
|
const BUILD_SAFE = safeRegex(BUILD);
|
|
96
236
|
const STRICT_HYPHEN = safeRegex(String.raw`^\s*(${XRANGE_PLAIN})\s+-\s+(${XRANGE_PLAIN})\s*$`);
|
|
@@ -290,7 +430,33 @@ function findMinimumForRange(range, options = {}) {
|
|
|
290
430
|
return minimum && testParsedRange(parsedRange, minimum) ? minimum : null;
|
|
291
431
|
}
|
|
292
432
|
//#endregion
|
|
293
|
-
//#region ../../node_modules/.pnpm/
|
|
433
|
+
//#region ../../node_modules/.pnpm/verkit@0.5.0/node_modules/verkit/dist/version-Co1j9Tpq.js
|
|
434
|
+
const COERCE_EXACT = safeRegex(COERCE);
|
|
435
|
+
const COERCE_FULL_EXACT = safeRegex(COERCE_FULL);
|
|
436
|
+
safeRegex(`^${PRERELEASE}$`);
|
|
437
|
+
safeRegex(`^${PRERELEASE_LOOSE}$`);
|
|
438
|
+
function normalize$1(version, options = {}) {
|
|
439
|
+
const parsed = tryParse(version, options);
|
|
440
|
+
return parsed ? formatComparableVersion(parsed) : null;
|
|
441
|
+
}
|
|
442
|
+
function coerce(value, options = {}) {
|
|
443
|
+
if (typeof value === "object") return value;
|
|
444
|
+
const input = typeof value === "number" ? String(value) : value;
|
|
445
|
+
let match = null;
|
|
446
|
+
if (options.rtl) {
|
|
447
|
+
const expression = safeRegex(options.includePrerelease ? COERCE_FULL : COERCE, "g");
|
|
448
|
+
let next;
|
|
449
|
+
while ((next = expression.exec(input)) && (!match || match.index + match[0].length !== input.length)) {
|
|
450
|
+
if (!match || next.index + next[0].length !== match.index + match[0].length) match = next;
|
|
451
|
+
expression.lastIndex = next.index + next[1].length + next[2].length;
|
|
452
|
+
}
|
|
453
|
+
} else match = (options.includePrerelease ? COERCE_FULL_EXACT : COERCE_EXACT).exec(input);
|
|
454
|
+
if (!match) return null;
|
|
455
|
+
const major = match[2];
|
|
456
|
+
return tryParse(`${major}.${match[3] || "0"}.${match[4] || "0"}${options.includePrerelease && match[5] ? `-${match[5]}` : ""}${options.includePrerelease && match[6] ? `+${match[6]}` : ""}`, options);
|
|
457
|
+
}
|
|
458
|
+
//#endregion
|
|
459
|
+
//#region ../../node_modules/.pnpm/tsdown@0.23.1_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.1_@tsdown+exe@0.23.1_@type_1c5668b23b89ab367f1fd43e24d0d72d/node_modules/tsdown/dist/target-HZbF5Cux.mjs
|
|
294
460
|
const NODE_SEA_MIN_VERSION = "25.7.0";
|
|
295
461
|
const NODE_SEA_MIN_VERSION_PARSED = {
|
|
296
462
|
major: 25,
|
|
@@ -300,7 +466,7 @@ const NODE_SEA_MIN_VERSION_PARSED = {
|
|
|
300
466
|
const debug = createDebug("tsdown:exe");
|
|
301
467
|
function validateSea({ dts, entry, logger, nameLabel }) {
|
|
302
468
|
if (process.versions.bun || process.versions.deno) throw new Error("The `exe` option is not supported in Bun and Deno environments.");
|
|
303
|
-
if (!
|
|
469
|
+
if (!isGreaterThanOrEqual(process.version, NODE_SEA_MIN_VERSION_PARSED)) throw new Error(`Node.js version ${process.version} does not support \`exe\` option. Please upgrade to Node.js ${NODE_SEA_MIN_VERSION} or later.`);
|
|
304
470
|
if (Object.keys(entry).length > 1) throw new Error(`The \`exe\` feature currently only supports single entry points. Found entries:\n${JSON.stringify(entry, void 0, 2)}`);
|
|
305
471
|
if (dts) logger.warn(nameLabel, `Generating .d.ts files with \`exe\` option is not recommended since they won't be included in the executable. Consider separating your library and executable targets if you need type declarations.`);
|
|
306
472
|
logger.info(nameLabel, "`exe` option is experimental and may change in future releases.");
|
|
@@ -417,4 +583,4 @@ function resolvePackageTarget(pkg) {
|
|
|
417
583
|
return `node${normalized}`;
|
|
418
584
|
}
|
|
419
585
|
//#endregion
|
|
420
|
-
export {
|
|
586
|
+
export { fsStat as A, filename_to_dts as C, fsCopy as D, formatBytes as E, stripExtname as M, fsExists as O, filename_js_to_dts as S, resolveTemplateFn as T, RE_JSON as _, resolveTarget as a, RE_TS as b, normalize$1 as c, isGreaterThanOrEqual as d, tryParse as f, RE_JS as g, RE_DTS_MAP as h, expandBaselineTarget as i, lowestCommonAncestor as j, fsRemove as k, parseRange as l, RE_DTS as m, NODE_SEA_MIN_VERSION_PARSED as n, validateSea as o, RE_CSS as p, buildExe as r, coerce as s, NODE_SEA_MIN_VERSION as t, satisfies as u, RE_NODE_MODULES as v, replaceTemplateName as w, filename_dts_to as x, RE_ROLLDOWN_RUNTIME as y };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { r as createDebug } from "./main-Du9xCnhX.js";
|
|
2
|
+
import { h as RE_DTS_MAP, m as RE_DTS } from "./target-HZbF5Cux-Cmv1LI5D.js";
|
|
3
|
+
import { n as globalContext, t as requireTSApi } from "./dist-BebyOHRu.js";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { pathToFileURL } from "node:url";
|
|
6
|
-
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.28.
|
|
6
|
+
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.28.8_@typescript+native-preview@7.0.0-dev.20260707.2_@volar+types_4c1d5de710c0092ce9c83871c07b3140/node_modules/rolldown-plugin-dts/dist/tsc-CJA_TTZv.mjs
|
|
7
7
|
const debug$3 = createDebug("rolldown-plugin-dts:tsc-system");
|
|
8
8
|
const ts$3 = requireTSApi();
|
|
9
9
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { i as __toESM } from "./rolldown-runtime-B4iAMlE-.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { c as importWithError, f as resolveComma, g as toArray } from "./main-Du9xCnhX.js";
|
|
3
|
+
import { i as expandBaselineTarget } from "./target-HZbF5Cux-Cmv1LI5D.js";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
6
6
|
import { readFileSync } from "node:fs";
|
|
7
7
|
import { readFile } from "node:fs/promises";
|
|
8
8
|
import { ResolverFactory } from "@voidzero-dev/vite-plus-core/rolldown/experimental";
|
|
9
|
-
//#region ../../node_modules/.pnpm/@tsdown+css@0.23.
|
|
9
|
+
//#region ../../node_modules/.pnpm/@tsdown+css@0.23.1_jiti@2.7.0_postcss-import@16.2.0_postcss@8.5.29__postcss-modules@9.0_89d4a48b4231935ad11ddff5e4171f5b/node_modules/@tsdown/css/dist/index.mjs
|
|
10
10
|
const defaultCssBundleName = "style.css";
|
|
11
11
|
function resolveCssOptions(options = {}, topLevelTarget, unbundle) {
|
|
12
12
|
let cssTarget;
|
|
@@ -609,7 +609,7 @@ async function loadFileConfig(searchPath) {
|
|
|
609
609
|
if (cached !== void 0) return cached;
|
|
610
610
|
const promise = (async () => {
|
|
611
611
|
try {
|
|
612
|
-
const postcssrc = (await import("./src-
|
|
612
|
+
const postcssrc = (await import("./src-CBWRkeF5.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1))).default;
|
|
613
613
|
const result = await postcssrc({}, searchPath);
|
|
614
614
|
return {
|
|
615
615
|
options: result.options,
|
|
@@ -1,52 +1,14 @@
|
|
|
1
|
-
import { n as x, r as createDebug } from "./main-
|
|
2
|
-
import {
|
|
3
|
-
import { createRequire } from "node:module";
|
|
1
|
+
import { n as x, r as createDebug } from "./main-Du9xCnhX.js";
|
|
2
|
+
import { O as fsExists, c as normalize$1, d as isGreaterThanOrEqual, f as tryParse, k as fsRemove, n as NODE_SEA_MIN_VERSION_PARSED, t as NODE_SEA_MIN_VERSION } from "./target-HZbF5Cux-Cmv1LI5D.js";
|
|
4
3
|
import process from "node:process";
|
|
5
|
-
import { styleText } from "node:util";
|
|
6
4
|
import path from "node:path";
|
|
7
5
|
import { pipeline } from "node:stream/promises";
|
|
8
6
|
import { Readable } from "node:stream";
|
|
9
7
|
import { createReadStream, createWriteStream } from "node:fs";
|
|
10
|
-
import {
|
|
8
|
+
import { chmod, mkdir, rename } from "node:fs/promises";
|
|
11
9
|
import os from "node:os";
|
|
12
10
|
import { createHash } from "node:crypto";
|
|
13
|
-
//#region ../../node_modules/.pnpm
|
|
14
|
-
function fsExists(path) {
|
|
15
|
-
return access(path).then(() => true, () => false);
|
|
16
|
-
}
|
|
17
|
-
function fsRemove(path) {
|
|
18
|
-
return rm(path, {
|
|
19
|
-
force: true,
|
|
20
|
-
recursive: true
|
|
21
|
-
}).catch(() => {});
|
|
22
|
-
}
|
|
23
|
-
createRequire(import.meta.url)("./npm_entry_picomatch.cjs");
|
|
24
|
-
let supportRGB = !!process.stdout.hasColors?.(2 ** 24);
|
|
25
|
-
if (supportRGB) try {
|
|
26
|
-
styleText("#000", "");
|
|
27
|
-
} catch {
|
|
28
|
-
supportRGB = false;
|
|
29
|
-
}
|
|
30
|
-
const factory = (...formats) => new Proxy(styleText.bind(void 0, formats), { get: (_, format) => {
|
|
31
|
-
if (format[0] === "#") {
|
|
32
|
-
const [color, fallback] = format.split(",", 2);
|
|
33
|
-
if (!supportRGB) return fallback ? factory(...formats, fallback) : factory(...formats);
|
|
34
|
-
return factory(...formats, color);
|
|
35
|
-
}
|
|
36
|
-
return factory(...formats, format);
|
|
37
|
-
} });
|
|
38
|
-
factory();
|
|
39
|
-
//#endregion
|
|
40
|
-
//#region ../../node_modules/.pnpm/tsdown@0.23.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.0_@tsdown+exe@0.23.0_@type_540e13d22e6879071cae9cd3610e4dea/node_modules/tsdown/dist/target-DgdLrXba.mjs
|
|
41
|
-
const NODE_SEA_MIN_VERSION = "25.7.0";
|
|
42
|
-
const NODE_SEA_MIN_VERSION_PARSED = {
|
|
43
|
-
major: 25,
|
|
44
|
-
minor: 7,
|
|
45
|
-
patch: 0
|
|
46
|
-
};
|
|
47
|
-
createDebug("tsdown:exe");
|
|
48
|
-
//#endregion
|
|
49
|
-
//#region ../../node_modules/.pnpm/@tsdown+exe@0.23.0_tsdown@0.23.0/node_modules/@tsdown/exe/dist/index.mjs
|
|
11
|
+
//#region ../../node_modules/.pnpm/@tsdown+exe@0.23.1_tsdown@0.23.1/node_modules/@tsdown/exe/dist/index.mjs
|
|
50
12
|
function getCacheDir() {
|
|
51
13
|
const home = os.homedir();
|
|
52
14
|
if (process.platform === "win32") {
|
|
@@ -88,7 +50,7 @@ async function resolveNodeVersion(nodeVersion, nodeDistIndexUrl = "https://nodej
|
|
|
88
50
|
}
|
|
89
51
|
const version = tryParse(nodeVersion);
|
|
90
52
|
if (!version) throw new Error(`Invalid Node.js version: ${nodeVersion}. Please provide a valid version string (e.g., "25.7.0").`);
|
|
91
|
-
if (!
|
|
53
|
+
if (!isGreaterThanOrEqual(version, NODE_SEA_MIN_VERSION_PARSED)) throw new Error(`Node.js ${version} does not support SEA (Single Executable Applications). Required minimum version is ${NODE_SEA_MIN_VERSION}. Please update the nodeVersion in your target configuration.`);
|
|
92
54
|
return normalize$1(version);
|
|
93
55
|
}
|
|
94
56
|
function getTargetSuffix(target) {
|