@voidzero-dev/vite-plus-core 0.1.23 → 0.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 +2 -2
- package/dist/rolldown/cli.mjs +6 -6
- package/dist/rolldown/config.d.mts +1 -1
- package/dist/rolldown/config.mjs +2 -2
- package/dist/rolldown/experimental-index.d.mts +4 -4
- package/dist/rolldown/experimental-index.mjs +10 -10
- package/dist/rolldown/filter-index.d.mts +1 -1
- package/dist/rolldown/index.d.mts +2 -2
- package/dist/rolldown/index.mjs +4 -4
- package/dist/rolldown/parallel-plugin-worker.mjs +2 -2
- package/dist/rolldown/parallel-plugin.d.mts +1 -1
- package/dist/rolldown/parse-ast-index.d.mts +1 -1
- package/dist/rolldown/parse-ast-index.mjs +1 -1
- package/dist/rolldown/plugins-index.d.mts +3 -3
- package/dist/rolldown/plugins-index.mjs +2 -2
- package/dist/rolldown/shared/{binding-CXquf8ay.mjs → binding-CfwqjDbP.mjs} +31 -30
- package/dist/rolldown/shared/{binding-BaCZTfMx.d.mts → binding-DgGsNpT9.d.mts} +97 -1
- package/dist/rolldown/shared/{bindingify-input-options-D2ORek5s.mjs → bindingify-input-options--chmbDhw.mjs} +16 -8
- package/dist/rolldown/shared/{constructors-CbNaT434.d.mts → constructors-Bx1tSad6.d.mts} +2 -2
- package/dist/rolldown/shared/{constructors-BiPdtLBB.mjs → constructors-DnT9y_13.mjs} +1 -1
- package/dist/rolldown/shared/{define-config-3BX_X2Am.d.mts → define-config-ChOOV2QZ.d.mts} +29 -11
- package/dist/rolldown/shared/{error-BuvQYXuZ.mjs → error-C0TrL0_H.mjs} +1 -1
- package/dist/rolldown/shared/{load-config-uvbpmLwO.mjs → load-config-BXgGQtnA.mjs} +1 -1
- package/dist/rolldown/shared/{normalize-string-or-regex-CNPF6PU9.mjs → normalize-string-or-regex-DGbe3BlX.mjs} +1 -1
- package/dist/rolldown/shared/{parse-1VOPJ1Lj.mjs → parse-26ORR8fZ.mjs} +2 -2
- package/dist/rolldown/shared/{resolve-tsconfig-CcfxWrib.mjs → resolve-tsconfig-D3YLh9ff.mjs} +2 -2
- package/dist/rolldown/shared/{rolldown-BZYLlfsv.mjs → rolldown-DpXXI00f.mjs} +1 -1
- package/dist/rolldown/shared/{rolldown-build-CgMNHFY3.mjs → rolldown-build-D8R4Zzfy.mjs} +48 -6
- package/dist/rolldown/shared/{transform-7xCUVrpL.d.mts → transform-C-XSNVrd.d.mts} +1 -1
- package/dist/rolldown/shared/{watch-BX_aH1Oh.mjs → watch-D5Zm0Vsz.mjs} +4 -4
- package/dist/rolldown/utils-index.d.mts +3 -3
- package/dist/rolldown/utils-index.mjs +5 -5
- package/dist/tsdown/{build-5FURNVr0-CsM6vj3e.js → build-B_nvJe4A-hrVGPLD6.js} +150 -97
- package/dist/tsdown/{detect-DN3DXXYt-TsZBbdhI.js → detect-B97OSl92-B5bcx_Ya.js} +1 -1
- package/dist/tsdown/{dist-wWM45aJq.js → dist-Dvzn3mZN.js} +883 -1661
- package/dist/tsdown/index-types.d.ts +30 -14
- package/dist/tsdown/index.js +3 -3
- package/dist/tsdown/main-BMtwTklr.js +973 -0
- package/dist/tsdown/npm_cjs_chunk_range.cjs +30 -26
- package/dist/tsdown/npm_cjs_chunk_semver.cjs +22 -15
- package/dist/tsdown/npm_entry_picomatch.cjs +7 -7
- package/dist/tsdown/npm_entry_semver_functions_coerce.cjs +5 -5
- package/dist/tsdown/npm_entry_semver_functions_satisfies.cjs +3 -3
- package/dist/tsdown/npm_entry_semver_ranges_min-version.cjs +3 -3
- package/dist/tsdown/npm_entry_tree-kill.cjs +1 -1
- package/dist/tsdown/{resolver-DkvdaW3s-Dz1U-gxd.js → resolver-DtsKFXi2-DQOmVgSY.js} +1 -1
- package/dist/tsdown/run.js +6 -6
- package/dist/tsdown/{tsc-context-DXovbMXp.js → tsc-context-DfwSQt2q.js} +2 -2
- package/dist/tsdown/{tsc-Dp9emiKb.js → tsc-q0JAW6kD.js} +3 -3
- package/dist/vite/client/client.mjs +4 -4
- package/dist/vite/node/chunks/dist2.js +3 -3
- package/dist/vite/node/chunks/logger.js +1 -1
- package/dist/vite/node/chunks/node.js +220 -114
- package/dist/vite/node/index.d.ts +2 -2
- package/package.json +17 -17
- package/dist/tsdown/chunk-DJK8HYOj.js +0 -34
- package/dist/tsdown/main-Cq8Is40L.js +0 -1173
- /package/dist/tsdown/{npm_cjs_chunk_chunk.cjs → npm_cjs_chunk_rolldown-runtime.cjs} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_rolldown_runtime = require("./npm_cjs_chunk_rolldown-runtime.cjs");
|
|
2
2
|
const require_semver$1 = require("./npm_cjs_chunk_semver.cjs");
|
|
3
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
4
|
-
var require_lrucache = /* @__PURE__ */
|
|
3
|
+
//#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/internal/lrucache.js
|
|
4
|
+
var require_lrucache = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
5
5
|
var LRUCache = class {
|
|
6
6
|
constructor() {
|
|
7
7
|
this.max = 1e3;
|
|
@@ -33,57 +33,57 @@ var require_lrucache = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
33
33
|
module.exports = LRUCache;
|
|
34
34
|
}));
|
|
35
35
|
//#endregion
|
|
36
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
37
|
-
var require_compare = /* @__PURE__ */
|
|
36
|
+
//#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/compare.js
|
|
37
|
+
var require_compare = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
38
38
|
const SemVer = require_semver$1.require_semver();
|
|
39
39
|
const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
40
40
|
module.exports = compare;
|
|
41
41
|
}));
|
|
42
42
|
//#endregion
|
|
43
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
44
|
-
var require_eq = /* @__PURE__ */
|
|
43
|
+
//#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/eq.js
|
|
44
|
+
var require_eq = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
45
45
|
const compare = require_compare();
|
|
46
46
|
const eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
47
47
|
module.exports = eq;
|
|
48
48
|
}));
|
|
49
49
|
//#endregion
|
|
50
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
51
|
-
var require_neq = /* @__PURE__ */
|
|
50
|
+
//#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/neq.js
|
|
51
|
+
var require_neq = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
52
52
|
const compare = require_compare();
|
|
53
53
|
const neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
54
54
|
module.exports = neq;
|
|
55
55
|
}));
|
|
56
56
|
//#endregion
|
|
57
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
58
|
-
var require_gt = /* @__PURE__ */
|
|
57
|
+
//#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/gt.js
|
|
58
|
+
var require_gt = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
59
59
|
const compare = require_compare();
|
|
60
60
|
const gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
61
61
|
module.exports = gt;
|
|
62
62
|
}));
|
|
63
63
|
//#endregion
|
|
64
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
65
|
-
var require_gte = /* @__PURE__ */
|
|
64
|
+
//#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/gte.js
|
|
65
|
+
var require_gte = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
66
66
|
const compare = require_compare();
|
|
67
67
|
const gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
68
68
|
module.exports = gte;
|
|
69
69
|
}));
|
|
70
70
|
//#endregion
|
|
71
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
72
|
-
var require_lt = /* @__PURE__ */
|
|
71
|
+
//#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/lt.js
|
|
72
|
+
var require_lt = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
73
73
|
const compare = require_compare();
|
|
74
74
|
const lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
75
75
|
module.exports = lt;
|
|
76
76
|
}));
|
|
77
77
|
//#endregion
|
|
78
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
79
|
-
var require_lte = /* @__PURE__ */
|
|
78
|
+
//#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/lte.js
|
|
79
|
+
var require_lte = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
80
80
|
const compare = require_compare();
|
|
81
81
|
const lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
82
82
|
module.exports = lte;
|
|
83
83
|
}));
|
|
84
84
|
//#endregion
|
|
85
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
86
|
-
var require_cmp = /* @__PURE__ */
|
|
85
|
+
//#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/cmp.js
|
|
86
|
+
var require_cmp = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
87
87
|
const eq = require_eq();
|
|
88
88
|
const neq = require_neq();
|
|
89
89
|
const gt = require_gt();
|
|
@@ -114,8 +114,8 @@ var require_cmp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
114
114
|
module.exports = cmp;
|
|
115
115
|
}));
|
|
116
116
|
//#endregion
|
|
117
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
118
|
-
var require_comparator = /* @__PURE__ */
|
|
117
|
+
//#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/classes/comparator.js
|
|
118
|
+
var require_comparator = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
119
119
|
const ANY = Symbol("SemVer ANY");
|
|
120
120
|
module.exports = class Comparator {
|
|
121
121
|
static get ANY() {
|
|
@@ -184,8 +184,8 @@ var require_comparator = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
184
184
|
const Range = require_range();
|
|
185
185
|
}));
|
|
186
186
|
//#endregion
|
|
187
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
188
|
-
var require_range = /* @__PURE__ */
|
|
187
|
+
//#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/classes/range.js
|
|
188
|
+
var require_range = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
189
189
|
const SPACE_CHARACTERS = /\s+/g;
|
|
190
190
|
module.exports = class Range {
|
|
191
191
|
constructor(range, options) {
|
|
@@ -238,6 +238,7 @@ var require_range = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
238
238
|
return this.range;
|
|
239
239
|
}
|
|
240
240
|
parseRange(range) {
|
|
241
|
+
range = range.replace(BUILDSTRIPRE, "");
|
|
241
242
|
const memoKey = ((this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE)) + ":" + range;
|
|
242
243
|
const cached = cache.get(memoKey);
|
|
243
244
|
if (cached) return cached;
|
|
@@ -296,8 +297,9 @@ var require_range = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
296
297
|
const Comparator = require_comparator();
|
|
297
298
|
const debug = require_semver$1.require_debug();
|
|
298
299
|
const SemVer = require_semver$1.require_semver();
|
|
299
|
-
const { safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_semver$1.require_re();
|
|
300
|
+
const { safeRe: re, src, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_semver$1.require_re();
|
|
300
301
|
const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_semver$1.require_constants();
|
|
302
|
+
const BUILDSTRIPRE = new RegExp(src[t.BUILD], "g");
|
|
301
303
|
const isNullSet = (c) => c.value === "<0.0.0-0";
|
|
302
304
|
const isAny = (c) => c.value === "";
|
|
303
305
|
const isSatisfiable = (comparators, options) => {
|
|
@@ -326,6 +328,7 @@ var require_range = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
326
328
|
return comp;
|
|
327
329
|
};
|
|
328
330
|
const isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
|
|
331
|
+
const invalidXRangeOrder = (M, m, p) => isX(M) && !isX(m) || isX(m) && p && !isX(p);
|
|
329
332
|
const replaceTildes = (comp, options) => {
|
|
330
333
|
return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
|
|
331
334
|
};
|
|
@@ -366,8 +369,8 @@ var require_range = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
366
369
|
else ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
|
|
367
370
|
} else {
|
|
368
371
|
debug("no pr");
|
|
369
|
-
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}
|
|
370
|
-
else ret = `>=${M}.${m}.${p}
|
|
372
|
+
if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p} <${M}.${m}.${+p + 1}-0`;
|
|
373
|
+
else ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
|
|
371
374
|
else ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
|
|
372
375
|
}
|
|
373
376
|
debug("caret return", ret);
|
|
@@ -383,6 +386,7 @@ var require_range = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
383
386
|
const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
|
|
384
387
|
return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
|
|
385
388
|
debug("xRange", comp, ret, gtlt, M, m, p, pr);
|
|
389
|
+
if (invalidXRangeOrder(M, m, p)) return comp;
|
|
386
390
|
const xM = isX(M);
|
|
387
391
|
const xm = xM || isX(m);
|
|
388
392
|
const xp = xm || isX(p);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const
|
|
2
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
3
|
-
var require_parse_options = /* @__PURE__ */
|
|
1
|
+
const require_rolldown_runtime = require("./npm_cjs_chunk_rolldown-runtime.cjs");
|
|
2
|
+
//#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/internal/parse-options.js
|
|
3
|
+
var require_parse_options = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
4
4
|
const looseOption = Object.freeze({ loose: true });
|
|
5
5
|
const emptyOpts = Object.freeze({});
|
|
6
6
|
const parseOptions = (options) => {
|
|
@@ -11,8 +11,8 @@ var require_parse_options = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
11
11
|
module.exports = parseOptions;
|
|
12
12
|
}));
|
|
13
13
|
//#endregion
|
|
14
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
15
|
-
var require_constants = /* @__PURE__ */
|
|
14
|
+
//#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/internal/constants.js
|
|
15
|
+
var require_constants = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
16
16
|
const SEMVER_SPEC_VERSION = "2.0.0";
|
|
17
17
|
const MAX_LENGTH = 256;
|
|
18
18
|
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
@@ -36,13 +36,13 @@ var require_constants = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
36
36
|
};
|
|
37
37
|
}));
|
|
38
38
|
//#endregion
|
|
39
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
40
|
-
var require_debug = /* @__PURE__ */
|
|
39
|
+
//#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/internal/debug.js
|
|
40
|
+
var require_debug = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
41
41
|
module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
|
|
42
42
|
}));
|
|
43
43
|
//#endregion
|
|
44
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
45
|
-
var require_re = /* @__PURE__ */
|
|
44
|
+
//#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/internal/re.js
|
|
45
|
+
var require_re = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
46
46
|
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants();
|
|
47
47
|
const debug = require_debug();
|
|
48
48
|
exports = module.exports = {};
|
|
@@ -120,8 +120,8 @@ var require_re = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
120
120
|
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
121
121
|
}));
|
|
122
122
|
//#endregion
|
|
123
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
124
|
-
var require_identifiers = /* @__PURE__ */
|
|
123
|
+
//#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/internal/identifiers.js
|
|
124
|
+
var require_identifiers = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
125
125
|
const numeric = /^[0-9]+$/;
|
|
126
126
|
const compareIdentifiers = (a, b) => {
|
|
127
127
|
if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
|
|
@@ -140,13 +140,19 @@ var require_identifiers = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
140
140
|
};
|
|
141
141
|
}));
|
|
142
142
|
//#endregion
|
|
143
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
144
|
-
var require_semver = /* @__PURE__ */
|
|
143
|
+
//#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/classes/semver.js
|
|
144
|
+
var require_semver = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
145
145
|
const debug = require_debug();
|
|
146
146
|
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
|
|
147
147
|
const { safeRe: re, t } = require_re();
|
|
148
148
|
const parseOptions = require_parse_options();
|
|
149
149
|
const { compareIdentifiers } = require_identifiers();
|
|
150
|
+
const isPrereleaseIdentifier = (prerelease, identifier) => {
|
|
151
|
+
const identifiers = identifier.split(".");
|
|
152
|
+
if (identifiers.length > prerelease.length) return false;
|
|
153
|
+
for (let i = 0; i < identifiers.length; i++) if (compareIdentifiers(prerelease[i], identifiers[i]) !== 0) return false;
|
|
154
|
+
return true;
|
|
155
|
+
};
|
|
150
156
|
module.exports = class SemVer {
|
|
151
157
|
constructor(version, options) {
|
|
152
158
|
options = parseOptions(options);
|
|
@@ -303,8 +309,9 @@ var require_semver = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
303
309
|
if (identifier) {
|
|
304
310
|
let prerelease = [identifier, base];
|
|
305
311
|
if (identifierBase === false) prerelease = [identifier];
|
|
306
|
-
if (
|
|
307
|
-
|
|
312
|
+
if (isPrereleaseIdentifier(this.prerelease, identifier)) {
|
|
313
|
+
const prereleaseBase = this.prerelease[identifier.split(".").length];
|
|
314
|
+
if (isNaN(prereleaseBase)) this.prerelease = prerelease;
|
|
308
315
|
} else this.prerelease = prerelease;
|
|
309
316
|
}
|
|
310
317
|
break;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_rolldown_runtime = require("./npm_cjs_chunk_rolldown-runtime.cjs");
|
|
2
2
|
//#region ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/constants.js
|
|
3
|
-
var require_constants = /* @__PURE__ */
|
|
3
|
+
var require_constants = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
4
4
|
const WIN_SLASH = "\\\\/";
|
|
5
5
|
const WIN_NO_SLASH = `[^${WIN_SLASH}]`;
|
|
6
6
|
const DEFAULT_MAX_EXTGLOB_RECURSION = 0;
|
|
@@ -169,7 +169,7 @@ var require_constants = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
169
169
|
}));
|
|
170
170
|
//#endregion
|
|
171
171
|
//#region ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/utils.js
|
|
172
|
-
var require_utils = /* @__PURE__ */
|
|
172
|
+
var require_utils = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports) => {
|
|
173
173
|
const { REGEX_BACKSLASH, REGEX_REMOVE_BACKSLASH, REGEX_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_GLOBAL } = require_constants();
|
|
174
174
|
exports.isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
|
|
175
175
|
exports.hasRegexChars = (str) => REGEX_SPECIAL_CHARS.test(str);
|
|
@@ -217,7 +217,7 @@ var require_utils = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
217
217
|
}));
|
|
218
218
|
//#endregion
|
|
219
219
|
//#region ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/scan.js
|
|
220
|
-
var require_scan = /* @__PURE__ */
|
|
220
|
+
var require_scan = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
221
221
|
const utils = require_utils();
|
|
222
222
|
const { CHAR_ASTERISK, CHAR_AT, CHAR_BACKWARD_SLASH, CHAR_COMMA, CHAR_DOT, CHAR_EXCLAMATION_MARK, CHAR_FORWARD_SLASH, CHAR_LEFT_CURLY_BRACE, CHAR_LEFT_PARENTHESES, CHAR_LEFT_SQUARE_BRACKET, CHAR_PLUS, CHAR_QUESTION_MARK, CHAR_RIGHT_CURLY_BRACE, CHAR_RIGHT_PARENTHESES, CHAR_RIGHT_SQUARE_BRACKET } = require_constants();
|
|
223
223
|
const isPathSeparator = (code) => {
|
|
@@ -504,7 +504,7 @@ var require_scan = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
504
504
|
}));
|
|
505
505
|
//#endregion
|
|
506
506
|
//#region ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/parse.js
|
|
507
|
-
var require_parse = /* @__PURE__ */
|
|
507
|
+
var require_parse = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
508
508
|
const constants = require_constants();
|
|
509
509
|
const utils = require_utils();
|
|
510
510
|
/**
|
|
@@ -1559,7 +1559,7 @@ var require_parse = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
1559
1559
|
}));
|
|
1560
1560
|
//#endregion
|
|
1561
1561
|
//#region ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/picomatch.js
|
|
1562
|
-
var require_picomatch$1 = /* @__PURE__ */
|
|
1562
|
+
var require_picomatch$1 = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
1563
1563
|
const scan = require_scan();
|
|
1564
1564
|
const parse = require_parse();
|
|
1565
1565
|
const utils = require_utils();
|
|
@@ -1859,7 +1859,7 @@ var require_picomatch$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
1859
1859
|
}));
|
|
1860
1860
|
//#endregion
|
|
1861
1861
|
//#region ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/index.js
|
|
1862
|
-
var require_picomatch = /* @__PURE__ */
|
|
1862
|
+
var require_picomatch = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
1863
1863
|
const pico = require_picomatch$1();
|
|
1864
1864
|
const utils = require_utils();
|
|
1865
1865
|
function picomatch(glob, options, returnState = false) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_rolldown_runtime = require("./npm_cjs_chunk_rolldown-runtime.cjs");
|
|
2
2
|
const require_semver$1 = require("./npm_cjs_chunk_semver.cjs");
|
|
3
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
4
|
-
var require_parse = /* @__PURE__ */
|
|
3
|
+
//#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/parse.js
|
|
4
|
+
var require_parse = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
5
5
|
const SemVer = require_semver$1.require_semver();
|
|
6
6
|
const parse = (version, options, throwErrors = false) => {
|
|
7
7
|
if (version instanceof SemVer) return version;
|
|
@@ -15,8 +15,8 @@ var require_parse = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
15
15
|
module.exports = parse;
|
|
16
16
|
}));
|
|
17
17
|
//#endregion
|
|
18
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
19
|
-
var require_coerce = /* @__PURE__ */
|
|
18
|
+
//#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/coerce.js
|
|
19
|
+
var require_coerce = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
20
20
|
const SemVer = require_semver$1.require_semver();
|
|
21
21
|
const parse = require_parse();
|
|
22
22
|
const { safeRe: re, t } = require_semver$1.require_re();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_rolldown_runtime = require("./npm_cjs_chunk_rolldown-runtime.cjs");
|
|
2
2
|
const require_range$1 = require("./npm_cjs_chunk_range.cjs");
|
|
3
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
4
|
-
var require_satisfies = /* @__PURE__ */
|
|
3
|
+
//#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/satisfies.js
|
|
4
|
+
var require_satisfies = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
5
5
|
const Range = require_range$1.require_range();
|
|
6
6
|
const satisfies = (version, range, options) => {
|
|
7
7
|
try {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_rolldown_runtime = require("./npm_cjs_chunk_rolldown-runtime.cjs");
|
|
2
2
|
const require_range$1 = require("./npm_cjs_chunk_range.cjs");
|
|
3
3
|
const require_semver$1 = require("./npm_cjs_chunk_semver.cjs");
|
|
4
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
5
|
-
var require_min_version = /* @__PURE__ */
|
|
4
|
+
//#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/ranges/min-version.js
|
|
5
|
+
var require_min_version = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
6
6
|
const SemVer = require_semver$1.require_semver();
|
|
7
7
|
const Range = require_range$1.require_range();
|
|
8
8
|
const gt = require_range$1.require_gt();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../../node_modules/.pnpm/tree-kill@1.2.2/node_modules/tree-kill/index.js
|
|
2
|
-
var require_tree_kill = /* @__PURE__ */ require("./
|
|
2
|
+
var require_tree_kill = /* @__PURE__ */ require("./npm_cjs_chunk_rolldown-runtime.cjs").__commonJSMin(((exports, module) => {
|
|
3
3
|
var childProcess = require("child_process");
|
|
4
4
|
var spawn = childProcess.spawn;
|
|
5
5
|
var exec = childProcess.exec;
|
package/dist/tsdown/run.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
2
|
+
import { f as blue, g as hex, i as version, r as enableDebug, t as R, u as globalLogger } from "./main-BMtwTklr.js";
|
|
3
3
|
import module from "node:module";
|
|
4
4
|
import process$1 from "node:process";
|
|
5
5
|
import { VERSION } from "@voidzero-dev/vite-plus-core/rolldown";
|
|
@@ -621,22 +621,22 @@ var CAC = class extends EventTarget {
|
|
|
621
621
|
*/
|
|
622
622
|
const cac = (name = "") => new CAC(name);
|
|
623
623
|
//#endregion
|
|
624
|
-
//#region ../../node_modules/.pnpm/tsdown@0.22.
|
|
624
|
+
//#region ../../node_modules/.pnpm/tsdown@0.22.3_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.3_@tsdown+exe@0.22.3_@type_701dbb346589e2d965113664da5ac600/node_modules/tsdown/dist/run.mjs
|
|
625
625
|
const cli = cac("tsdown");
|
|
626
626
|
cli.help().version(version);
|
|
627
627
|
cli.command("[...files]", "Bundle files", {
|
|
628
628
|
ignoreOptionDefaultValue: true,
|
|
629
629
|
allowUnknownOptions: true
|
|
630
|
-
}).option("-c, --config <filename>", "Use a custom config file").option("--config-loader <loader>", "Config loader to use: auto, native, tsx, unrun", { default: "auto" }).option("--no-config", "Disable config file").option("-f, --format <format>", "Bundle format: esm, cjs, iife, umd", { default: "esm" }).option("--clean", "Clean output directory, --no-clean to disable").option("--deps.never-bundle <module>", "Mark dependencies as external").option("--minify", "Minify output").option("--devtools", "Enable devtools integration").option("--debug [feat]", "Show debug logs").option("--target <target>", "Bundle target, e.g \"es2015\", \"esnext\"").option("-l, --logLevel <level>", "Set log level: info, warn, error, silent").option("--fail-on-warn", "Fail on warnings", { default: true }).option("--no-write", "Disable writing files to disk, incompatible with watch mode").option("-d, --out-dir <dir>", "Output directory", { default: "dist" }).option("--treeshake", "Tree-shake bundle", { default: true }).option("--sourcemap", "Generate source map", { default: false }).option("--shims", "Enable cjs and esm shims ", { default: false }).option("--platform <platform>", "Target platform", { default: "node" }).option("--dts", "Generate dts files").option("--publint", "Enable publint", { default: false }).option("--attw", "Enable Are the types wrong integration", { default: false }).option("--unused", "Enable unused dependencies check", { default: false }).option("-w, --watch [path]", "Watch mode").option("--ignore-watch <path>", "Ignore custom paths in watch mode").option("--from-vite [vitest]", "Reuse config from Vite or Vitest").option("--report", "Size report", { default: true }).option("--env.* <value>", "Define compile-time env variables").option("--env-file <file>", "Load environment variables from a file, when used together with --env, variables in --env take precedence").option("--env-prefix <prefix>", "Prefix for env variables to inject into the bundle", { default: "TSDOWN_" }).option("--on-success <command>", "Command to run on success").option("--copy <dir>", "Copy files to output dir").option("--public-dir <dir>", "Alias for --copy, deprecated").option("--tsconfig <tsconfig>", "Set tsconfig path").option("--unbundle", "Unbundle mode").option("--root <dir>", "Root directory of input files").option("--exe", "Bundle as executable").option("-W, --workspace [dir]", "Enable workspace mode").option("-F, --filter <pattern>", "Filter configs (cwd or name), e.g. /pkg-name$/ or pkg-name").option("--exports", "Generate
|
|
630
|
+
}).option("-c, --config <filename>", "Use a custom config file").option("--config-loader <loader>", "Config loader to use: auto, native, tsx, unrun", { default: "auto" }).option("--no-config", "Disable config file").option("-f, --format <format>", "Bundle format: esm, cjs, iife, umd", { default: "esm" }).option("--clean", "Clean output directory, --no-clean to disable").option("--deps.never-bundle <module>", "Mark dependencies as external").option("--minify", "Minify output").option("--devtools", "Enable devtools integration").option("--debug [feat]", "Show debug logs").option("--target <target>", "Bundle target, e.g \"es2015\", \"esnext\"").option("-l, --logLevel <level>", "Set log level: info, warn, error, silent").option("--fail-on-warn", "Fail on warnings", { default: true }).option("--no-write", "Disable writing files to disk, incompatible with watch mode").option("-d, --out-dir <dir>", "Output directory", { default: "dist" }).option("--treeshake", "Tree-shake bundle", { default: true }).option("--sourcemap", "Generate source map", { default: false }).option("--shims", "Enable cjs and esm shims ", { default: false }).option("--platform <platform>", "Target platform", { default: "node" }).option("--dts", "Generate dts files").option("--publint", "Enable publint", { default: false }).option("--attw", "Enable Are the types wrong integration", { default: false }).option("--unused", "Enable unused dependencies check", { default: false }).option("-w, --watch [path]", "Watch mode").option("--ignore-watch <path>", "Ignore custom paths in watch mode").option("--from-vite [vitest]", "Reuse config from Vite or Vitest").option("--report", "Size report", { default: true }).option("--env.* <value>", "Define compile-time env variables").option("--env-file <file>", "Load environment variables from a file, when used together with --env, variables in --env take precedence").option("--env-prefix <prefix>", "Prefix for env variables to inject into the bundle", { default: "TSDOWN_" }).option("--on-success <command>", "Command to run on success").option("--copy <dir>", "Copy files to output dir").option("--public-dir <dir>", "Alias for --copy, deprecated").option("--tsconfig <tsconfig>", "Set tsconfig path").option("--unbundle", "Unbundle mode").option("--root <dir>", "Root directory of input files").option("--exe", "Bundle as executable").option("-W, --workspace [dir]", "Enable workspace mode").option("-F, --filter <pattern>", "Filter configs (cwd or name), e.g. /pkg-name$/ or pkg-name").option("--exports", "Generate package exports for package.json").action(async (input, flags) => {
|
|
631
631
|
globalLogger.level = flags.logLevel || "info";
|
|
632
632
|
globalLogger.info(`${blue`tsdown v${version}`} powered by ${hex("#ff7e17")`rolldown v${VERSION}`}`);
|
|
633
|
-
const { build } = await import("./build-
|
|
633
|
+
const { build } = await import("./build-B_nvJe4A-hrVGPLD6.js").then((n) => n.r).then((n) => n.r);
|
|
634
634
|
if (input.length > 0) flags.entry = input;
|
|
635
635
|
await build(flags);
|
|
636
636
|
});
|
|
637
637
|
cli.command("create", "[deprecated] Create a tsdown project. Use \"npx create-tsdown\" instead.", { allowUnknownOptions: true }).action(async () => {
|
|
638
638
|
globalLogger.warn(`"tsdown create" is deprecated. Please use "npx create-tsdown" instead.`);
|
|
639
|
-
const { exitCode } = await
|
|
639
|
+
const { exitCode } = await R("npx", [
|
|
640
640
|
"-y",
|
|
641
641
|
"create-tsdown@latest",
|
|
642
642
|
...process$1.argv.slice(3)
|
|
@@ -645,7 +645,7 @@ cli.command("create", "[deprecated] Create a tsdown project. Use \"npx create-ts
|
|
|
645
645
|
});
|
|
646
646
|
cli.command("migrate", "[deprecated] Migrate from tsup to tsdown. Use \"npx tsdown-migrate\" instead.", { allowUnknownOptions: true }).action(async () => {
|
|
647
647
|
globalLogger.warn(`"tsdown migrate" is deprecated. Please use "npx tsdown-migrate" instead.`);
|
|
648
|
-
const { exitCode } = await
|
|
648
|
+
const { exitCode } = await R("npx", [
|
|
649
649
|
"-y",
|
|
650
650
|
"tsdown-migrate@latest",
|
|
651
651
|
...process$1.argv.slice(3)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as createDebug } from "./main-BMtwTklr.js";
|
|
2
2
|
import path from "node:path";
|
|
3
|
-
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.
|
|
3
|
+
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.26.0_@typescript+native-preview@7.0.0-dev.20260605.1_oxc-resolver_6f03fea6114f4c67cf5f12416b2625b7/node_modules/rolldown-plugin-dts/dist/tsc-context.mjs
|
|
4
4
|
const debug = createDebug("rolldown-plugin-dts:tsc-context");
|
|
5
5
|
function createContext() {
|
|
6
6
|
return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { l as RE_DTS, u as RE_DTS_MAP } from "./build-
|
|
3
|
-
import { n as globalContext } from "./tsc-context-
|
|
1
|
+
import { a as createDebug } from "./main-BMtwTklr.js";
|
|
2
|
+
import { l as RE_DTS, u as RE_DTS_MAP } from "./build-B_nvJe4A-hrVGPLD6.js";
|
|
3
|
+
import { n as globalContext } from "./tsc-context-DfwSQt2q.js";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { pathToFileURL } from "node:url";
|
|
@@ -8,7 +8,7 @@ let nanoid = (size = 21) => {
|
|
|
8
8
|
return id;
|
|
9
9
|
};
|
|
10
10
|
//#endregion
|
|
11
|
-
//#region \0@oxc-project+runtime@0.
|
|
11
|
+
//#region \0@oxc-project+runtime@0.135.0/helpers/esm/typeof.js
|
|
12
12
|
function _typeof(o) {
|
|
13
13
|
"@babel/helpers - typeof";
|
|
14
14
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -18,7 +18,7 @@ function _typeof(o) {
|
|
|
18
18
|
}, _typeof(o);
|
|
19
19
|
}
|
|
20
20
|
//#endregion
|
|
21
|
-
//#region \0@oxc-project+runtime@0.
|
|
21
|
+
//#region \0@oxc-project+runtime@0.135.0/helpers/esm/toPrimitive.js
|
|
22
22
|
function toPrimitive(t, r) {
|
|
23
23
|
if ("object" != _typeof(t) || !t) return t;
|
|
24
24
|
var e = t[Symbol.toPrimitive];
|
|
@@ -30,13 +30,13 @@ function toPrimitive(t, r) {
|
|
|
30
30
|
return ("string" === r ? String : Number)(t);
|
|
31
31
|
}
|
|
32
32
|
//#endregion
|
|
33
|
-
//#region \0@oxc-project+runtime@0.
|
|
33
|
+
//#region \0@oxc-project+runtime@0.135.0/helpers/esm/toPropertyKey.js
|
|
34
34
|
function toPropertyKey(t) {
|
|
35
35
|
var i = toPrimitive(t, "string");
|
|
36
36
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
37
37
|
}
|
|
38
38
|
//#endregion
|
|
39
|
-
//#region \0@oxc-project+runtime@0.
|
|
39
|
+
//#region \0@oxc-project+runtime@0.135.0/helpers/esm/defineProperty.js
|
|
40
40
|
function _defineProperty(e, r, t) {
|
|
41
41
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
42
42
|
value: t,
|
|
@@ -3384,7 +3384,7 @@ var require_resolve_block_map = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3384
3384
|
var utilMapIncludes = require_util_map_includes();
|
|
3385
3385
|
const startColMsg = "All mapping items must start at the same column";
|
|
3386
3386
|
function resolveBlockMap({ composeNode, composeEmptyNode }, ctx, bm, onError, tag) {
|
|
3387
|
-
const map = new (tag?.nodeClass ?? YAMLMap.YAMLMap)(ctx.schema);
|
|
3387
|
+
const map = new ((tag?.nodeClass) ?? YAMLMap.YAMLMap)(ctx.schema);
|
|
3388
3388
|
if (ctx.atRoot) ctx.atRoot = false;
|
|
3389
3389
|
let offset = bm.offset;
|
|
3390
3390
|
let commentEnd = null;
|
|
@@ -3464,7 +3464,7 @@ var require_resolve_block_seq = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3464
3464
|
var resolveProps = require_resolve_props();
|
|
3465
3465
|
var utilFlowIndentCheck = require_util_flow_indent_check();
|
|
3466
3466
|
function resolveBlockSeq({ composeNode, composeEmptyNode }, ctx, bs, onError, tag) {
|
|
3467
|
-
const seq = new (tag?.nodeClass ?? YAMLSeq.YAMLSeq)(ctx.schema);
|
|
3467
|
+
const seq = new ((tag?.nodeClass) ?? YAMLSeq.YAMLSeq)(ctx.schema);
|
|
3468
3468
|
if (ctx.atRoot) ctx.atRoot = false;
|
|
3469
3469
|
if (ctx.atKey) ctx.atKey = false;
|
|
3470
3470
|
let offset = bs.offset;
|
|
@@ -3553,7 +3553,7 @@ var require_resolve_flow_collection = /* @__PURE__ */ __commonJSMin(((exports) =
|
|
|
3553
3553
|
function resolveFlowCollection({ composeNode, composeEmptyNode }, ctx, fc, onError, tag) {
|
|
3554
3554
|
const isMap = fc.start.source === "{";
|
|
3555
3555
|
const fcName = isMap ? "flow map" : "flow sequence";
|
|
3556
|
-
const coll = new (tag?.nodeClass ?? (isMap ? YAMLMap.YAMLMap : YAMLSeq.YAMLSeq))(ctx.schema);
|
|
3556
|
+
const coll = new ((tag?.nodeClass) ?? (isMap ? YAMLMap.YAMLMap : YAMLSeq.YAMLSeq))(ctx.schema);
|
|
3557
3557
|
coll.flow = true;
|
|
3558
3558
|
const atRoot = ctx.atRoot;
|
|
3559
3559
|
if (atRoot) ctx.atRoot = false;
|
|
@@ -105,7 +105,7 @@ var require_picocolors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
105
105
|
}));
|
|
106
106
|
//#endregion
|
|
107
107
|
//#region ../../vite/packages/vite/package.json
|
|
108
|
-
var version = "8.0.
|
|
108
|
+
var version = "8.0.16";
|
|
109
109
|
//#endregion
|
|
110
110
|
//#region ../../vite/packages/vite/src/node/constants.ts
|
|
111
111
|
const ROLLUP_HOOKS = [
|