@rollipop/rolldown 1.0.20 → 1.0.22

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 (39) hide show
  1. package/dist/cli.mjs +11 -8
  2. package/dist/config.d.mts +15 -2
  3. package/dist/config.mjs +2 -2
  4. package/dist/experimental-index.d.mts +8 -8
  5. package/dist/experimental-index.mjs +16 -13
  6. package/dist/filter-index.d.mts +1 -1
  7. package/dist/filter-index.mjs +2 -2
  8. package/dist/get-log-filter.d.mts +1 -1
  9. package/dist/get-log-filter.mjs +2 -2
  10. package/dist/index.d.mts +3 -3
  11. package/dist/index.mjs +11 -5
  12. package/dist/parallel-plugin-worker.mjs +5 -4
  13. package/dist/parallel-plugin.d.mts +1 -1
  14. package/dist/parse-ast-index.d.mts +1 -1
  15. package/dist/parse-ast-index.mjs +2 -2
  16. package/dist/plugins-index.d.mts +3 -3
  17. package/dist/plugins-index.mjs +2 -2
  18. package/dist/shared/{binding-DamCAbY6.mjs → binding-9kL0gFYL.mjs} +28 -27
  19. package/dist/shared/{binding-DE7ERejD.d.mts → binding-CckXxUel.d.mts} +53 -4
  20. package/dist/shared/{bindingify-input-options-SGSGV3Kn.mjs → bindingify-input-options-3NuL6LmT.mjs} +35 -21
  21. package/dist/shared/{constructors-CTfc5fh7.mjs → constructors-BR7PP67a.mjs} +1 -1
  22. package/dist/shared/{constructors-CqnDcrIL.d.mts → constructors-CZDP-zxV.d.mts} +2 -2
  23. package/dist/shared/{define-config-xmEHQczI.d.mts → define-config-BdEm3DW7.d.mts} +108 -12
  24. package/dist/shared/dist-DKbukT1H.mjs +154 -0
  25. package/dist/shared/{error-BmTEI0xY.mjs → error-D2KvICgd.mjs} +1 -1
  26. package/dist/shared/{get-log-filter-BpNVNJ5-.d.mts → get-log-filter-B4LpBryx.d.mts} +2 -2
  27. package/dist/shared/{load-config-DY5kAiwf.mjs → load-config-C-H6Sxai.mjs} +19 -2
  28. package/dist/shared/{logs-aMKUxRpj.mjs → logs-ZGEh6uhb.mjs} +6 -1
  29. package/dist/shared/{normalize-string-or-regex-Ddbkskw6.mjs → normalize-string-or-regex-BzQ-7a-8.mjs} +2 -2
  30. package/dist/shared/{parse-CNsctGYH.mjs → parse-CanHtd_6.mjs} +2 -2
  31. package/dist/shared/{prompt-B1Yc1NPt.mjs → prompt--dNycKSZ.mjs} +59 -17
  32. package/dist/shared/{resolve-tsconfig-B6udNjE_.mjs → resolve-tsconfig-Bx74P5AA.mjs} +2 -2
  33. package/dist/shared/{rolldown-C6DTtWMe.mjs → rolldown-BCi17Yn9.mjs} +2 -2
  34. package/dist/shared/{rolldown-build-BCVOvLca.mjs → rolldown-build-BjB3v1c2.mjs} +43 -17
  35. package/dist/shared/{transform-DiNoOk6R.d.mts → transform-C20O3Ind.d.mts} +1 -1
  36. package/dist/shared/{watch-BqeQlZnt.mjs → watch-BilISOyp.mjs} +6 -6
  37. package/dist/utils-index.d.mts +5 -5
  38. package/dist/utils-index.mjs +10 -8
  39. package/package.json +14 -13
@@ -204,7 +204,11 @@ function A$1(t, u = {}) {
204
204
  }
205
205
  return e;
206
206
  }
