@voidzero-dev/vite-plus-core 0.2.4 → 0.2.6

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.
Files changed (88) hide show
  1. package/LICENSE +36 -120
  2. package/dist/rolldown/cli.d.mts +1 -1
  3. package/dist/rolldown/cli.mjs +11 -8
  4. package/dist/rolldown/config.d.mts +22 -10
  5. package/dist/rolldown/config.mjs +2 -2
  6. package/dist/rolldown/experimental-index.d.mts +164 -155
  7. package/dist/rolldown/experimental-index.mjs +23 -14
  8. package/dist/rolldown/experimental-runtime-types.d.ts +111 -41
  9. package/dist/rolldown/filter-index.d.mts +6 -5
  10. package/dist/rolldown/get-log-filter.d.mts +2 -2
  11. package/dist/rolldown/index.d.mts +4 -4
  12. package/dist/rolldown/index.mjs +10 -4
  13. package/dist/rolldown/parallel-plugin-worker.d.mts +1 -1
  14. package/dist/rolldown/parallel-plugin-worker.mjs +2 -2
  15. package/dist/rolldown/parallel-plugin.d.mts +3 -4
  16. package/dist/rolldown/parse-ast-index.d.mts +19 -20
  17. package/dist/rolldown/parse-ast-index.mjs +2 -2
  18. package/dist/rolldown/plugins-index.d.mts +27 -28
  19. package/dist/rolldown/plugins-index.mjs +2 -2
  20. package/dist/rolldown/shared/{binding-B1q9aYT-.d.mts → binding-Dbbi0RbO.d.mts} +49 -25
  21. package/dist/rolldown/shared/{binding-BmkJW3Wy.mjs → binding-Dby9rwGk.mjs} +26 -26
  22. package/dist/rolldown/shared/{bindingify-input-options-Cmm60vfj.mjs → bindingify-input-options-DVQ4K-zY.mjs} +11 -13
  23. package/dist/rolldown/shared/{constructors-2i1T9YcF.d.mts → constructors-CSWbNgBZ.d.mts} +9 -10
  24. package/dist/rolldown/shared/{constructors-CE6zZSUt.mjs → constructors-CuGa75s-.mjs} +1 -1
  25. package/dist/rolldown/shared/define-config-B-IDOhDz.d.mts +4003 -0
  26. package/dist/rolldown/shared/dist-DX3cAjHx.mjs +154 -0
  27. package/dist/rolldown/shared/{error-BlQ0-ek7.mjs → error-DFGNOCle.mjs} +1 -1
  28. package/dist/rolldown/shared/get-log-filter-AjBknEEO.d.mts +34 -0
  29. package/dist/rolldown/shared/{load-config-CVVMWSlg.mjs → load-config-R0z2olkB.mjs} +19 -2
  30. package/dist/rolldown/shared/{logging-BSNejiLS.d.mts → logging-xuHO4mAy.d.mts} +6 -6
  31. package/dist/rolldown/shared/{logs-aMKUxRpj.mjs → logs-ZGEh6uhb.mjs} +6 -1
  32. package/dist/rolldown/shared/{normalize-string-or-regex-BYkbbGqQ.mjs → normalize-string-or-regex-SiXbePVH.mjs} +2 -2
  33. package/dist/rolldown/shared/{parse-Dphnedsw.mjs → parse-D5dkElpf.mjs} +2 -2
  34. package/dist/rolldown/shared/{prompt-Bgj-uEyc.mjs → prompt-pZFoa1TT.mjs} +59 -17
  35. package/dist/rolldown/shared/{resolve-tsconfig-CdIAR1Eb.mjs → resolve-tsconfig-2TXRF_zr.mjs} +2 -2
  36. package/dist/rolldown/shared/{rolldown-Bnp916iM.mjs → rolldown-BnV7isAX.mjs} +1 -1
  37. package/dist/rolldown/shared/{rolldown-build-Cs2iVJuw.mjs → rolldown-build-BGXNOfvH.mjs} +33 -13
  38. package/dist/rolldown/shared/transform-Cs2bUDRH.d.mts +148 -0
  39. package/dist/rolldown/shared/{watch-ECGr-_QS.mjs → watch-DVucf-VG.mjs} +5 -5
  40. package/dist/rolldown/utils-index.d.mts +29 -30
  41. package/dist/rolldown/utils-index.mjs +9 -9
  42. package/dist/tsdown/{build-B_nvJe4A-CvbtVBxy.js → build-oq13wECG-Bymq3jT5.js} +210 -1229
  43. package/dist/tsdown/debug-BntVTkRq-BGIoAiTa.js +159 -0
  44. package/dist/tsdown/{detect-B97OSl92-BJPZyIKJ.js → detect-DGhJGEqb-S-tkSzpt.js} +13 -2
  45. package/dist/tsdown/dist-CxIM8o7n.js +2613 -0
  46. package/dist/tsdown/dist-DCMiHFrJ.js +1061 -0
  47. package/dist/tsdown/index-types.d.ts +2106 -1895
  48. package/dist/tsdown/index.js +7 -4
  49. package/dist/tsdown/internal-C7ewSPAZ.js +3 -0
  50. package/dist/tsdown/load-tsc-BKULZsrs-BFmeD6Bu.js +18 -0
  51. package/dist/tsdown/{main-BlTcyuFi.js → main-BdzlWPt6.js} +214 -9
  52. package/dist/tsdown/npm_entry_picomatch.cjs +44 -15
  53. package/dist/tsdown/{resolver-DtsKFXi2-B8Z3WwZh.js → resolver-cwLsPb2o-oj1hqxK6.js} +4 -3
  54. package/dist/tsdown/run.js +4 -4
  55. package/dist/tsdown/{src-CISfE_A0.js → src-BV-UJr_R.js} +5 -5
  56. package/dist/tsdown/target-CNxIDvSz-eoHNdJNs.js +576 -0
  57. package/dist/tsdown/{tsc-context-CX_GXdyS.js → tsc-context-CA76SkkZ.js} +2 -2
  58. package/dist/tsdown/{tsc-CdZE7QwS.js → tsc-zcbB6ZVY.js} +58 -117
  59. package/dist/tsdown/tsdown-css.js +74 -23
  60. package/dist/tsdown/tsdown-exe.js +129 -876
  61. package/dist/vite/client/client.mjs +5 -5
  62. package/dist/vite/node/chunks/build.js +204 -94
  63. package/dist/vite/node/chunks/dist2.js +1 -1
  64. package/dist/vite/node/chunks/lib.js +1 -1
  65. package/dist/vite/node/chunks/moduleRunnerTransport.d.ts +25 -26
  66. package/dist/vite/node/chunks/node.js +552 -104
  67. package/dist/vite/node/chunks/postcss-import.js +11 -11
  68. package/dist/vite/node/cli.js +3 -4
  69. package/dist/vite/node/index.d.ts +1284 -1285
  70. package/dist/vite/node/index.js +1 -2
  71. package/dist/vite/node/module-runner.d.ts +76 -77
  72. package/dist/vite/node/module-runner.js +6 -7
  73. package/package.json +20 -18
  74. package/dist/rolldown/shared/define-config-BBz954-q.d.mts +0 -3901
  75. package/dist/rolldown/shared/get-log-filter-BpNVNJ5-.d.mts +0 -35
  76. package/dist/rolldown/shared/transform-CEmFsvJW.d.mts +0 -149
  77. package/dist/tsdown/debug-DLdR-9XB-DQZ6QLC0.js +0 -250
  78. package/dist/tsdown/dist-CZtGyfn3.js +0 -200
  79. package/dist/tsdown/dist-CqbVlnVq.js +0 -32057
  80. package/dist/tsdown/general-Cp4NiJNK-CbyrS9q1.js +0 -97
  81. package/dist/tsdown/internal-bfoxcI4F.js +0 -3
  82. package/dist/tsdown/npm_cjs_chunk_range.cjs +0 -474
  83. package/dist/tsdown/npm_cjs_chunk_semver.cjs +0 -357
  84. package/dist/tsdown/npm_entry_semver_functions_coerce.cjs +0 -52
  85. package/dist/tsdown/npm_entry_semver_functions_satisfies.cjs +0 -19
  86. package/dist/tsdown/npm_entry_semver_ranges_min-version.cjs +0 -46
  87. package/dist/tsdown/target-CqeSqtms-FAqYuGyB.js +0 -79
  88. package/dist/vite/node/chunks/logger.js +0 -361
