@voidzero-dev/vite-plus-core 0.1.21-alpha.1 → 0.1.21-alpha.2

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 (38) hide show
  1. package/dist/rolldown/cli.mjs +6 -6
  2. package/dist/rolldown/config.mjs +2 -2
  3. package/dist/rolldown/experimental-index.mjs +8 -8
  4. package/dist/rolldown/experimental-runtime-types.d.ts +14 -5
  5. package/dist/rolldown/index.mjs +4 -4
  6. package/dist/rolldown/parallel-plugin-worker.mjs +2 -2
  7. package/dist/rolldown/parse-ast-index.mjs +1 -1
  8. package/dist/rolldown/plugins-index.mjs +2 -2
  9. package/dist/rolldown/shared/{bindingify-input-options-CwT4BXgL.mjs → bindingify-input-options-BFomq0CL.mjs} +4 -4
  10. package/dist/rolldown/shared/{constructors-C2EWPKW3.mjs → constructors-CqLClvFc.mjs} +1 -1
  11. package/dist/rolldown/shared/{error-DL-e8-oE.mjs → error-D4ASW9r2.mjs} +1 -1
  12. package/dist/rolldown/shared/{load-config-DJUKhe3_.mjs → load-config-nKXo7Yxg.mjs} +1 -1
  13. package/dist/rolldown/shared/{normalize-string-or-regex-CbQQ69gT.mjs → normalize-string-or-regex-WerlQkgD.mjs} +1 -1
  14. package/dist/rolldown/shared/{parse-BG8jtBbb.mjs → parse-C-X7ajBy.mjs} +2 -2
  15. package/dist/rolldown/shared/{resolve-tsconfig-CfYpGzid.mjs → resolve-tsconfig-CxJB93yb.mjs} +2 -2
  16. package/dist/rolldown/shared/{rolldown-DLFt25hZ.mjs → rolldown-DNviFDiu.mjs} +1 -1
  17. package/dist/rolldown/shared/{rolldown-build-DrXmg2RO.mjs → rolldown-build-DdPwBoAu.mjs} +82 -144
  18. package/dist/rolldown/shared/{watch-MZrSsVh8.mjs → watch-BWGrirtv.mjs} +4 -4
  19. package/dist/rolldown/utils-index.d.mts +1 -1
  20. package/dist/rolldown/utils-index.mjs +5 -5
  21. package/dist/tsdown/{build-CgGnBlCD-Cyywno42.js → build-CgGnBlCD-CmgnJdWt.js} +58 -71
  22. package/dist/tsdown/{debug-CLlnG64L-Dn9UYJ-T.js → debug-CLlnG64L-Bga2f95T.js} +2 -2
  23. package/dist/tsdown/{detect-DN3DXXYt-VBvyr4oU.js → detect-DN3DXXYt-CQvReX03.js} +1 -1
  24. package/dist/tsdown/{dist-CaWgsVeS.js → dist-DJhmrSLH.js} +12 -12
  25. package/dist/tsdown/{dist-CbhZqEsp.js → dist-D_AJtdxQ.js} +3 -3
  26. package/dist/tsdown/{dist-DL4hnQY2.js → dist-dEREUhS4.js} +5 -9
  27. package/dist/tsdown/{filename-DQnUJlio-DHPB7cQg.js → filename-DQnUJlio-CkHYanGh.js} +1 -1
  28. package/dist/tsdown/index-types.d.ts +5 -5
  29. package/dist/tsdown/index.js +4 -4
  30. package/dist/tsdown/{main-DZy5NlsL.js → main-BQC8aVfq.js} +90 -97
  31. package/dist/tsdown/run.js +5 -5
  32. package/dist/tsdown/{tsc-Cm8giMT9.js → tsc-ILrjzsA_.js} +2 -2
  33. package/dist/tsdown/{tsc-context-B1O6kHlu.js → tsc-context-BBIdwth6.js} +1 -1
  34. package/dist/vite/client/client.mjs +4 -4
  35. package/dist/vite/node/chunks/node.js +0 -3
  36. package/dist/vite/node/index.d.ts +6 -2
  37. package/package.json +9 -9
  38. /package/dist/rolldown/shared/{binding-BeU_1iEk.mjs → binding-Cf9ARhL0.mjs} +0 -0
@@ -3,10 +3,10 @@ import { createRequire } from "node:module";
3
3
  import process$1, { cwd } from "node:process";
4
4
  import readline from "node:readline";