207
- const m = 10, L$1 = (t = 0) => (u) => `\x1B[${u + t}m`, N = (t = 0) => (u) => `\x1B[${38 + t};5;${u}m`, I = (t = 0) => (u, F, e) => `\x1B[${38 + t};2;${u};${F};${e}m`, r = {
207
+ const m = 10;
208
+ const L$1 = (t = 0) => (u) => `\x1B[${u + t}m`;
209
+ const N = (t = 0) => (u) => `\x1B[${38 + t};5;${u}m`;
210
+ const I = (t = 0) => (u, F, e) => `\x1B[${38 + t};2;${u};${F};${e}m`;
211
+ const r = {
208
212
  modifier: {
209
213
  reset: [0, 0],
210
214
  bold: [1, 22],
@@ -258,7 +262,8 @@ const m = 10, L$1 = (t = 0) => (u) => `\x1B[${u + t}m`, N = (t = 0) => (u) => `\
258
262
  }
259
263
  };
260
264
  Object.keys(r.modifier);
261
- const tD = Object.keys(r.color), eD = Object.keys(r.bgColor);
265
+ const tD = Object.keys(r.color);
266
+ const eD = Object.keys(r.bgColor);
262
267
  [...tD, ...eD];
263
268
  function sD() {
264
269
  const t = /* @__PURE__ */ new Map();
@@ -331,7 +336,18 @@ function sD() {
331
336
  }
332
337
  }), r;
333
338
  }
334
- const iD = sD(), v = /* @__PURE__ */ new Set(["\x1B", "›"]), CD = 39, w$1 = "\x07", W$1 = "[", rD = "]", R = "m", y = `${rD}8;;`, V$1 = (t) => `${v.values().next().value}${W$1}${t}${R}`, z = (t) => `${v.values().next().value}${y}${t}${w$1}`, ED = (t) => t.split(" ").map((u) => A$1(u)), _ = (t, u, F) => {
339
+ const iD = sD();
340
+ const v = /* @__PURE__ */ new Set(["\x1B", "›"]);
341
+ const CD = 39;
342
+ const w$1 = "\x07";
343
+ const W$1 = "[";
344
+ const rD = "]";
345
+ const R = "m";
346
+ const y = `${rD}8;;`;
347
+ const V$1 = (t) => `${v.values().next().value}${W$1}${t}${R}`;
348
+ const z = (t) => `${v.values().next().value}${y}${t}${w$1}`;
349
+ const ED = (t) => t.split(" ").map((u) => A$1(u));
350
+ const _ = (t, u, F) => {
335
351
  const e = [...u];
336
352
  let s = false, i = false, D = A$1(T$1(t[t.length - 1]));
337
353
  for (const [C, o] of e.entries()) {
@@ -343,12 +359,14 @@ const iD = sD(), v = /* @__PURE__ */ new Set(["\x1B", "›"]), CD = 39, w$1 = "\x
343
359
  D += E, D === F && C < e.length - 1 && (t.push(""), D = 0);
344
360
  }
345
361
  !D && t[t.length - 1].length > 0 && t.length > 1 && (t[t.length - 2] += t.pop());
346
- }, nD = (t) => {
362
+ };
363
+ const nD = (t) => {
347
364
  const u = t.split(" ");
348
365
  let F = u.length;
349
366
  for (; F > 0 && !(A$1(u[F - 1]) > 0);) F--;
350
367
  return F === u.length ? t : u.slice(0, F).join(" ") + u.slice(F).join("");
351
- }, oD = (t, u, F = {}) => {
368
+ };
369
+ const oD = (t, u, F = {}) => {
352
370
  if (F.trim !== false && t.trim() === "") return "";
353
371
  let e = "", s, i;
354
372
  const D = ED(t);
@@ -436,12 +454,14 @@ function d$1(t, u) {
436
454
  const F = t;
437
455
  F.isTTY && F.setRawMode(u);
438
456
  }
439
- var AD = Object.defineProperty, pD = (t, u, F) => u in t ? AD(t, u, {
457
+ var AD = Object.defineProperty;
458
+ var pD = (t, u, F) => u in t ? AD(t, u, {
440
459
  enumerable: true,
441
460
  configurable: true,
442
461
  writable: true,
443
462
  value: F
444
- }) : t[u] = F, h = (t, u, F) => (pD(t, typeof u != "symbol" ? u + "" : u, F), F);
463
+ }) : t[u] = F;
464
+ var h = (t, u, F) => (pD(t, typeof u != "symbol" ? u + "" : u, F), F);
445
465
  var x = class {
446
466
  constructor(u, F = true) {
447
467
  h(this, "input"), h(this, "output"), h(this, "_abortSignal"), h(this, "rl"), h(this, "opts"), h(this, "_render"), h(this, "_track", false), h(this, "_prevFrame", ""), h(this, "_subscribers", /* @__PURE__ */ new Map()), h(this, "_cursor", 0), h(this, "state", "initial"), h(this, "error", ""), h(this, "value");
@@ -562,12 +582,14 @@ var fD = class extends x {
562
582
  });
563
583
  }
564
584
  };
565
- var bD = Object.defineProperty, mD = (t, u, F) => u in t ? bD(t, u, {
585
+ var bD = Object.defineProperty;
586
+ var mD = (t, u, F) => u in t ? bD(t, u, {
566
587
  enumerable: true,
567
588
  configurable: true,
568
589
  writable: true,
569
590
  value: F
570
- }) : t[u] = F, Y = (t, u, F) => (mD(t, typeof u != "symbol" ? u + "" : u, F), F);
591
+ }) : t[u] = F;
592
+ var Y = (t, u, F) => (mD(t, typeof u != "symbol" ? u + "" : u, F), F);
571
593
  let wD = class extends x {
572
594
  constructor(u) {
573
595
  super(u, false), Y(this, "options"), Y(this, "cursor", 0), this.options = u.options, this.value = [...u.initialValues ?? []], this.cursor = Math.max(this.options.findIndex(({ value: F }) => F === u.cursorAt), 0), this.on("key", (F) => {
@@ -600,12 +622,14 @@ let wD = class extends x {
600
622
  this.value = u ? this.value.filter((F) => F !== this._value) : [...this.value, this._value];
601
623
  }
602
624
  };
603
- var SD = Object.defineProperty, $D = (t, u, F) => u in t ? SD(t, u, {
625
+ var SD = Object.defineProperty;
626
+ var $D = (t, u, F) => u in t ? SD(t, u, {
604
627
  enumerable: true,
605
628
  configurable: true,
606
629
  writable: true,
607
630
  value: F
608
- }) : t[u] = F, q = (t, u, F) => ($D(t, typeof u != "symbol" ? u + "" : u, F), F);
631
+ }) : t[u] = F;
632
+ var q = (t, u, F) => ($D(t, typeof u != "symbol" ? u + "" : u, F), F);
609
633
  var jD = class extends x {
610
634
  constructor(u) {
611
635
  super(u, false), q(this, "options"), q(this, "cursor", 0), this.options = u.options, this.cursor = this.options.findIndex(({ value: F }) => F === u.initialValue), this.cursor === -1 && (this.cursor = 0), this.changeValue(), this.on("cursor", (F) => {
@@ -648,7 +672,20 @@ var PD = class extends x {
648
672
  function ce() {
649
673
  return g$1.platform !== "win32" ? g$1.env.TERM !== "linux" : !!g$1.env.CI || !!g$1.env.WT_SESSION || !!g$1.env.TERMINUS_SUBLIME || g$1.env.ConEmuTask === "{cmd::Cmder}" || g$1.env.TERM_PROGRAM === "Terminus-Sublime" || g$1.env.TERM_PROGRAM === "vscode" || g$1.env.TERM === "xterm-256color" || g$1.env.TERM === "alacritty" || g$1.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
650
674
  }
651
- const V = ce(), u = (t, n) => V ? t : n, le = u("❯", ">"), L = u("■", "x"), W = u("▲", "x"), C = u("✔", "√"), o = u(""), d = u(""), k = u("●", ">"), P = u("○", " "), A = u("◻", "[•]"), T = u("◼", "[+]"), F = u("◻", "[ ]"), w = (t) => {
675
+ const V = ce();
676
+ const u = (t, n) => V ? t : n;
677
+ const le = u("❯", ">");
678
+ const L = u("■", "x");
679
+ const W = u("▲", "x");
680
+ const C = u("✔", "√");
681
+ const o = u("");
682
+ const d = u("");
683
+ const k = u("●", ">");
684
+ const P = u("○", " ");
685
+ const A = u("◻", "[•]");
686
+ const T = u("◼", "[+]");
687
+ const F = u("◻", "[ ]");
688
+ const w = (t) => {
652
689
  switch (t) {
653
690
  case "initial":
654
691
  case "active": return e.cyan(le);
@@ -656,7 +693,8 @@ const V = ce(), u = (t, n) => V ? t : n, le = u("❯", ">"), L = u("■", "x"),
656
693
  case "error": return e.yellow(W);
657
694
  case "submit": return e.green(C);
658
695
  }
659
- }, B = (t) => {
696
+ };
697
+ const B = (t) => {
660
698
  const { cursor: n, options: s, style: r } = t, i = t.maxItems ?? Number.POSITIVE_INFINITY, a = Math.max(process.stdout.rows - 4, 0), c = Math.min(a, Math.max(i, 5));
661
699
  let l = 0;
662
700
  n >= l + c - 3 ? l = Math.max(Math.min(n - c + 3, s.length - c), 0) : n < l + 2 && (l = Math.max(n - 2, 0));
@@ -665,7 +703,8 @@ const V = ce(), u = (t, n) => V ? t : n, le = u("❯", ">"), L = u("■", "x"),
665
703
  const j = v === 0 && $, E = v === x.length - 1 && p;
666
704
  return j || E ? e.dim("...") : r(M, v + l === n);
667
705
  });
668
- }, he = (t) => new PD({
706
+ };
707
+ const he = (t) => new PD({
669
708
  validate: t.validate,
670
709
  placeholder: t.placeholder,
671
710
  defaultValue: t.defaultValue,
@@ -687,7 +726,8 @@ ${e.cyan(d)}
687
726
  `;
688
727
  }
689
728
  }
690
- }).prompt(), ye = (t) => {
729
+ }).prompt();
730
+ const ye = (t) => {
691
731
  const n = t.active ?? "Yes", s = t.inactive ?? "No";
692
732
  return new fD({
693
733
  active: n,
@@ -707,7 +747,8 @@ ${e.cyan(d)}
707
747
  }
708
748
  }
709
749
  }).prompt();