@@ -1,9 +1,12 @@
1
- import { s as globalLogger, t as enableDebug } from "./debug-DLdR-9XB-DQZ6QLC0.js";
2
- import { a as resolveUserConfig, i as mergeConfig, n as buildWithConfigs, t as build$1 } from "./build-B_nvJe4A-CvbtVBxy.js";
1
+ import { c as globalLogger, n as version$1, t as enableDebug } from "./debug-BntVTkRq-BGIoAiTa.js";
2
+ import { a as resolveUserConfig, i as mergeConfig, n as buildWithConfigs, t as build$1 } from "./build-oq13wECG-Bymq3jT5.js";
3
3
  import * as Rolldown from "@voidzero-dev/vite-plus-core/rolldown";
4
- //#region ../../node_modules/.pnpm/tsdown@0.22.3_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.3_@tsdown+exe@0.22.3_@type_b3805a6765df28d505319221a7193e18/node_modules/tsdown/dist/config.mjs
4
+ //#region ../../node_modules/.pnpm/tsdown@0.22.13_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.13_@tsdown+exe@0.22.13_@t_f26a610f558bef85f3db2230cc877c56/node_modules/tsdown/dist/config.mjs
5
5
  function defineConfig(options) {
6
6
  return options;
7
7
  }
8
8
  //#endregion