5
5
  import { spawn } from "node:child_process";
6
- import { delimiter, dirname, normalize, resolve } from "node:path";
6
+ import { delimiter, dirname, resolve } from "node:path";
7
7
  import { pipeline } from "node:stream/promises";
8
8
  import { PassThrough } from "node:stream";
9
- //#region ../../node_modules/.pnpm/tsdown@0.21.10_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.10_@tsdown+exe@0.21.10_@t_43eb91aec0ed7105f0ebbe65dd74eb9a/node_modules/tsdown/dist/general-D3muxt2f.mjs
9
+ //#region ../../node_modules/.pnpm/tsdown@0.21.10_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.10_@tsdown+exe@0.21.10_@t_1dda983e987248a6524e731dd43b2076/node_modules/tsdown/dist/general-D3muxt2f.mjs
10
10
  const picomatch = createRequire(import.meta.url)("picomatch");
11
11
  function toArray(val, defaultValue) {
12
12
  if (Array.isArray(val)) return val;
@@ -170,7 +170,7 @@ const { Ansis, fg, bg, rgb, bgRgb, hex, bgHex, reset, inverse, hidden, visible,
170
170
  module.exports = w, w.default = w;
171
171
  })))(), 1)).default;
172
172
  //#endregion
173
- //#region ../../node_modules/.pnpm/tsdown@0.21.10_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.10_@tsdown+exe@0.21.10_@t_43eb91aec0ed7105f0ebbe65dd74eb9a/node_modules/tsdown/dist/logger-uV8l1UFa.mjs
173
+ //#region ../../node_modules/.pnpm/tsdown@0.21.10_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.10_@tsdown+exe@0.21.10_@t_1dda983e987248a6524e731dd43b2076/node_modules/tsdown/dist/logger-uV8l1UFa.mjs
174
174
  const LogLevels = {
175
175
  silent: 0,
176
176
  error: 1,
@@ -294,56 +294,56 @@ function hue2rgb(p, q, t) {
294
294
  return p;
295
295
  }
296
296
  //#endregion
297
- //#region ../../node_modules/.pnpm/tsdown@0.21.10_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.10_@tsdown+exe@0.21.10_@t_43eb91aec0ed7105f0ebbe65dd74eb9a/node_modules/tsdown/dist/package-GYPjxY9U.mjs
297
+ //#region ../../node_modules/.pnpm/tsdown@0.21.10_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.10_@tsdown+exe@0.21.10_@t_1dda983e987248a6524e731dd43b2076/node_modules/tsdown/dist/package-GYPjxY9U.mjs
298
298
  var version = "0.21.10";
299
299
  //#endregion
300
- //#region ../../node_modules/.pnpm/tinyexec@1.1.1/node_modules/tinyexec/dist/main.mjs
301
- var d = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports);
302
- var f = /* @__PURE__ */ createRequire(import.meta.url);
303
- const p = /^path$/i;
304
- const m = {
300
+ //#region ../../node_modules/.pnpm/tinyexec@1.1.2/node_modules/tinyexec/dist/main.mjs
301
+ var u = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports);
302
+ var d = /* @__PURE__ */ createRequire(import.meta.url);
303
+ const f = /^path$/i;
304
+ const p = {
305
305
  key: "PATH",
306
306
  value: ""
307
307
  };