710
- }, ve = (t) => {
750
+ };
751
+ const ve = (t) => {
711
752
  const n = (s, r) => {
712
753
  const i = s.label ?? String(s.value);
713
754
  switch (r) {
@@ -740,7 +781,8 @@ ${e.cyan(d)}
740
781
  }
741
782
  }
742
783
  }).prompt();
743
- }, fe = (t) => {
784
+ };
785
+ const fe = (t) => {
744
786
  const n = (s, r) => {
745
787
  const i = s.label ?? String(s.value);
746
788
  return r === "active" ? `${e.cyan(A)} ${i} ${s.hint ? e.dim(`(${s.hint})`) : ""}` : r === "selected" ? `${e.green(T)} ${e.dim(i)}` : r === "cancelled" ? `${e.strikethrough(e.dim(i))}` : r === "active-selected" ? `${e.green(T)} ${i} ${s.hint ? e.dim(`(${s.hint})`) : ""}` : r === "submitted" ? `${e.dim(i)}` : `${e.dim(F)} ${e.dim(i)}`;
@@ -1,5 +1,5 @@
1
- import { n as __toESM, t as require_binding } from "./binding-DamCAbY6.mjs";
2
- import { a as bindingifySourcemap, n as normalizeBindingError } from "./error-BmTEI0xY.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-9kL0gFYL.mjs";
2
+ import { a as bindingifySourcemap, n as normalizeBindingError } from "./error-D2KvICgd.mjs";
3
3
  //#region src/utils/minify.ts
4
4
  var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { c as validateOption, t as RolldownBuild, u as PluginDriver } from "./rolldown-build-BCVOvLca.mjs";
1
+ import { c as validateOption, t as RolldownBuild, u as PluginDriver } from "./rolldown-build-BjB3v1c2.mjs";
2
2
  //#region src/api/rolldown/index.ts
3
3
  /**
4
4
  * The API compatible with Rollup's `rollup` function.
@@ -10,7 +10,7 @@ import { c as validateOption, t as RolldownBuild, u as PluginDriver } from "./ro
10
10
  *
11
11
  * @example
12
12
  * ```js
13
- * import { rolldown } from 'rolldown';
13
+ * import { rolldown } from '@rollipop/rolldown';
14
14
  *
15
15
  * let bundle, failed = false;
16
16
  * try {
@@ -1,9 +1,9 @@
1
- import { n as __toESM, t as require_binding } from "./binding-DamCAbY6.mjs";
2
- import { i as logInputHookInOutputPlugin, n as error } from "./logs-aMKUxRpj.mjs";
3
- import { n as BuiltinPlugin } from "./normalize-string-or-regex-Ddbkskw6.mjs";
4
- import { a as transformModuleInfo, c as __decorate, d as PlainObjectLike, f as MinimalPluginContextImpl, h as LOG_LEVEL_DEBUG, i as PluginContextData, l as transformAssetSource, m as normalizeLog, o as transformToRollupOutput, p as normalizeHook, s as transformRenderedChunk, t as bindingifyInputOptions, u as lazyProp, v as LOG_LEVEL_WARN, x as VERSION, y as logLevelPriority } from "./bindingify-input-options-SGSGV3Kn.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-9kL0gFYL.mjs";
2
+ import { i as logInputHookInOutputPlugin, n as error } from "./logs-ZGEh6uhb.mjs";
3
+ import { n as BuiltinPlugin } from "./normalize-string-or-regex-BzQ-7a-8.mjs";
4
+ import { a as transformModuleInfo, b as VERSION, c as __decorate, d as PlainObjectLike, f as MinimalPluginContextImpl, h as LOG_LEVEL_DEBUG, i as PluginContextData, l as transformAssetSource, m as normalizeLog, o as transformToRollupOutput, p as normalizeHook, s as transformRenderedChunk, t as bindingifyInputOptions, u as lazyProp, v as LOG_LEVEL_WARN, y as logLevelPriority } from "./bindingify-input-options-3NuL6LmT.mjs";
5
5
  import { i as unimplemented } from "./misc-CoQm4NHO.mjs";
6
- import { i as unwrapBindingResult } from "./error-BmTEI0xY.mjs";
6
+ import { i as unwrapBindingResult } from "./error-D2KvICgd.mjs";
7
7
  import { Worker } from "node:worker_threads";
8
8
  import path, { sep } from "node:path";
9
9
  import { formatWithOptions, styleText } from "node:util";
@@ -1461,7 +1461,14 @@ const TransformOptionsSchema = /* @__PURE__ */ object({
1461
1461
  importSource: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Import the factory of element and fragment if mode is classic")),
1462
1462
  pragma: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Jsx element transformation")),
1463
1463
  pragmaFrag: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Jsx fragment transformation")),
1464
- refresh: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ any()])), /* @__PURE__ */ description("Enable react fast refresh"))
1464
+ refresh: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
1465
+ refreshReg: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
1466
+ refreshSig: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
1467
+ emitFullSignatures: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1468
+ include: /* @__PURE__ */ optional(/* @__PURE__ */ union([StringOrRegExpSchema, /* @__PURE__ */ array(StringOrRegExpSchema)])),
1469
+ exclude: /* @__PURE__ */ optional(/* @__PURE__ */ union([StringOrRegExpSchema, /* @__PURE__ */ array(StringOrRegExpSchema)]))
1470
+ })])), /* @__PURE__ */ description("Enable react fast refresh")),
1471
+ compiler: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ any()), /* @__PURE__ */ description("Enable React Compiler"))
1465
1472
  })