9
- export { Rolldown, build$1 as build, buildWithConfigs, defineConfig, enableDebug, globalLogger, mergeConfig, resolveUserConfig };
9
+ //#region ../../node_modules/.pnpm/tsdown@0.22.13_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.13_@tsdown+exe@0.22.13_@t_f26a610f558bef85f3db2230cc877c56/node_modules/tsdown/dist/index.mjs
10
+ const version = version$1;
11
+ //#endregion
12
+ export { Rolldown, build$1 as build, buildWithConfigs, defineConfig, enableDebug, globalLogger, mergeConfig, resolveUserConfig, version };
@@ -0,0 +1,3 @@
1
+ import "./main-BdzlWPt6.js";
2
+ import "./target-CNxIDvSz-eoHNdJNs.js";
3
+ export {};
@@ -0,0 +1,18 @@
1
+ import { r as createDebug } from "./main-BdzlWPt6.js";
2
+ import { createRequire } from "node:module";
3
+ //#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.27.12_@typescript+native-preview@7.0.0-dev.20260605.1_oxc-resolve_d94a4da753642eee691447f5bf042e95/node_modules/rolldown-plugin-dts/dist/load-tsc-BKULZsrs.mjs
4
+ const require = createRequire(import.meta.url);
5
+ const debug = createDebug("rolldown-plugin-dts:load-tsc");
6
+ let _ts;
7
+ function requireTS(message = "") {
8
+ if (_ts) return _ts;
9
+ try {
10
+ _ts = require("typescript");
11
+ if (debug.enabled) debug(`loaded TypeScript version ${_ts.version} from ${require.resolve("typescript")}`);
12
+ return _ts;
13
+ } catch (cause) {
14
+ throw new Error(`TypeScript is not installed. You should install \`typescript\` package. ${message}`, { cause });
15
+ }
16
+ }
17
+ //#endregion
18
+ export { requireTS as t };
@@ -1,3 +1,4 @@
1
+ import { createRequire } from "node:module";
1
2
  import { cwd } from "node:process";
2
3
  import readline from "node:readline";
3
4
  import { isatty } from "node:tty";
@@ -7,7 +8,206 @@ import { basename, delimiter, dirname, normalize, resolve } from "node:path";
7
8
  import { pipeline } from "node:stream/promises";
8
9
  import { PassThrough } from "node:stream";
9
10
  import { closeSync, openSync, readSync, statSync } from "node:fs";
