@voidzero-dev/vite-plus-core 0.1.15-alpha.0 → 0.1.15-alpha.1
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 +6 -6
- package/dist/rolldown/config.mjs +2 -2
- package/dist/rolldown/experimental-index.mjs +8 -8
- package/dist/rolldown/index.mjs +4 -4
- package/dist/rolldown/parallel-plugin-worker.mjs +2 -2
- package/dist/rolldown/parse-ast-index.mjs +1 -1
- package/dist/rolldown/plugins-index.mjs +2 -2
- package/dist/rolldown/shared/{bindingify-input-options-DHK3MwUV.mjs → bindingify-input-options-BCAF6TcN.mjs} +4 -4
- package/dist/rolldown/shared/{constructors-BfnFojy3.mjs → constructors-D3ZqEbT5.mjs} +1 -1
- package/dist/rolldown/shared/{error-D8cGyrC7.mjs → error-BLhcSyeg.mjs} +1 -1
- package/dist/rolldown/shared/{load-config-DT77Jzbv.mjs → load-config-CFr1Adp9.mjs} +1 -1
- package/dist/rolldown/shared/{normalize-string-or-regex-BFB1QNW3.mjs → normalize-string-or-regex-CCT059Zu.mjs} +1 -1
- package/dist/rolldown/shared/{parse-CCDXnkPL.mjs → parse-tRtSyZ-b.mjs} +1 -1
- package/dist/rolldown/shared/{resolve-tsconfig-gxOviCVx.mjs → resolve-tsconfig-DJjTYbYr.mjs} +2 -2
- package/dist/rolldown/shared/{rolldown-DFpH3t7W.mjs → rolldown-BMLc9elZ.mjs} +1 -1
- package/dist/rolldown/shared/{rolldown-build-ZUNnA-sr.mjs → rolldown-build-CxsB9UaT.mjs} +4 -4
- package/dist/rolldown/shared/{watch-C4x8DFD_.mjs → watch-DJOwXDOi.mjs} +4 -4
- package/dist/rolldown/utils-index.mjs +2 -2
- package/dist/tsdown/build-D-zhBXEK-X12uvwLb.js +2 -0
- package/dist/tsdown/{build-CoLhkNXE-7EboM7qg.js → build-DpU0PBVv-CUY7qeWj.js} +355 -94
- package/dist/tsdown/{debug-C4FmgzkJ-PiSP_iWN.js → debug-C4FmgzkJ-A9B4RM_w.js} +2 -2
- package/dist/tsdown/{detect-DN3DXXYt-XnCR4Kxo.js → detect-DN3DXXYt-GIMDNpE1.js} +1 -1
- package/dist/tsdown/{dist-DUfkEqWP.js → dist-BkOM3Vdg.js} +13 -13
- package/dist/tsdown/{dist-CtF_Stv5.js → dist-dJp148cE.js} +3 -3
- package/dist/tsdown/index-types.d.ts +131 -131
- package/dist/tsdown/index.js +4 -4
- package/dist/tsdown/{main-CDlTYgDd.js → main-BgAbc3Rw.js} +3 -3
- package/dist/tsdown/npm_entry_picomatch.cjs +217 -9
- package/dist/tsdown/run.js +3 -3
- package/dist/vite/client/client.mjs +4 -4
- package/dist/vite/node/chunks/build2.js +1 -0
- package/dist/vite/node/chunks/node.js +218 -10
- package/package.json +10 -10
- package/dist/tsdown/build-dhDyu66J-DRVHWKha.js +0 -2
- /package/dist/rolldown/shared/{binding-ER32uZ22.mjs → binding-CkWPGrSM.mjs} +0 -0
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
const require_chunk = require("./npm_cjs_chunk_chunk.cjs");
|
|
2
|
-
//#region ../../node_modules/.pnpm/picomatch@4.0.
|
|
2
|
+
//#region ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/constants.js
|
|
3
3
|
var require_constants = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
4
4
|
const WIN_SLASH = "\\\\/";
|
|
5
5
|
const WIN_NO_SLASH = `[^${WIN_SLASH}]`;
|
|
6
|
+
const DEFAULT_MAX_EXTGLOB_RECURSION = 0;
|
|
6
7
|
/**
|
|
7
8
|
* Posix glob regex
|
|
8
9
|
*/
|
|
@@ -52,8 +53,10 @@ var require_constants = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
52
53
|
SEP: "\\"
|
|
53
54
|
};
|
|
54
55
|
module.exports = {
|
|
56
|
+
DEFAULT_MAX_EXTGLOB_RECURSION,
|
|
55
57
|
MAX_LENGTH: 1024 * 64,
|
|
56
58
|
POSIX_REGEX_SOURCE: {
|
|
59
|
+
__proto__: null,
|
|
57
60
|
alnum: "a-zA-Z0-9",
|
|
58
61
|
alpha: "a-zA-Z",
|
|
59
62
|
ascii: "\\x00-\\x7F",
|
|
@@ -159,7 +162,7 @@ var require_constants = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
159
162
|
};
|
|
160
163
|
}));
|
|
161
164
|
//#endregion
|
|
162
|
-
//#region ../../node_modules/.pnpm/picomatch@4.0.
|
|
165
|
+
//#region ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/utils.js
|
|
163
166
|
var require_utils = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
164
167
|
const { REGEX_BACKSLASH, REGEX_REMOVE_BACKSLASH, REGEX_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_GLOBAL } = require_constants();
|
|
165
168
|
exports.isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
|
|
@@ -207,7 +210,7 @@ var require_utils = /* @__PURE__ */ require_chunk.__commonJSMin(((exports) => {
|
|
|
207
210
|
};
|
|
208
211
|
}));
|
|
209
212
|
//#endregion
|
|
210
|
-
//#region ../../node_modules/.pnpm/picomatch@4.0.
|
|
213
|
+
//#region ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/scan.js
|
|
211
214
|
var require_scan = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
212
215
|
const utils = require_utils();
|
|
213
216
|
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();
|
|
@@ -494,7 +497,7 @@ var require_scan = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
|
|
|
494
497
|
module.exports = scan;
|
|
495
498
|
}));
|
|
496
499
|
//#endregion
|
|
497
|
-
//#region ../../node_modules/.pnpm/picomatch@4.0.
|
|
500
|
+
//#region ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/parse.js
|
|
498
501
|
var require_parse = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
499
502
|
const constants = require_constants();
|
|
500
503
|
const utils = require_utils();
|
|
@@ -522,6 +525,177 @@ var require_parse = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
522
525
|
const syntaxError = (type, char) => {
|
|
523
526
|
return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`;
|
|
524
527
|
};
|
|
528
|
+
const splitTopLevel = (input) => {
|
|
529
|
+
const parts = [];
|
|
530
|
+
let bracket = 0;
|
|
531
|
+
let paren = 0;
|
|
532
|
+
let quote = 0;
|
|
533
|
+
let value = "";
|
|
534
|
+
let escaped = false;
|
|
535
|
+
for (const ch of input) {
|
|
536
|
+
if (escaped === true) {
|
|
537
|
+
value += ch;
|
|
538
|
+
escaped = false;
|
|
539
|
+
continue;
|
|
540
|
+
}
|
|
541
|
+
if (ch === "\\") {
|
|
542
|
+
value += ch;
|
|
543
|
+
escaped = true;
|
|
544
|
+
continue;
|
|
545
|
+
}
|
|
546
|
+
if (ch === "\"") {
|
|
547
|
+
quote = quote === 1 ? 0 : 1;
|
|
548
|
+
value += ch;
|
|
549
|
+
continue;
|
|
550
|
+
}
|
|
551
|
+
if (quote === 0) {
|
|
552
|
+
if (ch === "[") bracket++;
|
|
553
|
+
else if (ch === "]" && bracket > 0) bracket--;
|
|
554
|
+
else if (bracket === 0) {
|
|
555
|
+
if (ch === "(") paren++;
|
|
556
|
+
else if (ch === ")" && paren > 0) paren--;
|
|
557
|
+
else if (ch === "|" && paren === 0) {
|
|
558
|
+
parts.push(value);
|
|
559
|
+
value = "";
|
|
560
|
+
continue;
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
value += ch;
|
|
565
|
+
}
|
|
566
|
+
parts.push(value);
|
|
567
|
+
return parts;
|
|
568
|
+
};
|
|
569
|
+
const isPlainBranch = (branch) => {
|
|
570
|
+
let escaped = false;
|
|
571
|
+
for (const ch of branch) {
|
|
572
|
+
if (escaped === true) {
|
|
573
|
+
escaped = false;
|
|
574
|
+
continue;
|
|
575
|
+
}
|
|
576
|
+
if (ch === "\\") {
|
|
577
|
+
escaped = true;
|
|
578
|
+
continue;
|
|
579
|
+
}
|
|
580
|
+
if (/[?*+@!()[\]{}]/.test(ch)) return false;
|
|
581
|
+
}
|
|
582
|
+
return true;
|
|
583
|
+
};
|
|
584
|
+
const normalizeSimpleBranch = (branch) => {
|
|
585
|
+
let value = branch.trim();
|
|
586
|
+
let changed = true;
|
|
587
|
+
while (changed === true) {
|
|
588
|
+
changed = false;
|
|
589
|
+
if (/^@\([^\\()[\]{}|]+\)$/.test(value)) {
|
|
590
|
+
value = value.slice(2, -1);
|
|
591
|
+
changed = true;
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
if (!isPlainBranch(value)) return;
|
|
595
|
+
return value.replace(/\\(.)/g, "$1");
|
|
596
|
+
};
|
|
597
|
+
const hasRepeatedCharPrefixOverlap = (branches) => {
|
|
598
|
+
const values = branches.map(normalizeSimpleBranch).filter(Boolean);
|
|
599
|
+
for (let i = 0; i < values.length; i++) for (let j = i + 1; j < values.length; j++) {
|
|
600
|
+
const a = values[i];
|
|
601
|
+
const b = values[j];
|
|
602
|
+
const char = a[0];
|
|
603
|
+
if (!char || a !== char.repeat(a.length) || b !== char.repeat(b.length)) continue;
|
|
604
|
+
if (a === b || a.startsWith(b) || b.startsWith(a)) return true;
|
|
605
|
+
}
|
|
606
|
+
return false;
|
|
607
|
+
};
|
|
608
|
+
const parseRepeatedExtglob = (pattern, requireEnd = true) => {
|
|
609
|
+
if (pattern[0] !== "+" && pattern[0] !== "*" || pattern[1] !== "(") return;
|
|
610
|
+
let bracket = 0;
|
|
611
|
+
let paren = 0;
|
|
612
|
+
let quote = 0;
|
|
613
|
+
let escaped = false;
|
|
614
|
+
for (let i = 1; i < pattern.length; i++) {
|
|
615
|
+
const ch = pattern[i];
|
|
616
|
+
if (escaped === true) {
|
|
617
|
+
escaped = false;
|
|
618
|
+
continue;
|
|
619
|
+
}
|
|
620
|
+
if (ch === "\\") {
|
|
621
|
+
escaped = true;
|
|
622
|
+
continue;
|
|
623
|
+
}
|
|
624
|
+
if (ch === "\"") {
|
|
625
|
+
quote = quote === 1 ? 0 : 1;
|
|
626
|
+
continue;
|
|
627
|
+
}
|
|
628
|
+
if (quote === 1) continue;
|
|
629
|
+
if (ch === "[") {
|
|
630
|
+
bracket++;
|
|
631
|
+
continue;
|
|
632
|
+
}
|
|
633
|
+
if (ch === "]" && bracket > 0) {
|
|
634
|
+
bracket--;
|
|
635
|
+
continue;
|
|
636
|
+
}
|
|
637
|
+
if (bracket > 0) continue;
|
|
638
|
+
if (ch === "(") {
|
|
639
|
+
paren++;
|
|
640
|
+
continue;
|
|
641
|
+
}
|
|
642
|
+
if (ch === ")") {
|
|
643
|
+
paren--;
|
|
644
|
+
if (paren === 0) {
|
|
645
|
+
if (requireEnd === true && i !== pattern.length - 1) return;
|
|
646
|
+
return {
|
|
647
|
+
type: pattern[0],
|
|
648
|
+
body: pattern.slice(2, i),
|
|
649
|
+
end: i
|
|
650
|
+
};
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
};
|
|
655
|
+
const getStarExtglobSequenceOutput = (pattern) => {
|
|
656
|
+
let index = 0;
|
|
657
|
+
const chars = [];
|
|
658
|
+
while (index < pattern.length) {
|
|
659
|
+
const match = parseRepeatedExtglob(pattern.slice(index), false);
|
|
660
|
+
if (!match || match.type !== "*") return;
|
|
661
|
+
const branches = splitTopLevel(match.body).map((branch) => branch.trim());
|
|
662
|
+
if (branches.length !== 1) return;
|
|
663
|
+
const branch = normalizeSimpleBranch(branches[0]);
|
|
664
|
+
if (!branch || branch.length !== 1) return;
|
|
665
|
+
chars.push(branch);
|
|
666
|
+
index += match.end + 1;
|
|
667
|
+
}
|
|
668
|
+
if (chars.length < 1) return;
|
|
669
|
+
return `${chars.length === 1 ? utils.escapeRegex(chars[0]) : `[${chars.map((ch) => utils.escapeRegex(ch)).join("")}]`}*`;
|
|
670
|
+
};
|
|
671
|
+
const repeatedExtglobRecursion = (pattern) => {
|
|
672
|
+
let depth = 0;
|
|
673
|
+
let value = pattern.trim();
|
|
674
|
+
let match = parseRepeatedExtglob(value);
|
|
675
|
+
while (match) {
|
|
676
|
+
depth++;
|
|
677
|
+
value = match.body.trim();
|
|
678
|
+
match = parseRepeatedExtglob(value);
|
|
679
|
+
}
|
|
680
|
+
return depth;
|
|
681
|
+
};
|
|
682
|
+
const analyzeRepeatedExtglob = (body, options) => {
|
|
683
|
+
if (options.maxExtglobRecursion === false) return { risky: false };
|
|
684
|
+
const max = typeof options.maxExtglobRecursion === "number" ? options.maxExtglobRecursion : constants.DEFAULT_MAX_EXTGLOB_RECURSION;
|
|
685
|
+
const branches = splitTopLevel(body).map((branch) => branch.trim());
|
|
686
|
+
if (branches.length > 1) {
|
|
687
|
+
if (branches.some((branch) => branch === "") || branches.some((branch) => /^[*?]+$/.test(branch)) || hasRepeatedCharPrefixOverlap(branches)) return { risky: true };
|
|
688
|
+
}
|
|
689
|
+
for (const branch of branches) {
|
|
690
|
+
const safeOutput = getStarExtglobSequenceOutput(branch);
|
|
691
|
+
if (safeOutput) return {
|
|
692
|
+
risky: true,
|
|
693
|
+
safeOutput
|
|
694
|
+
};
|
|
695
|
+
if (repeatedExtglobRecursion(branch) > max) return { risky: true };
|
|
696
|
+
}
|
|
697
|
+
return { risky: false };
|
|
698
|
+
};
|
|
525
699
|
/**
|
|
526
700
|
* Parse the given input string.
|
|
527
701
|
* @param {String} input
|
|
@@ -651,6 +825,8 @@ var require_parse = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
651
825
|
token.prev = prev;
|
|
652
826
|
token.parens = state.parens;
|
|
653
827
|
token.output = state.output;
|
|
828
|
+
token.startIndex = state.index;
|
|
829
|
+
token.tokensIndex = tokens.length;
|
|
654
830
|
const output = (opts.capture ? "(" : "") + token.open;
|
|
655
831
|
increment("parens");
|
|
656
832
|
push({
|
|
@@ -667,6 +843,30 @@ var require_parse = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
667
843
|
extglobs.push(token);
|
|
668
844
|
};
|
|
669
845
|
const extglobClose = (token) => {
|
|
846
|
+
const literal = input.slice(token.startIndex, state.index + 1);
|
|
847
|
+
const analysis = analyzeRepeatedExtglob(input.slice(token.startIndex + 2, state.index), opts);
|
|
848
|
+
if ((token.type === "plus" || token.type === "star") && analysis.risky) {
|
|
849
|
+
const safeOutput = analysis.safeOutput ? (token.output ? "" : ONE_CHAR) + (opts.capture ? `(${analysis.safeOutput})` : analysis.safeOutput) : void 0;
|
|
850
|
+
const open = tokens[token.tokensIndex];
|
|
851
|
+
open.type = "text";
|
|
852
|
+
open.value = literal;
|
|
853
|
+
open.output = safeOutput || utils.escapeRegex(literal);
|
|
854
|
+
for (let i = token.tokensIndex + 1; i < tokens.length; i++) {
|
|
855
|
+
tokens[i].value = "";
|
|
856
|
+
tokens[i].output = "";
|
|
857
|
+
delete tokens[i].suffix;
|
|
858
|
+
}
|
|
859
|
+
state.output = token.output + open.output;
|
|
860
|
+
state.backtrack = true;
|
|
861
|
+
push({
|
|
862
|
+
type: "paren",
|
|
863
|
+
extglob: true,
|
|
864
|
+
value,
|
|
865
|
+
output: ""
|
|
866
|
+
});
|
|
867
|
+
decrement("parens");
|
|
868
|
+
return;
|
|
869
|
+
}
|
|
670
870
|
let output = token.close + (opts.capture ? ")" : "");
|
|
671
871
|
let rest;
|
|
672
872
|
if (token.type === "negate") {
|
|
@@ -1352,7 +1552,7 @@ var require_parse = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modul
|
|
|
1352
1552
|
module.exports = parse;
|
|
1353
1553
|
}));
|
|
1354
1554
|
//#endregion
|
|
1355
|
-
//#region ../../node_modules/.pnpm/picomatch@4.0.
|
|
1555
|
+
//#region ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/picomatch.js
|
|
1356
1556
|
var require_picomatch$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
1357
1557
|
const scan = require_scan();
|
|
1358
1558
|
const parse = require_parse();
|
|
@@ -1562,6 +1762,14 @@ var require_picomatch$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
1562
1762
|
* Compile a regular expression from the `state` object returned by the
|
|
1563
1763
|
* [parse()](#parse) method.
|
|
1564
1764
|
*
|
|
1765
|
+
* ```js
|
|
1766
|
+
* const picomatch = require('picomatch');
|
|
1767
|
+
* const state = picomatch.parse('*.js');
|
|
1768
|
+
* // picomatch.compileRe(state[, options]);
|
|
1769
|
+
*
|
|
1770
|
+
* console.log(picomatch.compileRe(state));
|
|
1771
|
+
* //=> /^(?:(?!\.)(?=.)[^/]*?\.js)$/
|
|
1772
|
+
* ```
|
|
1565
1773
|
* @param {Object} `state`
|
|
1566
1774
|
* @param {Object} `options`
|
|
1567
1775
|
* @param {Boolean} `returnOutput` Intended for implementors, this argument allows you to return the raw output from the parser.
|
|
@@ -1585,10 +1793,10 @@ var require_picomatch$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
1585
1793
|
*
|
|
1586
1794
|
* ```js
|
|
1587
1795
|
* const picomatch = require('picomatch');
|
|
1588
|
-
*
|
|
1589
|
-
* // picomatch.compileRe(state[, options]);
|
|
1796
|
+
* // picomatch.makeRe(state[, options]);
|
|
1590
1797
|
*
|
|
1591
|
-
*
|
|
1798
|
+
* const result = picomatch.makeRe('*.js');
|
|
1799
|
+
* console.log(result);
|
|
1592
1800
|
* //=> /^(?:(?!\.)(?=.)[^/]*?\.js)$/
|
|
1593
1801
|
* ```
|
|
1594
1802
|
* @param {String} `state` The object returned from the `.parse` method.
|
|
@@ -1644,7 +1852,7 @@ var require_picomatch$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
1644
1852
|
module.exports = picomatch;
|
|
1645
1853
|
}));
|
|
1646
1854
|
//#endregion
|
|
1647
|
-
//#region ../../node_modules/.pnpm/picomatch@4.0.
|
|
1855
|
+
//#region ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/index.js
|
|
1648
1856
|
var require_picomatch = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
1649
1857
|
const pico = require_picomatch$1();
|
|
1650
1858
|
const utils = require_utils();
|
package/dist/tsdown/run.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { c as globalLogger, f as dim, g as yellow, r as version, t as R } from "./main-
|
|
3
|
-
import { t as enableDebug } from "./debug-C4FmgzkJ-
|
|
2
|
+
import { c as globalLogger, f as dim, g as yellow, r as version, t as R } from "./main-BgAbc3Rw.js";
|
|
3
|
+
import { t as enableDebug } from "./debug-C4FmgzkJ-A9B4RM_w.js";
|
|
4
4
|
import module, { createRequire } from "node:module";
|
|
5
5
|
import process$1 from "node:process";
|
|
6
6
|
import { VERSION } from "@voidzero-dev/vite-plus-core/rolldown";
|
|
@@ -630,7 +630,7 @@ cli.command("[...files]", "Bundle files", {
|
|
|
630
630
|
}).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("--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 export-related metadata for package.json (experimental)").action(async (input, flags) => {
|
|
631
631
|
globalLogger.level = flags.logLevel || "info";
|
|
632
632
|
globalLogger.info(`tsdown ${dim`v${version}`} powered by rolldown ${dim`v${VERSION}`}`);
|
|
633
|
-
const { build } = await import("./build-
|
|
633
|
+
const { build } = await import("./build-D-zhBXEK-X12uvwLb.js");
|
|
634
634
|
if (input.length > 0) flags.entry = input;
|
|
635
635
|
await build(flags);
|
|
636
636
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "@vite/env";
|
|
2
|
-
//#region \0@oxc-project+runtime@0.
|
|
2
|
+
//#region \0@oxc-project+runtime@0.122.0/helpers/typeof.js
|
|
3
3
|
function _typeof(o) {
|
|
4
4
|
"@babel/helpers - typeof";
|
|
5
5
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -9,7 +9,7 @@ function _typeof(o) {
|
|
|
9
9
|
}, _typeof(o);
|
|
10
10
|
}
|
|
11
11
|
//#endregion
|
|
12
|
-
//#region \0@oxc-project+runtime@0.
|
|
12
|
+
//#region \0@oxc-project+runtime@0.122.0/helpers/toPrimitive.js
|
|
13
13
|
function toPrimitive(t, r) {
|
|
14
14
|
if ("object" != _typeof(t) || !t) return t;
|
|
15
15
|
var e = t[Symbol.toPrimitive];
|
|
@@ -21,13 +21,13 @@ function toPrimitive(t, r) {
|
|
|
21
21
|
return ("string" === r ? String : Number)(t);
|
|
22
22
|
}
|
|
23
23
|
//#endregion
|
|
24
|
-
//#region \0@oxc-project+runtime@0.
|
|
24
|
+
//#region \0@oxc-project+runtime@0.122.0/helpers/toPropertyKey.js
|
|
25
25
|
function toPropertyKey(t) {
|
|
26
26
|
var i = toPrimitive(t, "string");
|
|
27
27
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
28
28
|
}
|
|
29
29
|
//#endregion
|
|
30
|
-
//#region \0@oxc-project+runtime@0.
|
|
30
|
+
//#region \0@oxc-project+runtime@0.122.0/helpers/defineProperty.js
|
|
31
31
|
function _defineProperty(e, r, t) {
|
|
32
32
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
33
33
|
value: t,
|
|
@@ -4555,6 +4555,7 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4555
4555
|
return new _processor["default"](processor);
|
|
4556
4556
|
};
|
|
4557
4557
|
Object.assign(parser, selectors);
|
|
4558
|
+
delete parser.__esModule;
|
|
4558
4559
|
exports["default"] = parser;
|
|
4559
4560
|
module.exports = exports.default;
|
|
4560
4561
|
}));
|