1466
1473
  ])),
1467
1474
  target: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ array(/* @__PURE__ */ string())])), /* @__PURE__ */ description("The JavaScript target environment")),
@@ -1471,8 +1478,7 @@ const TransformOptionsSchema = /* @__PURE__ */ object({
1471
1478
  plugins: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ object({
1472
1479
  styledComponents: /* @__PURE__ */ optional(/* @__PURE__ */ any()),
1473
1480
  taggedTemplateEscape: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1474
- })), /* @__PURE__ */ description("Third-party plugins to use")),
1475
- reactCompiler: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ any()), /* @__PURE__ */ description("Enable React Compiler"))
1481
+ })), /* @__PURE__ */ description("Third-party plugins to use"))
1476
1482
  });
1477
1483
  const WatcherFileWatcherOptionsSchema = /* @__PURE__ */ strictObject({
1478
1484
  usePolling: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Use polling-based file watching instead of native OS events")),
@@ -1547,6 +1553,7 @@ const MinifyOptionsSchema = /* @__PURE__ */ strictObject({
1547
1553
  function: /* @__PURE__ */ boolean(),
1548
1554
  class: /* @__PURE__ */ boolean()
1549
1555
  })])),
1556
+ reserved: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())),
1550
1557
  debug: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1551
1558
  })])),