10
- //#region ../../node_modules/.pnpm/obug@2.1.3/node_modules/obug/dist/core.js
11
+ //#region \0rolldown/runtime.js
12
+ var __create = Object.create;
13
+ var __defProp = Object.defineProperty;
14
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
15
+ var __getOwnPropNames = Object.getOwnPropertyNames;
16
+ var __getProtoOf = Object.getPrototypeOf;
17
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
18
+ var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
19
+ var __exportAll = (all, no_symbols) => {
20
+ let target = {};
21
+ for (var name in all) __defProp(target, name, {
22
+ get: all[name],
23
+ enumerable: true
24
+ });
25
+ if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
26
+ return target;
27
+ };
28
+ var __copyProps = (to, from, except, desc) => {
29
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
30
+ key = keys[i];
31
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
32
+ get: ((k) => from[k]).bind(null, key),
33
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
34
+ });
35
+ }
36
+ return to;
37
+ };
38
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
39
+ value: mod,
40
+ enumerable: true
41
+ }) : target, mod));
42
+ var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
43
+ //#endregion
44
+ //#region ../../node_modules/.pnpm/tsdown@0.22.13_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.13_@tsdown+exe@0.22.13_@t_f26a610f558bef85f3db2230cc877c56/node_modules/tsdown/dist/general-Cp4NiJNK.mjs
45
+ const picomatch = createRequire(import.meta.url)("./npm_entry_picomatch.cjs");
46
+ function toArray(val, defaultValue) {
47
+ if (Array.isArray(val)) return val;
48
+ else if (val == null) {
49
+ if (defaultValue) return [defaultValue];
50
+ return [];
51
+ } else return [val];
52
+ }
53
+ function resolveComma(arr) {
54
+ return arr.flatMap((format) => format.split(","));
55
+ }
56
+ function resolveRegex(str) {
57
+ if (typeof str === "string" && str.length > 2 && str[0] === "/" && str.at(-1) === "/") return new RegExp(str.slice(1, -1));
58
+ return str;
59
+ }
60
+ function slash(string) {
61
+ return string.replaceAll("\\", "/");
62
+ }
63
+ const noop = (v) => v;
64
+ function matchPattern(id, patterns) {
65
+ return patterns.some((pattern) => {
66
+ if (pattern instanceof RegExp) {
67
+ pattern.lastIndex = 0;
68
+ return pattern.test(id);
69
+ }
70
+ return id === pattern || picomatch(pattern)(id);
71
+ });
72
+ }
73
+ function pkgExists(moduleName) {
74
+ try {
75
+ import.meta.resolve(moduleName);
76
+ return true;
77
+ } catch {}
78
+ return false;
79
+ }
80
+ async function importWithError(moduleName) {
81
+ try {
82
+ return await import(moduleName);
83
+ } catch (error) {
84
+ throw new Error(`Failed to import module "${moduleName}". Please ensure it is installed.`, { cause: error });
85
+ }
86
+ }
87
+ function promiseWithResolvers() {
88
+ let resolve;
89
+ return {
90
+ promise: new Promise((res) => {
91
+ resolve = res;
92
+ }),
93
+ resolve
94
+ };
95
+ }
96
+ function debounce(fn, delay) {
97
+ let timer;
98
+ const debounced = (...args) => {
99
+ clearTimeout(timer);
100
+ timer = setTimeout(() => fn(...args), delay);
101
+ };
102
+ debounced.cancel = () => clearTimeout(timer);
103
+ return debounced;
104
+ }
105
+ const { Ansis, fg, bg, rgb, bgRgb, hex, bgHex, reset, inverse, hidden, visible, link, bold, dim, italic, underline, strikethrough, black, red, green, yellow, blue, magenta, cyan, white, gray, redBright, greenBright, yellowBright, blueBright, magentaBright, cyanBright, whiteBright, bgBlack, bgRed, bgGreen, bgYellow, bgBlue, bgMagenta, bgCyan, bgWhite, bgGray, bgRedBright, bgGreenBright, bgYellowBright, bgBlueBright, bgMagentaBright, bgCyanBright, bgWhiteBright } = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
106
+ let e, { defineProperty: r, getPrototypeOf: t, setPrototypeOf: n, create: o, keys: l } = Object, i = "", { round: f, max: s } = Math, u = (e) => {
107
+ let r = /([a-f\d]{3,6})/i.exec(e)?.[0], t = r?.length, n = "0x" + (6 ^ t ? 3 ^ t ? "0" : r[0] + r[0] + r[1] + r[1] + r[2] + r[2] : r) | 0;
108
+ return [
109
+ n >> 16,
110
+ n >> 8 & 255,
111
+ 255 & n
112
+ ];
113
+ }, a = (e) => {
114
+ if (8 > e) return 30 + e;
115
+ if (16 > e) return 82 + e;
116
+ if (e > 231) return e > 243 ? 37 : 30;
117
+ let r = (e -= 16) % 36, t = e / 36 | 0, n = r / 6 | 0, o = r % 6;
118
+ return 30 + (t > 2 | (n > 2) << 1 | (o > 2) << 2) + (s(t, n, o) > 4 ? 60 : 0);
119
+ }, c = {
120
+ open: i,
121
+ close: i
122
+ }, g = (e, { open: r = "", close: o = "", f: l }) => {
123
+ let f = (e.open || i) + r, s = o + (e.close || i), u = (e, ...t) => {
124
+ if (!e) {
125
+ if (!o) return r;
126
+ if ((e ?? i) === i) return i;
127
+ }
128
+ let n, a = l ? l(e, ...t) : e.raw ? String.raw({ raw: e }, ...t) : i + e, c = u;
129
+ if (a.includes("\x1B")) for (; c = c.p;) {
130
+ let { t: e, o: r } = c, t = r.length, o = i, l = 0;
131
+ if (t) for (; ~(n = a.indexOf(r, l)); l = n + t) o += a.slice(l, n) + e;
132
+ a = o + a.slice(l);
133
+ }
134
+ return f + (a.includes("\n") ? a.replace(/(\r?\n)/g, s + "$1" + f) : a) + s;
135
+ };
136
+ return n(u, t(e)).p = {
137
+ t: r,
138
+ o,
139
+ p: e.p
140
+ }, u.open = f, u.close = s, u;
141
+ };
142
+ const d = new function t(s = globalThis) {
143
+ let d = "number" == typeof s ? s : ((r) => {
144
+ let t = r.process ?? {}, n = t.argv ?? [], o = t.env ?? {}, i = 0;
145
+ try {
146
+ i = ((r, t, n) => (e = t.TERM, {
147
+ "24bit": 3,
148
+ truecolor: 3,
149
+ ansi256: 2,
150
+ ansi: 1
151
+ }[t.COLORTERM] || (t.CI ? /,GITHUB/.test(n) ? 3 : 1 : (t.PM2_HOME || /edge/.test(t.NEXT_RUNTIME) || r.stdout?.isTTY) && "dumb" !== e ? "win32" === r.platform ? 3 : /-256/.test(e) ? 2 : 1 : 0)))(t, o, "," + l(o).join(","));
152
+ } catch (e) {
153
+ o = {};
154
+ }
155
+ let f, s = i || 1, u = "FORCE_COLOR", a = {
156
+ false: 0,
157
+ 0: 0,
158
+ 1: 1,
159
+ 2: 2,
160
+ 3: 3
161
+ }[o[u]] ?? s, c = -1;
162
+ for (f of n) /^--color=?(true|always)?$/.test(f) && (c = s), /^--(no-color|color=(false|never))$/.test(f) && (c = 0);
163
+ return r.window?.chrome ? 3 : u in o ? a : ~c ? c : o.NO_COLOR ? 0 : i;
164
+ })(s), b = {}, p = {
165
+ Ansis: t,
166
+ level: d,
167
+ isSupported: () => m,
168
+ strip: (e) => e.replace(/][^]*|[›][[()#;?]*(?:\d+(?:;\d*)*)?[\dA-ORZcf-nqry=><]/g, i),
169
+ extend(e) {
170
+ for (let r in e) {
171
+ let t = e[r];
172
+ "s" === (typeof t)[0] && (h(w(r), A(...u(t))), t = P(...u(t))), h(r, t);
173
+ }
174
+ return n(p, o({}, b));
175
+ }
176
+ }, h = (e, t) => {
177
+ b[e] = { get() {
178
+ return r(this, e, { value: t.call ? (...e) => g(this, t(...e)) : g(this, t) })[e];
179
+ } };
180
+ }, y = 1 ^ d, $ = d > 2, m = d > 0, O = (e, r) => m ? {
181
+ open: `[${e}m`,
182
+ close: r ? `[${r}m` : i
183
+ } : c, w = (e) => "bg" + e[0].toUpperCase() + e.slice(1), v = (e) => (r) => e(...u(r)), x = (e, r) => (t, n, o) => O(`${e}8;2;${t};${n};${o}`, r), _ = (e) => (r, t, n) => e(((e, r, t) => e ^ r | r ^ t ? 16 + 36 * f(e / 51) + 6 * f(r / 51) + f(t / 51) : 8 > e ? 16 : e > 248 ? 231 : f(24 * (e - 8) / 247) + 232)(r, t, n)), k = (e) => O(y ? "38;5;" + e : a(e), 39), R = (e) => O(y ? "48;5;" + e : a(e) + 10, 49), P = $ ? x(3, 39) : _(k), A = $ ? x(4, 49) : _(R), B = {
184
+ fg: k,
185
+ bg: R,
186
+ rgb: P,
187
+ bgRgb: A,
188
+ hex: v(P),
189
+ bgHex: v(A),
190
+ visible: c,
191
+ reset: O(0, i),
192
+ bold: O(1, 22),
193
+ dim: O(2, 22),
194
+ italic: O(3, 23),
195
+ underline: O(4, 24),
196
+ inverse: O(7, 27),
197
+ hidden: O(8, 28),
198
+ strikethrough: O(9, 29),
199
+ link: { f: (e, r = e) => m ? `]8;;${e}${r}]8;;` : r != e ? r + ` (​${e}​)` : e }
200
+ }, C = (e, r) => {
201
+ B[e] = O(r, 39), B[w(e)] = O(r + 10, 49);
202
+ };
203
+ return "gray,black,red,green,yellow,blue,magenta,cyan,white".split(",").map(((e, r) => {
204
+ r ? C(e + "Bright", 89 + r) : r = 61, C(e, 29 + r);
205
+ })), p.extend(B);
206
+ }();
207
+ module.exports = d.default = d;
208
+ })))(), 1)).default;
209
+ //#endregion
210
+ //#region ../../node_modules/.pnpm/obug@2.1.4/node_modules/obug/dist/core.js
11
211
  /**
12
212
  * Coerce `value`.
13
213
  */
