@voidzero-dev/vite-plus-core 0.1.2 → 0.1.3
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/rolldown/cli.mjs +11 -22
- package/dist/rolldown/config.d.mts +1 -1
- package/dist/rolldown/config.mjs +10 -11
- package/dist/rolldown/experimental-index.d.mts +20 -6
- package/dist/rolldown/experimental-index.mjs +24 -22
- package/dist/rolldown/filter-index.d.mts +1 -1
- package/dist/rolldown/filter-index.mjs +2 -8
- package/dist/rolldown/get-log-filter.mjs +1 -2
- package/dist/rolldown/index.d.mts +3 -3
- package/dist/rolldown/index.mjs +10 -13
- package/dist/rolldown/parallel-plugin-worker.mjs +7 -9
- package/dist/rolldown/parallel-plugin.d.mts +1 -1
- package/dist/rolldown/parallel-plugin.mjs +1 -2
- package/dist/rolldown/parse-ast-index.d.mts +1 -1
- package/dist/rolldown/parse-ast-index.mjs +4 -6
- package/dist/rolldown/plugins-index.d.mts +3 -3
- package/dist/rolldown/plugins-index.mjs +4 -6
- package/dist/rolldown/shared/{binding-C4ZlFAt6.d.mts → binding-BohGL_65.d.mts} +10 -5
- package/dist/rolldown/shared/{binding-Bd04_f8P.mjs → binding-COZdHtee.mjs} +7 -16
- package/dist/rolldown/shared/{bindingify-input-options-ffqkmT9z.mjs → bindingify-input-options-DdW_FOGG.mjs} +33 -56
- package/dist/rolldown/shared/{constructors-C5a55nbY.mjs → constructors-CQlws1EK.mjs} +2 -4
- package/dist/rolldown/shared/{constructors-cPsD1J5w.d.mts → constructors-ColrbLxz.d.mts} +2 -2
- package/dist/rolldown/shared/{define-config-DX_4SBzo.d.mts → define-config-BqZZMLjO.d.mts} +66 -30
- package/dist/rolldown/shared/{define-config-BMj_QknW.mjs → define-config-DJOr6Iwt.mjs} +1 -2
- package/dist/rolldown/shared/{error-BYPsvVEN.mjs → error-FTNambir.mjs} +3 -8
- package/dist/rolldown/shared/{load-config-Oj1-3DPg.mjs → load-config-DBRCgd9m.mjs} +2 -4
- package/dist/rolldown/shared/{logs-CCc_0vhs.mjs → logs-D80CXhvg.mjs} +5 -8
- package/dist/rolldown/shared/{misc-Xty885dB.mjs → misc-DJYbNKZX.mjs} +1 -2
- package/dist/rolldown/shared/{normalize-string-or-regex-DoNa0azR.mjs → normalize-string-or-regex-CJTjKt5t.mjs} +3 -6
- package/dist/rolldown/shared/{parse-Wj8OTS4w.mjs → parse-q7gzDQmi.mjs} +2 -5
- package/dist/rolldown/shared/{prompt-CmNr0AI-.mjs → prompt-DZIXsnf9.mjs} +1 -3
- package/dist/rolldown/shared/{rolldown-y9H0nYAD.mjs → rolldown-BJMdRJb1.mjs} +2 -4
- package/dist/rolldown/shared/{rolldown-build-DkOWV5Vu.mjs → rolldown-build-DKv2K096.mjs} +424 -473
- package/dist/rolldown/shared/{transform-DoG7c5_r.d.mts → transform-BoJxrM-e.d.mts} +1 -1
- package/dist/rolldown/shared/{transform-D55YcCvB.mjs → transform-CQppMqL8.mjs} +3 -6
- package/dist/rolldown/shared/{watch-CVufTfok.mjs → watch-BeMWbIuq.mjs} +71 -77
- package/dist/rolldown/utils-index.d.mts +2 -2
- package/dist/rolldown/utils-index.mjs +9 -18
- package/dist/tsdown/{build-TmLngPCw-I7MHSf0I.js → build-TmLngPCw-CBoVPzkZ.js} +57 -150
- package/dist/tsdown/build-gOkJM1H9-D9ngUBpk.js +5 -0
- package/dist/tsdown/{chunk-CdeBBKNj.js → chunk-CSNpwdVU.js} +13 -23
- package/dist/tsdown/{debug-tOJ_PtrM-DITcI9An.js → debug-tOJ_PtrM-C-Do1Twv.js} +4 -6
- package/dist/tsdown/{detect-DK-FDZQ9-CALXiuJa.js → detect-DK-FDZQ9-CHuRhyUG.js} +2 -4
- package/dist/tsdown/{dist-DVPyDO-_.js → dist-Ba2DZx1w.js} +3 -6
- package/dist/tsdown/{dist-uzMTIu3J.js → dist-DCol2bGA.js} +24 -56
- package/dist/tsdown/{dist-kuoe97DJ.js → dist-_l70jCqI.js} +1 -2
- package/dist/tsdown/{filename-C2azOotK.js → filename-BDcjeHGl.js} +1 -3
- package/dist/tsdown/{index-node-Djp92Gzb-fgHTblzo.js → index-node-Djp92Gzb-B-AUHI4t.js} +2 -4
- package/dist/tsdown/index-types.d.ts +8 -7
- package/dist/tsdown/index.js +7 -9
- package/dist/tsdown/{main-BWoReXjl.js → main-DYgM-9Cb.js} +7 -22
- package/dist/tsdown/{node-Ba_UB_xO.js → node-B3Gdtau1.js} +1 -4
- package/dist/tsdown/npm_cjs_chunk_chunk.cjs +6 -8
- package/dist/tsdown/npm_cjs_chunk_lt.cjs +13 -16
- package/dist/tsdown/npm_cjs_chunk_range.cjs +16 -28
- package/dist/tsdown/npm_cjs_chunk_semver.cjs +40 -52
- package/dist/tsdown/npm_entry_picomatch.cjs +18 -30
- package/dist/tsdown/npm_entry_semver_functions_coerce.cjs +3 -7
- package/dist/tsdown/npm_entry_semver_functions_lt.cjs +3 -5
- package/dist/tsdown/npm_entry_semver_functions_satisfies.cjs +5 -8
- package/dist/tsdown/npm_entry_semver_ranges_min-version.cjs +5 -8
- package/dist/tsdown/npm_entry_tree-kill.cjs +2 -6
- package/dist/tsdown/{resolver-CdD-yT15-OWjlgV0D.js → resolver-CdD-yT15-3eaymYLw.js} +2 -4
- package/dist/tsdown/run.js +6 -12
- package/dist/tsdown/{tsc-D6YfZJBZ.js → tsc-CberiTDq.js} +4 -6
- package/dist/tsdown/{tsc-context-CGmk4Cps.js → tsc-context-DiIjfXAG.js} +2 -4
- package/dist/vite/client/client.mjs +4 -19
- package/dist/vite/client/env.mjs +1 -2
- package/dist/vite/node/chunks/build.js +2 -3
- package/dist/vite/node/chunks/build2.js +91 -243
- package/dist/vite/node/chunks/chunk.js +7 -13
- package/dist/vite/node/chunks/config.js +2 -3
- package/dist/vite/node/chunks/dist.js +27 -61
- package/dist/vite/node/chunks/dist2.js +11 -95
- package/dist/vite/node/chunks/lib.js +1 -7
- package/dist/vite/node/chunks/logger.js +3 -8
- package/dist/vite/node/chunks/node.js +137 -428
- package/dist/vite/node/chunks/optimizer.js +2 -3
- package/dist/vite/node/chunks/postcss-import.js +1 -13
- package/dist/vite/node/chunks/preview.js +2 -3
- package/dist/vite/node/chunks/server.js +2 -3
- package/dist/vite/node/cli.js +1 -4
- package/dist/vite/node/index.d.ts +2 -2
- package/dist/vite/node/index.js +1 -2
- package/dist/vite/node/internal.js +1 -2
- package/dist/vite/node/module-runner.js +44 -3
- package/package.json +5 -5
- package/dist/rolldown/cli-setup.d.mts +0 -1
- package/dist/rolldown/cli-setup.mjs +0 -17
- package/dist/tsdown/build-gOkJM1H9-BRI3DQle.js +0 -6
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
const require_chunk = require(
|
|
2
|
-
const require_semver$1 = require(
|
|
3
|
-
const require_lt$1 = require(
|
|
4
|
-
|
|
1
|
+
const require_chunk = require("./npm_cjs_chunk_chunk.cjs");
|
|
2
|
+
const require_semver$1 = require("./npm_cjs_chunk_semver.cjs");
|
|
3
|
+
const require_lt$1 = require("./npm_cjs_chunk_lt.cjs");
|
|
5
4
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/lrucache.js
|
|
6
5
|
var require_lrucache = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
7
6
|
var LRUCache = class {
|
|
@@ -34,7 +33,6 @@ var require_lrucache = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
34
33
|
};
|
|
35
34
|
module.exports = LRUCache;
|
|
36
35
|
}));
|
|
37
|
-
|
|
38
36
|
//#endregion
|
|
39
37
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/eq.js
|
|
40
38
|
var require_eq = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
@@ -42,7 +40,6 @@ var require_eq = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
42
40
|
const eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
43
41
|
module.exports = eq;
|
|
44
42
|
}));
|
|
45
|
-
|
|
46
43
|
//#endregion
|
|
47
44
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/neq.js
|
|
48
45
|
var require_neq = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
@@ -50,7 +47,6 @@ var require_neq = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
50
47
|
const neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
51
48
|
module.exports = neq;
|
|
52
49
|
}));
|
|
53
|
-
|
|
54
50
|
//#endregion
|
|
55
51
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/gt.js
|
|
56
52
|
var require_gt = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
@@ -58,7 +54,6 @@ var require_gt = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
58
54
|
const gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
59
55
|
module.exports = gt;
|
|
60
56
|
}));
|
|
61
|
-
|
|
62
57
|
//#endregion
|
|
63
58
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/gte.js
|
|
64
59
|
var require_gte = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
@@ -66,7 +61,6 @@ var require_gte = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
66
61
|
const gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
67
62
|
module.exports = gte;
|
|
68
63
|
}));
|
|
69
|
-
|
|
70
64
|
//#endregion
|
|
71
65
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/lte.js
|
|
72
66
|
var require_lte = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
@@ -74,7 +68,6 @@ var require_lte = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
74
68
|
const lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
75
69
|
module.exports = lte;
|
|
76
70
|
}));
|
|
77
|
-
|
|
78
71
|
//#endregion
|
|
79
72
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/cmp.js
|
|
80
73
|
var require_cmp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
@@ -107,12 +100,11 @@ var require_cmp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
107
100
|
};
|
|
108
101
|
module.exports = cmp;
|
|
109
102
|
}));
|
|
110
|
-
|
|
111
103
|
//#endregion
|
|
112
104
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/comparator.js
|
|
113
105
|
var require_comparator = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
114
106
|
const ANY = Symbol("SemVer ANY");
|
|
115
|
-
|
|
107
|
+
module.exports = class Comparator {
|
|
116
108
|
static get ANY() {
|
|
117
109
|
return ANY;
|
|
118
110
|
}
|
|
@@ -171,7 +163,6 @@ var require_comparator = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
171
163
|
return false;
|
|
172
164
|
}
|
|
173
165
|
};
|
|
174
|
-
module.exports = Comparator;
|
|
175
166
|
const parseOptions = require_semver$1.require_parse_options();
|
|
176
167
|
const { safeRe: re, t } = require_semver$1.require_re();
|
|
177
168
|
const cmp = require_cmp();
|
|
@@ -179,12 +170,11 @@ var require_comparator = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
179
170
|
const SemVer = require_semver$1.require_semver();
|
|
180
171
|
const Range = require_range();
|
|
181
172
|
}));
|
|
182
|
-
|
|
183
173
|
//#endregion
|
|
184
174
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/range.js
|
|
185
175
|
var require_range = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
186
176
|
const SPACE_CHARACTERS = /\s+/g;
|
|
187
|
-
|
|
177
|
+
module.exports = class Range {
|
|
188
178
|
constructor(range, options) {
|
|
189
179
|
options = parseOptions(options);
|
|
190
180
|
if (range instanceof Range) if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) return range;
|
|
@@ -288,7 +278,6 @@ var require_range = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
288
278
|
return false;
|
|
289
279
|
}
|
|
290
280
|
};
|
|
291
|
-
module.exports = Range;
|
|
292
281
|
const cache = new (require_lrucache())();
|
|
293
282
|
const parseOptions = require_semver$1.require_parse_options();
|
|
294
283
|
const Comparator = require_comparator();
|
|
@@ -453,17 +442,16 @@ var require_range = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
453
442
|
return true;
|
|
454
443
|
};
|
|
455
444
|
}));
|
|
456
|
-
|
|
457
445
|
//#endregion
|
|
458
|
-
Object.defineProperty(exports,
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
446
|
+
Object.defineProperty(exports, "require_gt", {
|
|
447
|
+
enumerable: true,
|
|
448
|
+
get: function() {
|
|
449
|
+
return require_gt;
|
|
450
|
+
}
|
|
451
|
+
});
|
|
452
|
+
Object.defineProperty(exports, "require_range", {
|
|
453
|
+
enumerable: true,
|
|
454
|
+
get: function() {
|
|
455
|
+
return require_range;
|
|
456
|
+
}
|
|
463
457
|
});
|
|
464
|
-
Object.defineProperty(exports, 'require_range', {
|
|
465
|
-
enumerable: true,
|
|
466
|
-
get: function () {
|
|
467
|
-
return require_range;
|
|
468
|
-
}
|
|
469
|
-
});
|
|
@@ -1,40 +1,33 @@
|
|
|
1
|
-
const require_chunk = require(
|
|
2
|
-
|
|
1
|
+
const require_chunk = require("./npm_cjs_chunk_chunk.cjs");
|
|
3
2
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/debug.js
|
|
4
3
|
var require_debug = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
5
|
-
|
|
6
|
-
module.exports = debug;
|
|
4
|
+
module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
|
|
7
5
|
}));
|
|
8
|
-
|
|
9
6
|
//#endregion
|
|
10
7
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/constants.js
|
|
11
8
|
var require_constants = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
12
9
|
const SEMVER_SPEC_VERSION = "2.0.0";
|
|
13
10
|
const MAX_LENGTH = 256;
|
|
14
11
|
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
15
|
-
const MAX_SAFE_COMPONENT_LENGTH = 16;
|
|
16
|
-
const MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6;
|
|
17
|
-
const RELEASE_TYPES = [
|
|
18
|
-
"major",
|
|
19
|
-
"premajor",
|
|
20
|
-
"minor",
|
|
21
|
-
"preminor",
|
|
22
|
-
"patch",
|
|
23
|
-
"prepatch",
|
|
24
|
-
"prerelease"
|
|
25
|
-
];
|
|
26
12
|
module.exports = {
|
|
27
13
|
MAX_LENGTH,
|
|
28
|
-
MAX_SAFE_COMPONENT_LENGTH,
|
|
29
|
-
MAX_SAFE_BUILD_LENGTH,
|
|
14
|
+
MAX_SAFE_COMPONENT_LENGTH: 16,
|
|
15
|
+
MAX_SAFE_BUILD_LENGTH: MAX_LENGTH - 6,
|
|
30
16
|
MAX_SAFE_INTEGER,
|
|
31
|
-
RELEASE_TYPES
|
|
17
|
+
RELEASE_TYPES: [
|
|
18
|
+
"major",
|
|
19
|
+
"premajor",
|
|
20
|
+
"minor",
|
|
21
|
+
"preminor",
|
|
22
|
+
"patch",
|
|
23
|
+
"prepatch",
|
|
24
|
+
"prerelease"
|
|
25
|
+
],
|
|
32
26
|
SEMVER_SPEC_VERSION,
|
|
33
27
|
FLAG_INCLUDE_PRERELEASE: 1,
|
|
34
28
|
FLAG_LOOSE: 2
|
|
35
29
|
};
|
|
36
30
|
}));
|
|
37
|
-
|
|
38
31
|
//#endregion
|
|
39
32
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/re.js
|
|
40
33
|
var require_re = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
@@ -114,7 +107,6 @@ var require_re = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
114
107
|
createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
|
|
115
108
|
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
116
109
|
}));
|
|
117
|
-
|
|
118
110
|
//#endregion
|
|
119
111
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/parse-options.js
|
|
120
112
|
var require_parse_options = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
@@ -127,7 +119,6 @@ var require_parse_options = /* @__PURE__ */ require_chunk.__commonJSMin(((export
|
|
|
127
119
|
};
|
|
128
120
|
module.exports = parseOptions;
|
|
129
121
|
}));
|
|
130
|
-
|
|
131
122
|
//#endregion
|
|
132
123
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/identifiers.js
|
|
133
124
|
var require_identifiers = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
@@ -148,7 +139,6 @@ var require_identifiers = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
148
139
|
rcompareIdentifiers
|
|
149
140
|
};
|
|
150
141
|
}));
|
|
151
|
-
|
|
152
142
|
//#endregion
|
|
153
143
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/semver.js
|
|
154
144
|
var require_semver = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
@@ -157,7 +147,7 @@ var require_semver = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
157
147
|
const { safeRe: re, t } = require_re();
|
|
158
148
|
const parseOptions = require_parse_options();
|
|
159
149
|
const { compareIdentifiers } = require_identifiers();
|
|
160
|
-
|
|
150
|
+
module.exports = class SemVer {
|
|
161
151
|
constructor(version, options) {
|
|
162
152
|
options = parseOptions(options);
|
|
163
153
|
if (version instanceof SemVer) if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) return version;
|
|
@@ -326,37 +316,35 @@ var require_semver = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
326
316
|
return this;
|
|
327
317
|
}
|
|
328
318
|
};
|
|
329
|
-
module.exports = SemVer;
|
|
330
319
|
}));
|
|
331
|
-
|
|
332
320
|
//#endregion
|
|
333
|
-
Object.defineProperty(exports,
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
321
|
+
Object.defineProperty(exports, "require_constants", {
|
|
322
|
+
enumerable: true,
|
|
323
|
+
get: function() {
|
|
324
|
+
return require_constants;
|
|
325
|
+
}
|
|
326
|
+
});
|
|
327
|
+
Object.defineProperty(exports, "require_debug", {
|
|
328
|
+
enumerable: true,
|
|
329
|
+
get: function() {
|
|
330
|
+
return require_debug;
|
|
331
|
+
}
|
|
338
332
|
});
|
|
339
|
-
Object.defineProperty(exports,
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
333
|
+
Object.defineProperty(exports, "require_parse_options", {
|
|
334
|
+
enumerable: true,
|
|
335
|
+
get: function() {
|
|
336
|
+
return require_parse_options;
|
|
337
|
+
}
|
|
344
338
|
});
|
|
345
|
-
Object.defineProperty(exports,
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
339
|
+
Object.defineProperty(exports, "require_re", {
|
|
340
|
+
enumerable: true,
|
|
341
|
+
get: function() {
|
|
342
|
+
return require_re;
|
|
343
|
+
}
|
|
350
344
|
});
|
|
351
|
-
Object.defineProperty(exports,
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
345
|
+
Object.defineProperty(exports, "require_semver", {
|
|
346
|
+
enumerable: true,
|
|
347
|
+
get: function() {
|
|
348
|
+
return require_semver;
|
|
349
|
+
}
|
|
356
350
|
});
|
|
357
|
-
Object.defineProperty(exports, 'require_semver', {
|
|
358
|
-
enumerable: true,
|
|
359
|
-
get: function () {
|
|
360
|
-
return require_semver;
|
|
361
|
-
}
|
|
362
|
-
});
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
const require_chunk = require(
|
|
2
|
-
|
|
1
|
+
const require_chunk = require("./npm_cjs_chunk_chunk.cjs");
|
|
3
2
|
//#region ../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/constants.js
|
|
4
3
|
var require_constants = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
5
4
|
const WIN_SLASH = "\\\\/";
|
|
@@ -52,28 +51,24 @@ var require_constants = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
52
51
|
END_ANCHOR: `(?:[${WIN_SLASH}]|$)`,
|
|
53
52
|
SEP: "\\"
|
|
54
53
|
};
|
|
55
|
-
/**
|
|
56
|
-
* POSIX Bracket Regex
|
|
57
|
-
*/
|
|
58
|
-
const POSIX_REGEX_SOURCE = {
|
|
59
|
-
alnum: "a-zA-Z0-9",
|
|
60
|
-
alpha: "a-zA-Z",
|
|
61
|
-
ascii: "\\x00-\\x7F",
|
|
62
|
-
blank: " \\t",
|
|
63
|
-
cntrl: "\\x00-\\x1F\\x7F",
|
|
64
|
-
digit: "0-9",
|
|
65
|
-
graph: "\\x21-\\x7E",
|
|
66
|
-
lower: "a-z",
|
|
67
|
-
print: "\\x20-\\x7E ",
|
|
68
|
-
punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",
|
|
69
|
-
space: " \\t\\r\\n\\v\\f",
|
|
70
|
-
upper: "A-Z",
|
|
71
|
-
word: "A-Za-z0-9_",
|
|
72
|
-
xdigit: "A-Fa-f0-9"
|
|
73
|
-
};
|
|
74
54
|
module.exports = {
|
|
75
55
|
MAX_LENGTH: 1024 * 64,
|
|
76
|
-
POSIX_REGEX_SOURCE
|
|
56
|
+
POSIX_REGEX_SOURCE: {
|
|
57
|
+
alnum: "a-zA-Z0-9",
|
|
58
|
+
alpha: "a-zA-Z",
|
|
59
|
+
ascii: "\\x00-\\x7F",
|
|
60
|
+
blank: " \\t",
|
|
61
|
+
cntrl: "\\x00-\\x1F\\x7F",
|
|
62
|
+
digit: "0-9",
|
|
63
|
+
graph: "\\x21-\\x7E",
|
|
64
|
+
lower: "a-z",
|
|
65
|
+
print: "\\x20-\\x7E ",
|
|
66
|
+
punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",
|
|
67
|
+
space: " \\t\\r\\n\\v\\f",
|
|
68
|
+
upper: "A-Z",
|
|
69
|
+
word: "A-Za-z0-9_",
|
|
70
|
+
xdigit: "A-Fa-f0-9"
|
|
71
|
+
},
|
|
77
72
|
REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g,
|
|
78
73
|
REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/,
|
|
79
74
|
REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/,
|
|
@@ -163,7 +158,6 @@ var require_constants = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
163
158
|
}
|
|
164
159
|
};
|
|
165
160
|
}));
|
|
166
|
-
|
|
167
161
|
//#endregion
|
|
168
162
|
//#region ../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/utils.js
|
|
169
163
|
var require_utils = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
@@ -212,7 +206,6 @@ var require_utils = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
212
206
|
return last;
|
|
213
207
|
};
|
|
214
208
|
}));
|
|
215
|
-
|
|
216
209
|
//#endregion
|
|
217
210
|
//#region ../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/scan.js
|
|
218
211
|
var require_scan = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
@@ -500,7 +493,6 @@ var require_scan = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
500
493
|
};
|
|
501
494
|
module.exports = scan;
|
|
502
495
|
}));
|
|
503
|
-
|
|
504
496
|
//#endregion
|
|
505
497
|
//#region ../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/parse.js
|
|
506
498
|
var require_parse = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
@@ -1359,7 +1351,6 @@ var require_parse = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
1359
1351
|
};
|
|
1360
1352
|
module.exports = parse;
|
|
1361
1353
|
}));
|
|
1362
|
-
|
|
1363
1354
|
//#endregion
|
|
1364
1355
|
//#region ../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/picomatch.js
|
|
1365
1356
|
var require_picomatch$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
@@ -1652,7 +1643,6 @@ var require_picomatch$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
1652
1643
|
*/
|
|
1653
1644
|
module.exports = picomatch;
|
|
1654
1645
|
}));
|
|
1655
|
-
|
|
1656
1646
|
//#endregion
|
|
1657
1647
|
//#region ../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/index.js
|
|
1658
1648
|
var require_picomatch = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
@@ -1668,9 +1658,7 @@ var require_picomatch = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
1668
1658
|
Object.assign(picomatch, pico);
|
|
1669
1659
|
module.exports = picomatch;
|
|
1670
1660
|
}));
|
|
1671
|
-
|
|
1672
1661
|
//#endregion
|
|
1673
1662
|
//#region dist/tsdown/_npm_entry_picomatch.cjs
|
|
1674
1663
|
module.exports = require_picomatch();
|
|
1675
|
-
|
|
1676
|
-
//#endregion
|
|
1664
|
+
//#endregion
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
const require_chunk = require(
|
|
2
|
-
const require_semver$1 = require(
|
|
3
|
-
|
|
1
|
+
const require_chunk = require("./npm_cjs_chunk_chunk.cjs");
|
|
2
|
+
const require_semver$1 = require("./npm_cjs_chunk_semver.cjs");
|
|
4
3
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/parse.js
|
|
5
4
|
var require_parse = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
6
5
|
const SemVer = require_semver$1.require_semver();
|
|
@@ -15,7 +14,6 @@ var require_parse = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
15
14
|
};
|
|
16
15
|
module.exports = parse;
|
|
17
16
|
}));
|
|
18
|
-
|
|
19
17
|
//#endregion
|
|
20
18
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/coerce.js
|
|
21
19
|
var require_coerce = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
@@ -44,9 +42,7 @@ var require_coerce = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
|
|
|
44
42
|
};
|
|
45
43
|
module.exports = coerce;
|
|
46
44
|
}));
|
|
47
|
-
|
|
48
45
|
//#endregion
|
|
49
46
|
//#region dist/tsdown/_npm_entry_semver_functions_coerce.cjs
|
|
50
47
|
module.exports = require_coerce();
|
|
51
|
-
|
|
52
|
-
//#endregion
|
|
48
|
+
//#endregion
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
require(
|
|
2
|
-
const require_lt$1 = require(
|
|
3
|
-
|
|
1
|
+
require("./npm_cjs_chunk_semver.cjs");
|
|
2
|
+
const require_lt$1 = require("./npm_cjs_chunk_lt.cjs");
|
|
4
3
|
//#region dist/tsdown/_npm_entry_semver_functions_lt.cjs
|
|
5
4
|
module.exports = require_lt$1.require_lt();
|
|
6
|
-
|
|
7
|
-
//#endregion
|
|
5
|
+
//#endregion
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
const require_chunk = require(
|
|
2
|
-
require(
|
|
3
|
-
require(
|
|
4
|
-
const require_range$1 = require(
|
|
5
|
-
|
|
1
|
+
const require_chunk = require("./npm_cjs_chunk_chunk.cjs");
|
|
2
|
+
require("./npm_cjs_chunk_semver.cjs");
|
|
3
|
+
require("./npm_cjs_chunk_lt.cjs");
|
|
4
|
+
const require_range$1 = require("./npm_cjs_chunk_range.cjs");
|
|
6
5
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/satisfies.js
|
|
7
6
|
var require_satisfies = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
8
7
|
const Range = require_range$1.require_range();
|
|
@@ -16,9 +15,7 @@ var require_satisfies = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
16
15
|
};
|
|
17
16
|
module.exports = satisfies;
|
|
18
17
|
}));
|
|
19
|
-
|
|
20
18
|
//#endregion
|
|
21
19
|
//#region dist/tsdown/_npm_entry_semver_functions_satisfies.cjs
|
|
22
20
|
module.exports = require_satisfies();
|
|
23
|
-
|
|
24
|
-
//#endregion
|
|
21
|
+
//#endregion
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
const require_chunk = require(
|
|
2
|
-
const require_semver$1 = require(
|
|
3
|
-
require(
|
|
4
|
-
const require_range$1 = require(
|
|
5
|
-
|
|
1
|
+
const require_chunk = require("./npm_cjs_chunk_chunk.cjs");
|
|
2
|
+
const require_semver$1 = require("./npm_cjs_chunk_semver.cjs");
|
|
3
|
+
require("./npm_cjs_chunk_lt.cjs");
|
|
4
|
+
const require_range$1 = require("./npm_cjs_chunk_range.cjs");
|
|
6
5
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/min-version.js
|
|
7
6
|
var require_min_version = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
8
7
|
const SemVer = require_semver$1.require_semver();
|
|
@@ -41,9 +40,7 @@ var require_min_version = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
41
40
|
};
|
|
42
41
|
module.exports = minVersion;
|
|
43
42
|
}));
|
|
44
|
-
|
|
45
43
|
//#endregion
|
|
46
44
|
//#region dist/tsdown/_npm_entry_semver_ranges_min-version.cjs
|
|
47
45
|
module.exports = require_min_version();
|
|
48
|
-
|
|
49
|
-
//#endregion
|
|
46
|
+
//#endregion
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
const require_chunk = require('./npm_cjs_chunk_chunk.cjs');
|
|
2
|
-
|
|
3
1
|
//#region ../../node_modules/.pnpm/tree-kill@1.2.2/node_modules/tree-kill/index.js
|
|
4
|
-
var require_tree_kill = /* @__PURE__ */
|
|
2
|
+
var require_tree_kill = /* @__PURE__ */ require("./npm_cjs_chunk_chunk.cjs").__commonJSMin(((exports, module) => {
|
|
5
3
|
var childProcess = require("child_process");
|
|
6
4
|
var spawn = childProcess.spawn;
|
|
7
5
|
var exec = childProcess.exec;
|
|
@@ -95,9 +93,7 @@ var require_tree_kill = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
95
93
|
ps.on("close", onClose);
|
|
96
94
|
}
|
|
97
95
|
}));
|
|
98
|
-
|
|
99
96
|
//#endregion
|
|
100
97
|
//#region dist/tsdown/_npm_entry_tree-kill.cjs
|
|
101
98
|
module.exports = require_tree_kill();
|
|
102
|
-
|
|
103
|
-
//#endregion
|
|
99
|
+
//#endregion
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { t as createDebug } from "./node-
|
|
2
|
-
|
|
1
|
+
import { t as createDebug } from "./node-B3Gdtau1.js";
|
|
3
2
|
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.22.4_@typescript+native-preview@7.0.0-dev.20260122.2_oxc-resolver_e2c498b62da30912fd0b48bf4746dbba/node_modules/rolldown-plugin-dts/dist/resolver-CdD-yT15.mjs
|
|
4
3
|
const __cjs_require = globalThis.process.getBuiltinModule("module").createRequire(import.meta.url);
|
|
5
4
|
const path = globalThis.process.getBuiltinModule("node:path");
|
|
@@ -15,6 +14,5 @@ function tscResolve(id, importer, cwd, tsconfig, tsconfigRaw, reference) {
|
|
|
15
14
|
debug(`tsc resolving id "%s" from "%s" -> %O`, id, importer, resolved.resolvedModule);
|
|
16
15
|
return resolved.resolvedModule?.resolvedFileName;
|
|
17
16
|
}
|
|
18
|
-
|
|
19
17
|
//#endregion
|
|
20
|
-
export { tscResolve };
|
|
18
|
+
export { tscResolve };
|
package/dist/tsdown/run.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { c as globalLogger, f as dim, g as yellow, r as version, t as K } from "./main-
|
|
3
|
-
import "./node-
|
|
4
|
-
import { t as enableDebug } from "./debug-tOJ_PtrM-
|
|
2
|
+
import { c as globalLogger, f as dim, g as yellow, r as version, t as K } from "./main-DYgM-9Cb.js";
|
|
3
|
+
import "./node-B3Gdtau1.js";
|
|
4
|
+
import { t as enableDebug } from "./debug-tOJ_PtrM-C-Do1Twv.js";
|
|
5
5
|
import module, { createRequire } from "node:module";
|
|
6
6
|
import process$1 from "node:process";
|
|
7
7
|
import { VERSION } from "@voidzero-dev/vite-plus-core/rolldown";
|
|
8
|
-
|
|
9
8
|
//#region ../../node_modules/.pnpm/cac@7.0.0/node_modules/cac/dist/index.js
|
|
10
9
|
function toArr(any) {
|
|
11
10
|
return any == null ? [] : Array.isArray(any) ? any : [any];
|
|
@@ -623,11 +622,7 @@ var CAC = class extends EventTarget {
|
|
|
623
622
|
* @param name The program name to display in help and version message
|
|
624
623
|
*/
|
|
625
624
|
const cac = (name = "") => new CAC(name);
|
|
626
|
-
|
|
627
|
-
//#endregion
|
|
628
|
-
//#region ../../node_modules/.pnpm/tsdown@0.21.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.0_@tsdown+exe@0.21.0_@type_743816f26d68021f6369d2afb428dae9/node_modules/tsdown/dist/run.mjs
|
|
629
|
-
const __cjs_require = createRequire(import.meta.url);
|
|
630
|
-
const lt = __cjs_require("./npm_entry_semver_functions_lt.cjs");
|
|
625
|
+
const lt = createRequire(import.meta.url)("./npm_entry_semver_functions_lt.cjs");
|
|
631
626
|
const cli = cac("tsdown");
|
|
632
627
|
cli.help().version(version);
|
|
633
628
|
cli.command("[...files]", "Bundle files", {
|
|
@@ -636,7 +631,7 @@ cli.command("[...files]", "Bundle files", {
|
|
|
636
631
|
}).option("-c, --config <filename>", "Use a custom config file").option("--config-loader <loader>", "Config loader to use: auto, native, 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("--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 export-related metadata for package.json (experimental)").action(async (input, flags) => {
|
|
637
632
|
globalLogger.level = flags.logLevel || "info";
|
|
638
633
|
globalLogger.info(`tsdown ${dim`v${version}`} powered by rolldown ${dim`v${VERSION}`}`);
|
|
639
|
-
const { build } = await import("./build-gOkJM1H9-
|
|
634
|
+
const { build } = await import("./build-gOkJM1H9-D9ngUBpk.js");
|
|
640
635
|
if (input.length > 0) flags.entry = input;
|
|
641
636
|
await build(flags);
|
|
642
637
|
});
|
|
@@ -673,6 +668,5 @@ try {
|
|
|
673
668
|
module.enableCompileCache?.();
|
|
674
669
|
} catch {}
|
|
675
670
|
runCLI();
|
|
676
|
-
|
|
677
671
|
//#endregion
|
|
678
|
-
export {
|
|
672
|
+
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { t as createDebug } from "./node-
|
|
2
|
-
import { n as RE_DTS, r as RE_DTS_MAP } from "./filename-
|
|
3
|
-
import { n as globalContext } from "./tsc-context-
|
|
4
|
-
|
|
1
|
+
import { t as createDebug } from "./node-B3Gdtau1.js";
|
|
2
|
+
import { n as RE_DTS, r as RE_DTS_MAP } from "./filename-BDcjeHGl.js";
|
|
3
|
+
import { n as globalContext } from "./tsc-context-DiIjfXAG.js";
|
|
5
4
|
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.22.4_@typescript+native-preview@7.0.0-dev.20260122.2_oxc-resolver_e2c498b62da30912fd0b48bf4746dbba/node_modules/rolldown-plugin-dts/dist/tsc-Bq8zpODY.mjs
|
|
6
5
|
const __cjs_require = globalThis.process.getBuiltinModule("module").createRequire(import.meta.url);
|
|
7
6
|
const { createRequire } = globalThis.process.getBuiltinModule("node:module");
|
|
@@ -413,6 +412,5 @@ function tscEmit(tscOptions) {
|
|
|
413
412
|
if (tscOptions.build) return tscEmitBuild(tscOptions);
|
|
414
413
|
else return tscEmitCompiler(tscOptions);
|
|
415
414
|
}
|
|
416
|
-
|
|
417
415
|
//#endregion
|
|
418
|
-
export { tscEmit };
|
|
416
|
+
export { tscEmit };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { t as createDebug } from "./node-
|
|
2
|
-
|
|
1
|
+
import { t as createDebug } from "./node-B3Gdtau1.js";
|
|
3
2
|
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.22.4_@typescript+native-preview@7.0.0-dev.20260122.2_oxc-resolver_e2c498b62da30912fd0b48bf4746dbba/node_modules/rolldown-plugin-dts/dist/tsc-context.mjs
|
|
4
3
|
const path = globalThis.process.getBuiltinModule("node:path");
|
|
5
4
|
const debug = createDebug("rolldown-plugin-dts:tsc-context");
|
|
@@ -20,6 +19,5 @@ function invalidateContextFile(context, file) {
|
|
|
20
19
|
context.projects.clear();
|
|
21
20
|
}
|
|
22
21
|
const globalContext = createContext();
|
|
23
|
-
|
|
24
22
|
//#endregion
|
|
25
|
-
export { globalContext as n, invalidateContextFile as r, createContext as t };
|
|
23
|
+
export { globalContext as n, invalidateContextFile as r, createContext as t };
|