1552
1559
  codegen: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
@@ -1756,6 +1763,7 @@ const OutputOptionsSchema = /* @__PURE__ */ strictObject({
1756
1763
  /* @__PURE__ */ literal("hidden")
1757
1764
  ])), /* @__PURE__ */ description(`Generate sourcemap (\`-s inline\` for inline, or \`-s\` for \`.map\` file)`)),
1758
1765
  sourcemapBaseUrl: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Base URL used to prefix sourcemap paths")),
1766
+ sourcemapFileNames: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(ChunkFileNamesSchema), /* @__PURE__ */ description("Name pattern for emitted sourcemaps")),
1759
1767
  sourcemapDebugIds: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Inject sourcemap debug IDs")),
1760
1768
  sourcemapExcludeSources: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Exclude source content from sourcemaps")),
1761
1769
  sourcemapIgnoreList: /* @__PURE__ */ optional(/* @__PURE__ */ union([
@@ -1830,7 +1838,7 @@ const OutputCliOverrideSchema = /* @__PURE__ */ strictObject({
1830
1838
  codeSplitting: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
1831
1839
  minSize: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ number()), /* @__PURE__ */ description("Minimum size of the chunk")),
1832
1840
  minShareCount: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ number()), /* @__PURE__ */ description("Minimum share count of the chunk"))
1833
- })])), /* @__PURE__ */ description("Code splitting options (true, false, or object)")),
1841
+ })])), /* @__PURE__ */ description("Code splitting options. Enabled by default; use `--no-codeSplitting` to disable, or `--codeSplitting.minSize` / `--codeSplitting.minShareCount` to configure")),
1834
1842
  advancedChunks: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ strictObject({
1835
1843
  minSize: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ number()), /* @__PURE__ */ description("Minimum size of the chunk")),
1836
1844
  minShareCount: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ number()), /* @__PURE__ */ description("Minimum share count of the chunk"))
@@ -1852,6 +1860,7 @@ const CliOptionsSchema = /* @__PURE__ */ strictObject({
1852
1860
  environment: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ array(/* @__PURE__ */ string())])), /* @__PURE__ */ description("Pass additional settings to the config file via process.ENV.")),
1853
1861
  version: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Show version number")),
1854
1862
  watch: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Watch files in bundle and rebuild on changes")),
1863
+ configLoader: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("bundle"), /* @__PURE__ */ literal("native")])), /* @__PURE__ */ description("How to load the config file (bundle, native)")),
1855
1864
  ...InputCliOptionsSchema.entries,
1856
1865
  ...OutputCliOptionsSchema.entries
1857
1866
  });
@@ -2571,7 +2580,9 @@ function box(text, _opts = {}) {
2571
2580
  }
2572
2581
  //#endregion
2573
2582
  //#region ../../node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/index.mjs