@@ -140,8 +340,13 @@ function enabled(name) {
140
340
  return false;
141
341
  }
142
342
  //#endregion
143
- //#region ../../node_modules/.pnpm/obug@2.1.3/node_modules/obug/dist/node.js
144
- const colors = process.stderr.getColorDepth && process.stderr.getColorDepth() > 2 ? [
343
+ //#region ../../node_modules/.pnpm/obug@2.1.4/node_modules/obug/dist/node.js
344
+ let env = {};
345
+ try {
346
+ process.env.DEBUG;
347
+ env = process.env;
348
+ } catch (_unused) {}
349
+ const colors = process.stderr.getColorDepth && process.stderr.getColorDepth(env) > 2 ? [
145
350
  20,
146
351
  21,
147
352
  26,
@@ -226,9 +431,9 @@ const colors = process.stderr.getColorDepth && process.stderr.getColorDepth() >
226
431
  5,
227
432
  1
228
433
  ];
229
- const inspectOpts = Object.keys(process.env).filter((key) => /^debug_/i.test(key)).reduce((obj, key) => {
434
+ const inspectOpts = Object.keys(env).filter((key) => /^debug_/i.test(key)).reduce((obj, key) => {
230
435
  const prop = key.slice(6).toLowerCase().replace(/_([a-z])/g, (_, k) => k.toUpperCase());
231
- let value = process.env[key];
436
+ let value = env[key];
232
437
  const lowerCase = typeof value === "string" && value.toLowerCase();
233
438
  if (value === "null") value = null;
234
439
  else if (lowerCase === "yes" || lowerCase === "on" || lowerCase === "true" || lowerCase === "enabled") value = true;
@@ -292,8 +497,8 @@ function createDebug(namespace, options) {
292
497
  return createDebug$1(namespace, Object.assign(defaultOptions, { color }, options));
293
498
  }
294
499
  function save(namespaces) {
295
- if (namespaces) process.env.DEBUG = namespaces;
296
- else delete process.env.DEBUG;
500
+ if (namespaces) env.DEBUG = namespaces;
501
+ else delete env.DEBUG;
297
502
  }
298
503
  /**
299
504
  * Enables a debug mode by namespaces. This can include modes
@@ -303,7 +508,7 @@ function enable(namespaces) {
303
508
  save(namespaces);
304
509
  enable$1(namespaces);
305
510
  }
306
- enable$1(process.env.DEBUG || "");
511
+ enable$1(env.DEBUG || "");
307
512
  //#endregion
308
513
  //#region ../../node_modules/.pnpm/tinyexec@1.2.4/node_modules/tinyexec/dist/main.mjs
309
514
  const h = /^path$/i;
@@ -631,4 +836,4 @@ const R = (e, t, n) => {
631
836
  };
632
837
  const z = R;
633
838
  //#endregion
634
- export { namespaces as a, enable as i, z as n, createDebug as r, R as t };
839
+ export { __toESM as A, resolveComma as C, __commonJSMin as D, toArray as E, __exportAll as O, promiseWithResolvers as S, slash as T, debounce as _, namespaces as a, noop as b, blue as c, green as d, hex as f, yellow as g, underline as h, enable as i, __require as k, bold as l, rgb as m, z as n, bgRed as o, red as p, createDebug as r, bgYellow as s, R as t, dim as u, importWithError as v, resolveRegex as w, pkgExists as x, matchPattern as y };
@@ -1,5 +1,5 @@
1
1
  const require_rolldown_runtime = require("./npm_cjs_chunk_rolldown-runtime.cjs");
2
- //#region ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/constants.js
2
+ //#region ../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/constants.js
3
3
  var require_constants = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
4
4
  const WIN_SLASH = "\\\\/";
5
5
  const WIN_NO_SLASH = `[^${WIN_SLASH}]`;
@@ -168,7 +168,7 @@ var require_constants = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin((
168
168
  };
169
169
  }));
170
170
  //#endregion
171
- //#region ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/utils.js
171
+ //#region ../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/utils.js
172
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);
@@ -216,7 +216,7 @@ var require_utils = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exp
216
216
  };
217
217
  }));
218
218
  //#endregion
219
- //#region ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/scan.js
219
+ //#region ../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/scan.js
220
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();
@@ -503,7 +503,7 @@ var require_scan = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((expo
503
503
  module.exports = scan;
504
504
  }));
505
505
  //#endregion
506
- //#region ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/parse.js
506
+ //#region ../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/parse.js
507
507
  var require_parse = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
508
508
  const constants = require_constants();
509
509
  const utils = require_utils();
@@ -658,7 +658,10 @@ var require_parse = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exp
658
658
  }
659
659
  }
660
660
  };
661
- const getStarExtglobSequenceOutput = (pattern) => {
661
+ const buildCharClassStar = (chars) => {
662
+ return `${chars.length === 1 ? utils.escapeRegex(chars[0]) : `[${chars.map((ch) => utils.escapeRegex(ch)).join("")}]`}*`;
663
+ };
664
+ const getStarExtglobSequenceChars = (pattern) => {
662
665
  let index = 0;
663
666
  const chars = [];
664
667
  while (index < pattern.length) {
@@ -672,7 +675,7 @@ var require_parse = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exp
672
675
  index += match.end + 1;
673
676
  }
674
677
  if (chars.length < 1) return;
675
- return `${chars.length === 1 ? utils.escapeRegex(chars[0]) : `[${chars.map((ch) => utils.escapeRegex(ch)).join("")}]`}*`;
678
+ return chars;
676
679
  };
677
680
  const repeatedExtglobRecursion = (pattern) => {
678
681
  let depth = 0;
@@ -692,14 +695,28 @@ var require_parse = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exp
692
695
  if (branches.length > 1) {
693
696
  if (branches.some((branch) => branch === "") || branches.some((branch) => /^[*?]+$/.test(branch)) || hasRepeatedCharPrefixOverlap(branches)) return { risky: true };
694
697
  }
698
+ const safeChars = [];
699
+ let sawStarSequence = false;
700
+ let combinable = true;
695
701
  for (const branch of branches) {
696
- const safeOutput = getStarExtglobSequenceOutput(branch);
697
- if (safeOutput) return {
698
- risky: true,
699
- safeOutput
700
- };
702
+ const chars = getStarExtglobSequenceChars(branch);
703
+ if (chars) {
704
+ sawStarSequence = true;
705
+ safeChars.push(...chars);
706
+ continue;
707
+ }
708
+ const literal = normalizeSimpleBranch(branch);
709
+ if (literal && literal.length === 1) {
710
+ safeChars.push(literal);
711
+ continue;
712
+ }
713
+ combinable = false;
701
714
  if (repeatedExtglobRecursion(branch) > max) return { risky: true };
702
715
  }
716
+ if (sawStarSequence) return combinable ? {
717
+ risky: true,
718
+ safeOutput: buildCharClassStar([...new Set(safeChars)])
719
+ } : { risky: true };
703
720
  return { risky: false };
704
721
  };
705
722
  /**
@@ -1560,7 +1577,7 @@ var require_parse = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exp
1560
1577
  module.exports = parse;
1561
1578
  }));
1562
1579
  //#endregion
1563
- //#region ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/picomatch.js
1580
+ //#region ../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/picomatch.js
1564
1581
  var require_picomatch$1 = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
1565
1582
  const scan = require_scan();
1566
1583
  const parse = require_parse();
@@ -1581,6 +1598,18 @@ var require_picomatch$1 = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin
1581
1598
  * const isMatch = picomatch('*.!(*a)');
1582
1599
  * console.log(isMatch('a.a')); //=> false
1583
1600
  * console.log(isMatch('a.b')); //=> true
1601
+ *
1602
+ * // For environments without `node.js`, `picomatch/posix` provides you a dependency-free matcher, without automatic OS detection.
1603
+ * const picomatch = require('picomatch/posix');
1604
+ * // the same API, defaulting to posix paths
1605
+ * const isMatch = picomatch('a/*');
1606
+ * console.log(isMatch('a\\b')); //=> false
1607
+ * console.log(isMatch('a/b')); //=> true
1608
+ *
1609
+ * // you can still configure the matcher function to accept windows paths
1610
+ * const isMatch = picomatch('a/*', { options: windows });
1611
+ * console.log(isMatch('a\\b')); //=> true
1612
+ * console.log(isMatch('a/b')); //=> true
1584
1613
  * ```
1585
1614
  * @name picomatch
1586
1615
  * @param {String|Array} `globs` One or more glob patterns.
@@ -1699,8 +1728,8 @@ var require_picomatch$1 = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin
1699
1728
  * @return {Boolean}
1700
1729
  * @api public
1701
1730
  */
1702
- picomatch.matchBase = (input, glob, options) => {
1703
- return (glob instanceof RegExp ? glob : picomatch.makeRe(glob, options)).test(utils.basename(input));
1731
+ picomatch.matchBase = (input, glob, options, posix = options && options.windows) => {
1732
+ return (glob instanceof RegExp ? glob : picomatch.makeRe(glob, options)).test(utils.basename(input, { windows: posix }));
1704
1733
  };
1705
1734
  /**
1706
1735
  * Returns true if **any** of the given glob `patterns` match the specified `string`.
@@ -1860,7 +1889,7 @@ var require_picomatch$1 = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin
1860
1889
  module.exports = picomatch;
1861
1890
  }));
1862
1891
  //#endregion
1863
- //#region ../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/index.js
1892
+ //#region ../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/index.js
1864
1893
  var require_picomatch = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
1865
1894
  const pico = require_picomatch$1();
1866
1895
  const utils = require_utils();
@@ -1,8 +1,9 @@
1
- import { r as createDebug } from "./main-BlTcyuFi.js";
2
- import { createRequire } from "node:module";
1
+ import { r as createDebug } from "./main-BdzlWPt6.js";
2
+ import { t as requireTS } from "./load-tsc-BKULZsrs-BFmeD6Bu.js";
3
3
  import path from "node:path";
4
- const ts = createRequire(import.meta.url)("typescript");
4
+ //#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.27.12_@typescript+native-preview@7.0.0-dev.20260605.1_oxc-resolve_d94a4da753642eee691447f5bf042e95/node_modules/rolldown-plugin-dts/dist/resolver-cwLsPb2o.mjs
5
5
  const debug = createDebug("rolldown-plugin-dts:tsc-resolver");
6
+ const ts = requireTS();
6
7
  function tscResolve(id, importer, cwd, tsconfig, tsconfigRaw, reference) {
7
8
  const baseDir = tsconfig ? path.dirname(tsconfig) : cwd;
8
9
  const parsedConfig = ts.parseJsonConfigFileContent(tsconfigRaw, ts.sys, baseDir);
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { l as blue, n as version, p as hex, s as globalLogger, t as enableDebug } from "./debug-DLdR-9XB-DQZ6QLC0.js";
3
- import { t as R } from "./main-BlTcyuFi.js";
2
+ import { c as blue, f as hex, t as R } from "./main-BdzlWPt6.js";
3
+ import { c as globalLogger, n as version, t as enableDebug } from "./debug-BntVTkRq-BGIoAiTa.js";
4
4
  import module from "node:module";
5
5
  import process$1 from "node:process";
6
6
  import { VERSION } from "@voidzero-dev/vite-plus-core/rolldown";
@@ -622,7 +622,7 @@ var CAC = class extends EventTarget {
622
622
  */
623
623
  const cac = (name = "") => new CAC(name);
624
624
  //#endregion
625
- //#region ../../node_modules/.pnpm/tsdown@0.22.3_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.3_@tsdown+exe@0.22.3_@type_b3805a6765df28d505319221a7193e18/node_modules/tsdown/dist/run.mjs
625
+ //#region ../../node_modules/.pnpm/tsdown@0.22.13_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.13_@tsdown+exe@0.22.13_@t_f26a610f558bef85f3db2230cc877c56/node_modules/tsdown/dist/run.mjs
626
626
  const cli = cac("tsdown");
627
627
  cli.help().version(version);
628
628
  cli.command("[...files]", "Bundle files", {
@@ -631,7 +631,7 @@ cli.command("[...files]", "Bundle files", {
631
631
  }).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) => {
632
632
  globalLogger.level = flags.logLevel || "info";
633
633
  globalLogger.info(`${blue`tsdown v${version}`} powered by ${hex("#ff7e17")`rolldown v${VERSION}`}`);
634
- const { build } = await import("./build-B_nvJe4A-CvbtVBxy.js").then((n) => n.r).then((n) => n.r);
634
+ const { build } = await import("./build-oq13wECG-Bymq3jT5.js").then((n) => n.r).then((n) => n.r);
635
635
  if (input.length > 0) flags.entry = input;
636
636
  await build(flags);
637
637
  });
@@ -1,4 +1,4 @@
1
- import { d as __commonJSMin, p as __require } from "./general-Cp4NiJNK-CbyrS9q1.js";
1
+ import { D as __commonJSMin, k as __require } from "./main-BdzlWPt6.js";
2
2
  //#region ../../node_modules/.pnpm/lilconfig@3.1.3/node_modules/lilconfig/src/index.js
3
3
  var require_src$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4
4
  const path = __require("path");
@@ -345,7 +345,7 @@ var require_src$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
345
345
  };
346
346
  }));
347
347
  //#endregion
348
- //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.7.0_postcss@8.5.16_tsx@4.22.4_yaml@2.9.0/node_modules/postcss-load-config/src/req.js
348
+ //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.7.0_postcss@8.5.20_tsx@4.23.1_yaml@2.9.0/node_modules/postcss-load-config/src/req.js
349
349
  var require_req = /* @__PURE__ */ __commonJSMin(((exports, module) => {
350
350
  const { createRequire } = __require("node:module");
351
351
  const { pathToFileURL } = __require("node:url");
@@ -387,7 +387,7 @@ var require_req = /* @__PURE__ */ __commonJSMin(((exports, module) => {
387
387
  module.exports = req;
388
388
  }));
389
389
  //#endregion
390
- //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.7.0_postcss@8.5.16_tsx@4.22.4_yaml@2.9.0/node_modules/postcss-load-config/src/options.js
390
+ //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.7.0_postcss@8.5.20_tsx@4.23.1_yaml@2.9.0/node_modules/postcss-load-config/src/options.js
391
391
  var require_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
392
392
  const req = require_req();
393
393
  /**
@@ -421,7 +421,7 @@ var require_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
421
421
  module.exports = options;
422
422
  }));
423
423
  //#endregion
424
- //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.7.0_postcss@8.5.16_tsx@4.22.4_yaml@2.9.0/node_modules/postcss-load-config/src/plugins.js
424
+ //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.7.0_postcss@8.5.20_tsx@4.23.1_yaml@2.9.0/node_modules/postcss-load-config/src/plugins.js
425
425
  var require_plugins = /* @__PURE__ */ __commonJSMin(((exports, module) => {
426
426
  const req = require_req();
427
427
  /**
@@ -475,7 +475,7 @@ var require_plugins = /* @__PURE__ */ __commonJSMin(((exports, module) => {
475
475
  module.exports = plugins;
476
476
  }));
477
477
  //#endregion
478
- //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.7.0_postcss@8.5.16_tsx@4.22.4_yaml@2.9.0/node_modules/postcss-load-config/src/index.js
478
+ //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.7.0_postcss@8.5.20_tsx@4.23.1_yaml@2.9.0/node_modules/postcss-load-config/src/index.js
479
479
  var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
480
480
  const { resolve } = __require("node:path");
481
481
  const config = require_src$1();