308
- function h(e) {
308
+ function m(e) {
309
309
  for (const t in e) {
310
- if (!Object.prototype.hasOwnProperty.call(e, t) || !p.test(t)) continue;
310
+ if (!Object.prototype.hasOwnProperty.call(e, t) || !f.test(t)) continue;
311
311
  const n = e[t];
312
- if (!n) return m;
312
+ if (!n) return p;
313
313
  return {
314
314
  key: t,
315
315
  value: n
316
316
  };
317
317
  }
318
- return m;
318
+ return p;
319
319
  }
320
- function g(e, t) {
320
+ function h(e, t) {
321
321
  const n = t.value.split(delimiter);
322
- const a = [];
322
+ const r = [];
323
323
  let s = e;
324
324
  let c;
325
325
  do {
326
- a.push(resolve(s, "node_modules", ".bin"));
326
+ r.push(resolve(s, "node_modules", ".bin"));
327
327
  c = s;
328
328
  s = dirname(s);
329
329
  } while (s !== c);
330
- a.push(dirname(process.execPath));
331
- const l = a.concat(n).join(delimiter);
330
+ r.push(dirname(process.execPath));
331
+ const l = r.concat(n).join(delimiter);
332
332
  return {
333
333
  key: t.key,
334
334
  value: l
335
335
  };
336
336
  }
337
- function _(e, t) {
337
+ function g(e, t) {
338
338
  const n = {
339
339
  ...process.env,
340
340
  ...t
341
341
  };
342
- const r = g(e, h(n));
342
+ const r = h(e, m(n));
343
343
  n[r.key] = r.value;
344
344
  return n;
345
345
  }
346
- const v = (e) => {
346
+ const _ = (e) => {
347
347
  let t = e.length;
348
348
  const n = new PassThrough();
349
349
  const r = () => {
@@ -352,10 +352,10 @@ const v = (e) => {
352
352
  for (const t of e) pipeline(t, n, { end: false }).then(r).catch(r);
353
353
  return n;
354
354
  };
355
- var y = /* @__PURE__ */ d(((e, t) => {
355
+ var v = /* @__PURE__ */ u(((e, t) => {
356
356
  t.exports = a;
357
357
  a.sync = o;
358
- var n = f("fs");
358
+ var n = d("fs");
359
359
  function r(e, t) {
360
360
  var n = t.pathExt !== void 0 ? t.pathExt : process.env.PATHEXT;
361
361
  if (!n) return true;
@@ -380,10 +380,10 @@ var y = /* @__PURE__ */ d(((e, t) => {
380
380
  return i(n.statSync(e), e, t);
381
381
  }
382
382
  }));
383
- var b = /* @__PURE__ */ d(((e, t) => {
383
+ var y = /* @__PURE__ */ u(((e, t) => {
384
384
  t.exports = r;
385
385
  r.sync = i;
386
- var n = f("fs");
386
+ var n = d("fs");
387
387
  function r(e, t, r) {
388
388
  n.stat(e, function(e, n) {
389
389
  r(e, e ? false : a(n, t));
@@ -408,11 +408,11 @@ var b = /* @__PURE__ */ d(((e, t) => {
408
408
  return n & l || n & c && i === o || n & s && r === a || n & u && a === 0;
409
409
  }
410
410
  }));
411
- var x = /* @__PURE__ */ d(((e, t) => {
412
- f("fs");
411
+ var b = /* @__PURE__ */ u(((e, t) => {
412
+ d("fs");
413
413
  var n;
414
- if (process.platform === "win32" || global.TESTING_WINDOWS) n = y();
415
- else n = b();
414
+ if (process.platform === "win32" || global.TESTING_WINDOWS) n = v();
415
+ else n = y();
416
416
  t.exports = r;
417
417
  r.sync = i;
418
418
  function r(e, t, i) {
@@ -448,11 +448,11 @@ var x = /* @__PURE__ */ d(((e, t) => {
448
448
  }
449
449
  }
450
450
  }));
451
- var S = /* @__PURE__ */ d(((e, t) => {
451
+ var x = /* @__PURE__ */ u(((e, t) => {
452
452
  const n = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
453
- const r = f("path");
453
+ const r = d("path");
454
454
  const i = n ? ";" : ":";
455
- const a = x();
455
+ const a = b();
456
456
  const o = (e) => Object.assign(/* @__PURE__ */ new Error(`not found: ${e}`), { code: "ENOENT" });
457
457
  const s = (e, t) => {
458
458
  const r = t.colon || i;
@@ -518,7 +518,7 @@ var S = /* @__PURE__ */ d(((e, t) => {
518
518
  t.exports = c;
519
519
  c.sync = l;
520
520
  }));
521
- var C = /* @__PURE__ */ d(((e, t) => {
521
+ var S = /* @__PURE__ */ u(((e, t) => {
522
522
  const n = (e = {}) => {
523
523
  const t = e.env || process.env;
524
524
  if ((e.platform || process.platform) !== "win32") return "PATH";
@@ -527,10 +527,10 @@ var C = /* @__PURE__ */ d(((e, t) => {
527
527
  t.exports = n;
528
528
  t.exports.default = n;
529
529
  }));
530
- var w = /* @__PURE__ */ d(((e, t) => {
531
- const n = f("path");
532
- const r = S();
533
- const i = C();
530
+ var C = /* @__PURE__ */ u(((e, t) => {
531
+ const n = d("path");
532
+ const r = x();
533
+ const i = S();
534
534
  function a(e, t) {
535
535
  const a = e.options.env || process.env;
536
536
  const o = process.cwd();
@@ -556,7 +556,7 @@ var w = /* @__PURE__ */ d(((e, t) => {
556
556
  }
557
557
  t.exports = o;
558
558
  }));
559
- var T = /* @__PURE__ */ d(((e, t) => {
559
+ var w = /* @__PURE__ */ u(((e, t) => {
560
560
  const n = /([()\][%!^"`<>&|;, *?])/g;
561
561
  function r(e) {
562
562
  e = e.replace(n, "^$1");
@@ -574,11 +574,11 @@ var T = /* @__PURE__ */ d(((e, t) => {
574
574
  t.exports.command = r;
575
575
  t.exports.argument = i;
576
576
  }));
577
- var E = /* @__PURE__ */ d(((e, t) => {
577
+ var T = /* @__PURE__ */ u(((e, t) => {
578
578
  t.exports = /^#!(.*)/;
579
579
  }));
580
- var D = /* @__PURE__ */ d(((e, t) => {
581
- const n = E();
580
+ var E = /* @__PURE__ */ u(((e, t) => {
581
+ const n = T();
582
582
  t.exports = (e = "") => {
583
583
  const t = e.match(n);
584
584
  if (!t) return null;
@@ -588,9 +588,9 @@ var D = /* @__PURE__ */ d(((e, t) => {
588
588
  return i ? `${a} ${i}` : a;
589
589
  };
590
590
  }));
591
- var O = /* @__PURE__ */ d(((e, t) => {
592
- const n = f("fs");
593
- const r = D();
591
+ var D = /* @__PURE__ */ u(((e, t) => {
592
+ const n = d("fs");
593
+ const r = E();
594
594
  function i(e) {
595
595
  const t = 150;
596
596
  const i = Buffer.alloc(t);
@@ -604,11 +604,11 @@ var O = /* @__PURE__ */ d(((e, t) => {
604
604
  }
605
605
  t.exports = i;
606
606
  }));
607
- var k = /* @__PURE__ */ d(((e, t) => {
608
- const n = f("path");
609
- const r = w();
610
- const i = T();
611
- const a = O();
607
+ var O = /* @__PURE__ */ u(((e, t) => {
608
+ const n = d("path");
609
+ const r = C();
610
+ const i = w();
611
+ const a = D();
612
612
  const o = process.platform === "win32";
613
613
  const s = /\.(?:com|exe)$/i;
614
614
  const c = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
@@ -642,7 +642,7 @@ var k = /* @__PURE__ */ d(((e, t) => {
642
642
  }
643
643
  return e;
644
644
  }
645
- function d(e, t, n) {
645
+ function f(e, t, n) {
646
646
  if (t && !Array.isArray(t)) {
647
647
  n = t;
648
648
  t = null;
@@ -661,9 +661,9 @@ var k = /* @__PURE__ */ d(((e, t) => {
661
661
  };
662
662
  return n.shell ? r : u(r);
663
663
  }
664
- t.exports = d;
664
+ t.exports = f;
665
665
  }));
666
- var A = /* @__PURE__ */ d(((e, t) => {
666
+ var k = /* @__PURE__ */ u(((e, t) => {
667
667
  const n = process.platform === "win32";
668
668
  function r(e, t) {
669
669
  return Object.assign(/* @__PURE__ */ new Error(`${t} ${e.command} ENOENT`), {
@@ -700,10 +700,10 @@ var A = /* @__PURE__ */ d(((e, t) => {
700
700
  notFoundError: r
701
701
  };
702
702
  }));
703
- var M = (/* @__PURE__ */ d(((e, t) => {
704
- const n = f("child_process");
705
- const r = k();
706
- const i = A();
703
+ var j = (/* @__PURE__ */ u(((e, t) => {
704
+ const n = d("child_process");
705
+ const r = O();
706
+ const i = k();
707
707
  function a(e, t, a) {
708
708
  const o = r(e, t, a);
709
709
  const s = n.spawn(o.command, o.args, o.options);
@@ -722,7 +722,7 @@ var M = (/* @__PURE__ */ d(((e, t) => {
722
722
  t.exports._parse = r;
723
723
  t.exports._enoent = i;
724
724
  })))();
725
- var N = class extends Error {
725
+ var M = class extends Error {
726
726
  get exitCode() {
727
727
  if (this.result.exitCode !== null) return this.result.exitCode;
728
728
  }
@@ -732,18 +732,12 @@ var N = class extends Error {
732
732
  this.output = t;
733
733
  }
734
734
  };
735
- const F = {
735
+ const P = {
736
736
  timeout: void 0,
737
737
  persist: false
738
738
  };
739
- const L = { windowsHide: true };
740
- function R(e, t) {
741
- return {
742
- command: normalize(e),
743
- args: t ?? []
744
- };
745
- }
746
- function z(e) {
739
+ const I = { windowsHide: true };
740
+ function L(e) {
747
741
  const t = new AbortController();
748
742
  for (const n of e) {
749
743
  if (n.aborted) {
@@ -757,14 +751,14 @@ function z(e) {
757
751
  }
758
752
  return t.signal;
759
753
  }
760
- async function B(e) {
754
+ async function R(e) {
761
755
  let t = "";
762
756
  try {
763
757
  for await (const n of e) t += n.toString();
764
758
  } catch {}
765
759
  return t;
766
760
  }
767
- var V = class {
761
+ var z = class {
768
762
  _process;
769
763
  _aborted = false;
770
764
  _options;
@@ -784,7 +778,7 @@ var V = class {
784
778
  }
785
779
  constructor(e, t, n) {
786
780
  this._options = {
787
- ...F,
781
+ ...P,
788
782
  ...n
789
783
  };
790
784
  this._command = e;
@@ -803,7 +797,7 @@ var V = class {
803
797
  return this._process?.killed === true;
804
798
  }
805
799
  pipe(e, t, n) {
806
- return W(e, t, {
800
+ return H(e, t, {
807
801
  ...n,
808
802
  stdin: this
809
803
  });
@@ -814,18 +808,18 @@ var V = class {
814
808
  const t = [];
815
809
  if (this._streamErr) t.push(this._streamErr);
816
810
  if (this._streamOut) t.push(this._streamOut);
817
- const n = v(t);
811
+ const n = _(t);
818
812
  const r = readline.createInterface({ input: n });
819
813
  for await (const e of r) yield e.toString();
820
814
  await this._processClosed;
821
815
  e.removeAllListeners();
822
816
  if (this._thrownError) throw this._thrownError;
823
- if (this._options?.throwOnError && this.exitCode !== 0 && this.exitCode !== void 0) throw new N(this);
817
+ if (this._options?.throwOnError && this.exitCode !== 0 && this.exitCode !== void 0) throw new M(this);
824
818
  }
825
819
  async _waitForOutput() {
826
820
  const e = this._process;
827
821
  if (!e) throw new Error("No process was started");
828
- const [t, n] = await Promise.all([this._streamOut ? B(this._streamOut) : "", this._streamErr ? B(this._streamErr) : ""]);
822
+ const [t, n] = await Promise.all([this._streamOut ? R(this._streamOut) : "", this._streamErr ? R(this._streamErr) : ""]);
829
823
  await this._processClosed;
830
824
  const { stdin: r } = this._options;
831
825
  if (r && typeof r !== "string") await r;
@@ -836,7 +830,7 @@ var V = class {
836
830
  stdout: t,
837
831
  exitCode: this.exitCode
838
832
  };
839
- if (this._options.throwOnError && this.exitCode !== 0 && this.exitCode !== void 0) throw new N(this, i);
833
+ if (this._options.throwOnError && this.exitCode !== 0 && this.exitCode !== void 0) throw new M(this, i);
840
834
  return i;
841
835
  }
842
836
  then(e, t) {
@@ -847,29 +841,28 @@ var V = class {
847
841
  spawn() {
848
842
  const e = cwd();
849
843
  const n = this._options;
850
- const r = {
851
- ...L,
844
+ const i = {
845
+ ...I,
852
846
  ...n.nodeOptions
853
847
  };
854
- const i = [];
848
+ const a = [];
855
849
  this._resetState();
856
- if (n.timeout !== void 0) i.push(AbortSignal.timeout(n.timeout));
857
- if (n.signal !== void 0) i.push(n.signal);
858
- if (n.persist === true) r.detached = true;
859
- if (i.length > 0) r.signal = z(i);
860
- r.env = _(e, r.env);
861
- const { command: a, args: o } = R(this._command, this._args);
862
- const c = (0, M._parse)(a, o, r);
863
- const l = spawn(c.command, c.args, c.options);
864
- if (l.stderr) this._streamErr = l.stderr;
865
- if (l.stdout) this._streamOut = l.stdout;
866
- this._process = l;
867
- l.once("error", this._onError);
868
- l.once("close", this._onClose);
869
- if (l.stdin) {
850
+ if (n.timeout !== void 0) a.push(AbortSignal.timeout(n.timeout));
851
+ if (n.signal !== void 0) a.push(n.signal);
852
+ if (n.persist === true) i.detached = true;
853
+ if (a.length > 0) i.signal = L(a);
854
+ i.env = g(e, i.env);
855
+ const o = (0, j._parse)(this._command, this._args, i);
856
+ const s = spawn(o.command, o.args, o.options);
857
+ if (s.stderr) this._streamErr = s.stderr;
858
+ if (s.stdout) this._streamOut = s.stdout;
859
+ this._process = s;
860
+ s.once("error", this._onError);
861
+ s.once("close", this._onClose);
862
+ if (s.stdin) {
870
863
  const { stdin: e } = n;
871
- if (typeof e === "string") l.stdin.end(e);
872
- else e?.process?.stdout?.pipe(l.stdin);
864
+ if (typeof e === "string") s.stdin.end(e);
865
+ else e?.process?.stdout?.pipe(s.stdin);
873
866
  }
874
867
  }
875
868
  _resetState() {
@@ -890,11 +883,11 @@ var V = class {
890
883
  if (this._resolveClose) this._resolveClose();
891
884
  };
892
885
  };
893
- const U = (e, t, n) => {
894
- const r = new V(e, t, n);
886
+ const V = (e, t, n) => {
887
+ const r = new z(e, t, n);
895
888
  r.spawn();
896
889
  return r;
897
890
  };
898
- const W = U;
891
+ const H = V;
899
892
  //#endregion
900
- export { promiseWithResolvers as C, toArray as D, slash as E, pkgExists as S, resolveRegex as T, yellow as _, createLogger as a, matchPattern as b, globalLogger as c, bold as d, dim as f, underline as g, red as h, LogLevels as i, prettyFormat as l, hex as m, W as n, generateColor as o, green as p, version as r, getNameLabel as s, U as t, blue as u, debounce as v, resolveComma as w, noop as x, importWithError as y };
893
+ export { promiseWithResolvers as C, toArray as D, slash as E, pkgExists as S, resolveRegex as T, yellow as _, createLogger as a, matchPattern as b, globalLogger as c, bold as d, dim as f, underline as g, red as h, LogLevels as i, prettyFormat as l, hex as m, V as n, generateColor as o, green as p, version as r, getNameLabel as s, H as t, blue as u, debounce as v, resolveComma as w, noop as x, importWithError as y };
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { _ as yellow, c as globalLogger, m as hex, r as version, t as U, u as blue } from "./main-DZy5NlsL.js";
3
- import { t as enableDebug } from "./debug-CLlnG64L-Dn9UYJ-T.js";
2
+ import { _ as yellow, c as globalLogger, m as hex, n as V, r as version, u as blue } from "./main-BQC8aVfq.js";
3
+ import { t as enableDebug } from "./debug-CLlnG64L-Bga2f95T.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,13 +630,13 @@ 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(`${blue`tsdown v${version}`} powered by ${hex("#ff7e17")`rolldown v${VERSION}`}`);
633
- const { build } = await import("./build-CgGnBlCD-Cyywno42.js").then((n) => n.r).then((n) => n.r);
633
+ const { build } = await import("./build-CgGnBlCD-CmgnJdWt.js").then((n) => n.r).then((n) => n.r);
634
634
  if (input.length > 0) flags.entry = input;
635
635
  await build(flags);
636
636
  });
637
637
  cli.command("create", "[deprecated] Create a tsdown project. Use \"npx create-tsdown\" instead.", { allowUnknownOptions: true }).action(async () => {
638
638
  globalLogger.warn(`"tsdown create" is deprecated. Please use "npx create-tsdown" instead.`);
639
- const { exitCode } = await U("npx", [
639
+ const { exitCode } = await V("npx", [
640
640
  "-y",
641
641
  "create-tsdown@latest",
642
642
  ...process$1.argv.slice(3)
@@ -645,7 +645,7 @@ cli.command("create", "[deprecated] Create a tsdown project. Use \"npx create-ts
645
645
  });
646
646
  cli.command("migrate", "[deprecated] Migrate from tsup to tsdown. Use \"npx tsdown-migrate\" instead.", { allowUnknownOptions: true }).action(async () => {
647
647
  globalLogger.warn(`"tsdown migrate" is deprecated. Please use "npx tsdown-migrate" instead.`);
648
- const { exitCode } = await U("npx", [
648
+ const { exitCode } = await V("npx", [
649
649
  "-y",
650
650
  "tsdown-migrate@latest",
651
651
  ...process$1.argv.slice(3)
@@ -1,6 +1,6 @@
1
1
  import { t as createDebug } from "./node-B3Gdtau1.js";
2
- import { n as RE_DTS, r as RE_DTS_MAP } from "./filename-DQnUJlio-DHPB7cQg.js";
3
- import { n as globalContext } from "./tsc-context-B1O6kHlu.js";
2
+ import { n as RE_DTS, r as RE_DTS_MAP } from "./filename-DQnUJlio-CkHYanGh.js";
3
+ import { n as globalContext } from "./tsc-context-BBIdwth6.js";
4
4
  import { createRequire } from "node:module";
5
5
  import path from "node:path";
6
6
  import { pathToFileURL } from "node:url";
@@ -1,6 +1,6 @@
1
1
  import { t as createDebug } from "./node-B3Gdtau1.js";
2
2
  import path from "node:path";
3
- //#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.23.2_@typescript+native-preview@7.0.0-dev.20260122.2_oxc-resolver_cb3700e83d33e7fb90f7550267bb8c2d/node_modules/rolldown-plugin-dts/dist/tsc-context.mjs
3
+ //#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.23.2_@typescript+native-preview@7.0.0-dev.20260122.2_oxc-resolver_766394248e9ecd4faca560651c4c5680/node_modules/rolldown-plugin-dts/dist/tsc-context.mjs
4
4
  const debug = createDebug("rolldown-plugin-dts:tsc-context");
5
5
  function createContext() {
6
6
  return {
@@ -8,7 +8,7 @@ let nanoid = (size = 21) => {
8
8
  return id;
9
9
  };
10
10
  //#endregion
11
- //#region \0@oxc-project+runtime@0.127.0/helpers/typeof.js
11
+ //#region \0@oxc-project+runtime@0.128.0/helpers/typeof.js
12
12
  function _typeof(o) {
13
13
  "@babel/helpers - typeof";
14
14
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -18,7 +18,7 @@ function _typeof(o) {
18
18
  }, _typeof(o);
19
19
  }
20
20
  //#endregion
21
- //#region \0@oxc-project+runtime@0.127.0/helpers/toPrimitive.js
21
+ //#region \0@oxc-project+runtime@0.128.0/helpers/toPrimitive.js
22
22
  function toPrimitive(t, r) {
23
23
  if ("object" != _typeof(t) || !t) return t;
24
24
  var e = t[Symbol.toPrimitive];
@@ -30,13 +30,13 @@ function toPrimitive(t, r) {
30
30
  return ("string" === r ? String : Number)(t);
31
31
  }
32
32
  //#endregion
33
- //#region \0@oxc-project+runtime@0.127.0/helpers/toPropertyKey.js
33
+ //#region \0@oxc-project+runtime@0.128.0/helpers/toPropertyKey.js
34
34
  function toPropertyKey(t) {
35
35
  var i = toPrimitive(t, "string");
36
36
  return "symbol" == _typeof(i) ? i : i + "";
37
37
  }
38
38
  //#endregion
39
- //#region \0@oxc-project+runtime@0.127.0/helpers/defineProperty.js
39
+ //#region \0@oxc-project+runtime@0.128.0/helpers/defineProperty.js
40
40
  function _defineProperty(e, r, t) {
41
41
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
42
42
  value: t,
@@ -2623,8 +2623,6 @@ function addSegmentInternal(skipable, map, genLine, genColumn, source, sourceLin
2623
2623
  if (skipable && skipSourceless(line, index)) return;
2624
2624
  return insert(line, index, [genColumn]);
2625
2625
  }
2626
- assert$2(sourceLine);
2627
- assert$2(sourceColumn);
2628
2626
  const sourcesIndex = put(sources, source);
2629
2627
  const namesIndex = name ? put(names, name) : NO_NAME;
2630
2628
  if (sourcesIndex === sourcesContent.length) sourcesContent[sourcesIndex] = content != null ? content : null;
@@ -2642,7 +2640,6 @@ function addSegmentInternal(skipable, map, genLine, genColumn, source, sourceLin
2642
2640
  sourceColumn
2643
2641
  ]);
2644
2642
  }
2645
- function assert$2(_val) {}
2646
2643
  function getIndex(arr, index) {
2647
2644
  for (let i = arr.length; i <= index; i++) arr[i] = [];
2648
2645
  return arr[index];
@@ -31,7 +31,7 @@ import { GeneralImportGlobOptions, ImportGlobFunction, ImportGlobOptions, KnownA
31
31
 
32
32
  //#region \0rolldown/runtime.js
33
33
  //#endregion
34
- //#region ../../../node_modules/.pnpm/@vitejs+devtools@0.1.15_@pnpm+logger@1001.0.1_typescript@6.0.2_vite@packages+core/node_modules/@vitejs/devtools/dist/cli-commands.d.ts
34
+ //#region ../../../node_modules/.pnpm/@vitejs+devtools@0.1.18_@pnpm+logger@1001.0.1_typescript@6.0.2_vite@packages+core/node_modules/@vitejs/devtools/dist/cli-commands.d.ts
35
35
  //#region src/node/cli-commands.d.ts
36
36
  interface StartOptions {
37
37
  root?: string;
@@ -41,10 +41,14 @@ interface StartOptions {
41
41
  open?: boolean;
42
42
  }
43
43
  //#endregion
44
- //#region ../../../node_modules/.pnpm/@vitejs+devtools@0.1.15_@pnpm+logger@1001.0.1_typescript@6.0.2_vite@packages+core/node_modules/@vitejs/devtools/dist/config.d.ts
44
+ //#region ../../../node_modules/.pnpm/@vitejs+devtools@0.1.18_@pnpm+logger@1001.0.1_typescript@6.0.2_vite@packages+core/node_modules/@vitejs/devtools/dist/config.d.ts
45
45
  //#region src/node/config.d.ts
46
46
  interface DevToolsConfig extends Partial<StartOptions> {
47
47
  enabled: boolean;
48
+ /**
49
+ * Vite environments to enable DevTools for. Defaults to all environments.
50
+ */
51
+ environments?: string[];
48
52
  /**
49
53
  * Disable client authentication.
50
54
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voidzero-dev/vite-plus-core",
3
- "version": "0.1.21-alpha.1",
3
+ "version": "0.1.21-alpha.2",
4
4
  "description": "The Unified Toolchain for the Web",
5
5
  "homepage": "https://viteplus.dev/guide",
6
6
  "bugs": {
@@ -100,8 +100,8 @@
100
100
  "./types/internal/*": null
101
101
  },
102
102
  "dependencies": {
103
- "@oxc-project/runtime": "=0.127.0",
104
- "@oxc-project/types": "=0.127.0",
103
+ "@oxc-project/runtime": "=0.129.0",
104
+ "@oxc-project/types": "=0.129.0",
105
105
  "lightningcss": "^1.30.2",
106
106
  "postcss": "^8.5.6"
107
107
  },
@@ -112,12 +112,12 @@
112
112
  "@babel/types": "^7.28.5",
113
113
  "@oxc-node/cli": "^0.1.0",
114
114
  "@oxc-node/core": "^0.1.0",
115
- "@vitejs/devtools": "^0.1.15",
115
+ "@vitejs/devtools": "^0.1.18",
116
116
  "es-module-lexer": "^1.7.0",
117
117
  "hookable": "^6.0.1",
118
118
  "magic-string": "^0.30.21",
119
- "oxc-parser": "=0.127.0",
120
- "oxfmt": "=0.46.0",
119
+ "oxc-parser": "=0.129.0",
120
+ "oxfmt": "=0.48.0",
121
121
  "picocolors": "^1.1.1",
122
122
  "picomatch": "^4.0.3",
123
123
  "pkg-types": "^2.3.0",
@@ -128,8 +128,8 @@
128
128
  "tinyglobby": "^0.2.15",
129
129
  "tree-kill": "^1.2.2",
130
130
  "tsdown": "^0.21.10",
131
- "rolldown": "1.0.0-rc.17",
132
- "vite": "npm:@voidzero-dev/vite-plus-core@0.1.21-alpha.1"
131
+ "vite": "npm:@voidzero-dev/vite-plus-core@0.1.21-alpha.2",
132
+ "rolldown": "1.0.0-rc.18"
133
133
  },
134
134
  "peerDependencies": {
135
135
  "@arethetypeswrong/core": "^0.18.1",
@@ -215,7 +215,7 @@
215
215
  },
216
216
  "bundledVersions": {
217
217
  "vite": "8.0.10",
218
- "rolldown": "1.0.0-rc.17",
218
+ "rolldown": "1.0.0-rc.18",
219
219
  "tsdown": "0.21.10"
220
220
  },
221
221
  "scripts": {