2574
- const r = Object.create(null), i = (e) => globalThis.process?.env || import.meta.env || globalThis.Deno?.env.toObject() || globalThis.__env__ || (e ? r : globalThis), o = new Proxy(r, {
2583
+ const r = Object.create(null);
2584
+ const i = (e) => globalThis.process?.env || import.meta.env || globalThis.Deno?.env.toObject() || globalThis.__env__ || (e ? r : globalThis);
2585
+ const o = new Proxy(r, {
2575
2586
  get(e, s) {
2576
2587
  return i()[s] ?? r[s];
2577
2588
  },
@@ -2591,7 +2602,9 @@ const r = Object.create(null), i = (e) => globalThis.process?.env || import.meta
2591
2602
  const e = i(true);
2592
2603
  return Object.keys(e);
2593
2604
  }
2594
- }), t = typeof process < "u" && process.env && process.env.NODE_ENV || "", f = [
2605
+ });
2606
+ const t = typeof process < "u" && process.env && process.env.NODE_ENV || "";
2607
+ const f = [
2595
2608
  ["APPVEYOR"],
2596
2609
  [
2597
2610
  "AWS_AMPLIFY",
@@ -2703,19 +2716,31 @@ l.name;
2703
2716
  function n(e) {
2704
2717
  return e ? e !== "false" : false;
2705
2718
  }
2706
- const I = globalThis.process?.platform || "", T = n(o.CI) || l.ci !== false, a = n(globalThis.process?.stdout && globalThis.process?.stdout.isTTY), g = n(o.DEBUG), R = t === "test" || n(o.TEST);
2719
+ const I = globalThis.process?.platform || "";
2720
+ const T = n(o.CI) || l.ci !== false;
2721
+ const a = n(globalThis.process?.stdout && globalThis.process?.stdout.isTTY);
2722
+ const g = n(o.DEBUG);
2723
+ const R = t === "test" || n(o.TEST);
2707
2724
  o.MINIMAL;
2708
2725
  const A = /^win/i.test(I);
2709
2726
  !n(o.NO_COLOR) && (n(o.FORCE_COLOR) || (a || A) && o.TERM);
2710
2727
  const C = (globalThis.process?.versions?.node || "").replace(/^v/, "") || null;
2711
2728
  Number(C?.split(".")[0]);
2712
- const y = globalThis.process || Object.create(null), _ = { versions: {} };
2729
+ const y = globalThis.process || Object.create(null);
2730
+ const _ = { versions: {} };
2713
2731
  new Proxy(y, { get(e, s) {
2714
2732
  if (s === "env") return o;
2715
2733
  if (s in e) return e[s];
2716
2734
  if (s in _) return _[s];
2717
2735
  } });
2718
- const c = globalThis.process?.release?.name === "node", O = !!globalThis.Bun || !!globalThis.process?.versions?.bun, D = !!globalThis.Deno, L = !!globalThis.fastly, S = !!globalThis.Netlify, u = !!globalThis.EdgeRuntime, N = globalThis.navigator?.userAgent === "Cloudflare-Workers", F = [
2736
+ const c = globalThis.process?.release?.name === "node";
2737
+ const O = !!globalThis.Bun || !!globalThis.process?.versions?.bun;
2738
+ const D = !!globalThis.Deno;
2739
+ const L = !!globalThis.fastly;
2740
+ const S = !!globalThis.Netlify;
2741
+ const u = !!globalThis.EdgeRuntime;
2742
+ const N = globalThis.navigator?.userAgent === "Cloudflare-Workers";
2743
+ const F = [
2719
2744
  [S, "netlify"],
2720
2745
  [u, "edge-light"],
2721
2746
  [N, "workerd"],
@@ -2873,7 +2898,7 @@ function createConsola(options = {}) {
2873
2898
  defaults: { level },
2874
2899
  stdout: process.stdout,
2875
2900
  stderr: process.stderr,
2876
- prompt: (...args) => import("./prompt-B1Yc1NPt.mjs").then((m) => m.prompt(...args)),
2901
+ prompt: (...args) => import("./prompt--dNycKSZ.mjs").then((m) => m.prompt(...args)),
2877
2902
  reporters: options.reporters || [options.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()],
2878
2903
  ...options
2879
2904
  });
@@ -2914,7 +2939,7 @@ function createTestingLogger() {
2914
2939
  //#endregion
2915
2940
  //#region src/utils/bindingify-output-options.ts
2916
2941
  function bindingifyOutputOptions(outputOptions, pluginContextData) {
2917
- const { dir, format, exports, hashCharacters, sourcemap, sourcemapBaseUrl, sourcemapDebugIds, sourcemapExcludeSources, sourcemapIgnoreList, sourcemapPathTransform, name, assetFileNames, entryFileNames, chunkFileNames, banner, footer, postBanner, postFooter, intro, outro, esModule, globals, paths, generatedCode, file, sanitizeFileName, preserveModules, virtualDirname, legalComments, comments, preserveModulesRoot, manualChunks, topLevelVar, cleanDir, strictExecutionOrder } = outputOptions;
2942
+ const { dir, format, exports, hashCharacters, sourcemap, sourcemapBaseUrl, sourcemapDebugIds, sourcemapFileNames, sourcemapExcludeSources, sourcemapIgnoreList, sourcemapPathTransform, name, assetFileNames, entryFileNames, chunkFileNames, banner, footer, postBanner, postFooter, intro, outro, esModule, globals, paths, generatedCode, file, sanitizeFileName, preserveModules, virtualDirname, legalComments, comments, preserveModulesRoot, manualChunks, topLevelVar, cleanDir, strictExecutionOrder } = outputOptions;
2918
2943
  if (legalComments != null) logger.warn("`legalComments` option is deprecated, please use `comments.legal` instead.");
2919
2944
  const { inlineDynamicImports, advancedChunks } = bindingifyCodeSplitting(outputOptions.codeSplitting, outputOptions.inlineDynamicImports, outputOptions.advancedChunks, manualChunks, pluginContextData);
2920
2945
  return {
@@ -2926,6 +2951,7 @@ function bindingifyOutputOptions(outputOptions, pluginContextData) {
2926
2951
  sourcemap: bindingifySourcemap(sourcemap),
2927
2952
  sourcemapBaseUrl,
2928
2953
  sourcemapDebugIds,
2954
+ sourcemapFileNames,
2929
2955
  sourcemapExcludeSources,
2930
2956
  sourcemapIgnoreList: sourcemapIgnoreList ?? /node_modules/,
2931
2957
  sourcemapPathTransform,
@@ -3222,7 +3248,7 @@ var RolldownBuild = class RolldownBuild {
3222
3248
  *
3223
3249
  * @example
3224
3250
  * ```js
3225
- * import { rolldown } from 'rolldown';
3251
+ * import { rolldown } from '@rollipop/rolldown';
3226
3252
  *
3227
3253
  * {
3228
3254
  * using bundle = await rolldown({ input: 'src/main.js' });
@@ -1,5 +1,5 @@
1
1
  import { a as RolldownLog } from "./logging-BSNejiLS.mjs";
2
- import { B as ParseResult$1, G as SourceMap, I as MinifyOptions$1, L as MinifyResult$1, V as ParserOptions$1, a as BindingEnhancedTransformOptions, b as BindingTsconfigResult, o as BindingEnhancedTransformResult, q as TsconfigCache$1 } from "./binding-DE7ERejD.mjs";
2
+ import { B as ParseResult$1, I as MinifyOptions$1, J as TsconfigCache$1, K as SourceMap, L as MinifyResult$1, V as ParserOptions$1, a as BindingEnhancedTransformOptions, b as BindingTsconfigResult, o as BindingEnhancedTransformResult } from "./binding-CckXxUel.mjs";
3
3
 
4
4
  //#region src/utils/resolve-tsconfig.d.ts
5
5
  /**
@@ -1,9 +1,9 @@
1
- import { n as __toESM, t as require_binding } from "./binding-DamCAbY6.mjs";
2
- import { o as logMultipleWatcherOption } from "./logs-aMKUxRpj.mjs";
3
- import { v as LOG_LEVEL_WARN } from "./bindingify-input-options-SGSGV3Kn.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-9kL0gFYL.mjs";
2
+ import { o as logMultipleWatcherOption } from "./logs-ZGEh6uhb.mjs";
3
+ import { v as LOG_LEVEL_WARN } from "./bindingify-input-options-3NuL6LmT.mjs";
4
4
  import { t as arraify } from "./misc-CoQm4NHO.mjs";
5
- import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-BCVOvLca.mjs";
6
- import { t as aggregateBindingErrorsIntoJsError } from "./error-BmTEI0xY.mjs";
5
+ import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-BjB3v1c2.mjs";
6
+ import { t as aggregateBindingErrorsIntoJsError } from "./error-D2KvICgd.mjs";
7
7
  //#region ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
8
8
  /**
9
9
  * This is not the set of all possible signals.
@@ -348,7 +348,7 @@ function warnMultiplePollingOptions(bundlerOptions) {
348
348
  *
349
349
  * @example
350
350
  * ```js
351
- * import { watch } from 'rolldown';
351
+ * import { watch } from '@rollipop/rolldown';
352
352
  *
353
353
  * const watcher = watch({ /* ... *\/ });
354
354
  * watcher.on('event', (event) => {
@@ -1,9 +1,9 @@
1
- import { v as BindingTsconfigCompilerOptions, y as BindingTsconfigRawOptions } from "./shared/binding-DE7ERejD.mjs";
2
- import { a as MinifyOptions, c as minifySync, d as parse, f as parseSync, i as transformSync, l as ParseResult, n as TransformResult, o as MinifyResult, p as TsconfigCache, r as transform, s as minify, t as TransformOptions, u as ParserOptions } from "./shared/transform-DiNoOk6R.mjs";
1
+ import { v as BindingTsconfigCompilerOptions, y as BindingTsconfigRawOptions } from "./shared/binding-CckXxUel.mjs";
2
+ import { a as MinifyOptions, c as minifySync, d as parse, f as parseSync, i as transformSync, l as ParseResult, n as TransformResult, o as MinifyResult, p as TsconfigCache, r as transform, s as minify, t as TransformOptions, u as ParserOptions } from "./shared/transform-C20O3Ind.mjs";
3
3
  import * as ESTree from "@oxc-project/types";
4
4
  import { Program } from "@oxc-project/types";
5
5
 
6
- //#region ../../node_modules/.pnpm/oxc-parser@0.137.0/node_modules/oxc-parser/src-js/generated/visit/visitor.d.ts
6
+ //#region ../../node_modules/.pnpm/oxc-parser@0.139.0/node_modules/oxc-parser/src-js/generated/visit/visitor.d.ts
7
7
  interface VisitorObject$1 {
8
8
  DebuggerStatement?: (node: ESTree.DebuggerStatement) => void;
9
9
  "DebuggerStatement:exit"?: (node: ESTree.DebuggerStatement) => void;
@@ -349,8 +349,8 @@ type VisitorObject = VisitorObject$1;
349
349
  *
350
350
  * @example
351
351
  * ```ts
352
- * import { Visitor } from 'rolldown/utils';
353
- * import { parseSync } from 'rolldown/utils';
352
+ * import { Visitor } from '@rollipop/rolldown/utils';
353
+ * import { parseSync } from '@rollipop/rolldown/utils';
354
354
  *
355
355
  * const result = parseSync(...);
356
356
  * const visitor = new Visitor({
@@ -1,6 +1,6 @@
1
- import { n as parseSync, t as parse } from "./shared/parse-CNsctGYH.mjs";
2
- import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-B6udNjE_.mjs";
3
- //#region ../../node_modules/.pnpm/oxc-parser@0.137.0/node_modules/oxc-parser/src-js/generated/visit/walk.js
1
+ import { n as parseSync, t as parse } from "./shared/parse-CanHtd_6.mjs";
2
+ import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-Bx74P5AA.mjs";
3
+ //#region ../../node_modules/.pnpm/oxc-parser@0.139.0/node_modules/oxc-parser/src-js/generated/visit/walk.js
4
4
  function walkNode(node, visitors) {
5
5
  if (node == null) return;
6
6
  if (Array.isArray(node)) {
@@ -2010,7 +2010,7 @@ function walkTSUnionType(node, visitors) {
2010
2010
  exit !== null && exit(node);
2011
2011
  }
2012
2012
  //#endregion
2013
- //#region ../../node_modules/.pnpm/oxc-parser@0.137.0/node_modules/oxc-parser/src-js/generated/visit/type_ids.js
2013
+ //#region ../../node_modules/.pnpm/oxc-parser@0.139.0/node_modules/oxc-parser/src-js/generated/visit/type_ids.js
2014
2014
  /** Mapping from node type name to node type ID */
2015
2015
  const NODE_TYPE_IDS_MAP = /* @__PURE__ */ new Map([
2016
2016
  ["DebuggerStatement", 0],
@@ -2180,14 +2180,16 @@ const NODE_TYPE_IDS_MAP = /* @__PURE__ */ new Map([
2180
2180
  ["TSUnionType", 164]
2181
2181
  ]);
2182
2182
  //#endregion
2183
- //#region ../../node_modules/.pnpm/oxc-parser@0.137.0/node_modules/oxc-parser/src-js/visit/visitor.js
2183
+ //#region ../../node_modules/.pnpm/oxc-parser@0.139.0/node_modules/oxc-parser/src-js/visit/visitor.js
2184
2184
  let compiledVisitor;
2185
2185
  function createCompiledVisitor() {
2186
2186
  compiledVisitor = [];
2187
2187
  for (let i = 165; i !== 0; i--) compiledVisitor.push(null);
2188
2188
  return compiledVisitor;
2189
2189
  }
2190
- const mergedLeafVisitorTypeIds = [], mergedEnterVisitorTypeIds = [], mergedExitVisitorTypeIds = [];
2190
+ const mergedLeafVisitorTypeIds = [];
2191
+ const mergedEnterVisitorTypeIds = [];
2192
+ const mergedExitVisitorTypeIds = [];
2191
2193
  for (let i = 27; i !== 0; i--) mergedLeafVisitorTypeIds.push(0);
2192
2194
  for (let i = 138; i !== 0; i--) {
2193
2195
  mergedEnterVisitorTypeIds.push(0);
@@ -2380,8 +2382,8 @@ const mergers = [
2380
2382
  *
2381
2383
  * @example
2382
2384
  * ```ts
2383
- * import { Visitor } from 'rolldown/utils';
2384
- * import { parseSync } from 'rolldown/utils';
2385
+ * import { Visitor } from '@rollipop/rolldown/utils';
2386
+ * import { parseSync } from '@rollipop/rolldown/utils';
2385
2387
  *
2386
2388
  * const result = parseSync(...);
2387
2389
  * const visitor = new Visitor({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rollipop/rolldown",
3
- "version": "1.0.20",
3
+ "version": "1.0.22",
4
4
  "description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
5
5
  "keywords": [
6
6
  "bundler",
@@ -53,7 +53,7 @@
53
53
  "registry": "https://registry.npmjs.org/"
54
54
  },
55
55
  "dependencies": {
56
- "@oxc-project/types": "=0.137.0",
56
+ "@oxc-project/types": "=0.139.0",
57
57
  "@rolldown/pluginutils": "^1.0.0"
58
58
  },
59
59
  "devDependencies": {
@@ -65,18 +65,19 @@
65
65
  "cac": "^7.0.0",
66
66
  "consola": "^3.4.2",
67
67
  "execa": "^9.2.0",
68
+ "fresh-import": "^0.2.1",
68
69
  "glob": "^13.0.0",
69
- "oxc-parser": "=0.137.0",
70
+ "oxc-parser": "=0.139.0",
70
71
  "pathe": "^2.0.3",
71
72
  "remeda": "^2.34.1",
72
- "rolldown": "1.1.3",
73
+ "rolldown": "1.1.5",
73
74
  "rolldown-plugin-dts": "^0.26.0",
74
75
  "rollup": "^4.60.4",
75
76
  "signal-exit": "4.1.0",
76
77
  "source-map": "0.7.6",
77
78
  "typescript": "^6.0.0",
78
- "valibot": "1.4.1",
79
- "@rollipop/rolldown": "1.0.20"
79
+ "valibot": "1.4.2",
80
+ "@rollipop/rolldown": "1.0.22"
80
81
  },
81
82
  "napi": {
82
83
  "binaryName": "rolldown-binding",
@@ -104,13 +105,13 @@
104
105
  "node": "^20.19.0 || >=22.12.0"
105
106
  },
106
107
  "optionalDependencies": {
107
- "@rollipop/rolldown-binding-darwin-x64": "1.0.20",
108
- "@rollipop/rolldown-binding-win32-x64-msvc": "1.0.20",
109
- "@rollipop/rolldown-binding-linux-x64-gnu": "1.0.20",
110
- "@rollipop/rolldown-binding-linux-x64-musl": "1.0.20",
111
- "@rollipop/rolldown-binding-linux-arm64-gnu": "1.0.20",
112
- "@rollipop/rolldown-binding-darwin-arm64": "1.0.20",
113
- "@rollipop/rolldown-binding-linux-arm64-musl": "1.0.20"
108
+ "@rollipop/rolldown-binding-darwin-x64": "1.0.22",
109
+ "@rollipop/rolldown-binding-win32-x64-msvc": "1.0.22",
110
+ "@rollipop/rolldown-binding-linux-x64-gnu": "1.0.22",
111
+ "@rollipop/rolldown-binding-linux-x64-musl": "1.0.22",
112
+ "@rollipop/rolldown-binding-linux-arm64-gnu": "1.0.22",
113
+ "@rollipop/rolldown-binding-darwin-arm64": "1.0.22",
114
+ "@rollipop/rolldown-binding-linux-arm64-musl": "1.0.22"
114
115
  },
115
116
  "scripts": {
116
117
  "# Scrips for binding #": "_",