rolldown 1.1.3 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +11 -8
- package/dist/config.d.mts +15 -2
- package/dist/config.mjs +2 -2
- package/dist/experimental-index.d.mts +4 -4
- package/dist/experimental-index.mjs +10 -9
- package/dist/filter-index.d.mts +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +10 -4
- package/dist/parallel-plugin-worker.mjs +5 -4
- package/dist/parallel-plugin.d.mts +1 -1
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/parse-ast-index.mjs +2 -2
- package/dist/plugins-index.d.mts +3 -3
- package/dist/plugins-index.mjs +2 -2
- package/dist/shared/{binding-B1q9aYT-.d.mts → binding-D26QphWG.d.mts} +12 -0
- package/dist/shared/{binding-Dh6LYCIB.mjs → binding-TuFFIE_J.mjs} +26 -27
- package/dist/shared/{bindingify-input-options-CzVhGygm.mjs → bindingify-input-options-XPJLJOD0.mjs} +11 -13
- package/dist/shared/{constructors-awZ1VNvg.d.mts → constructors-BbWPse2X.d.mts} +2 -2
- package/dist/shared/{constructors-688OwP2q.mjs → constructors-D_3i7dpX.mjs} +1 -1
- package/dist/shared/{define-config-sxBscJ3M.d.mts → define-config-BhJ90aEv.d.mts} +80 -3
- package/dist/shared/dist-DKbukT1H.mjs +154 -0
- package/dist/shared/{error-B68YLzl3.mjs → error-BHRSI0R7.mjs} +1 -1
- package/dist/shared/{load-config-BvPPEM7l.mjs → load-config-BL_FI6dc.mjs} +19 -2
- package/dist/shared/{logs-aMKUxRpj.mjs → logs-ZGEh6uhb.mjs} +6 -1
- package/dist/shared/{normalize-string-or-regex-BpXHYeN4.mjs → normalize-string-or-regex-dnh67V_w.mjs} +2 -2
- package/dist/shared/{parse-CTgsjpo8.mjs → parse-D4dtlfWy.mjs} +2 -2
- package/dist/shared/{prompt-B1Yc1NPt.mjs → prompt--dNycKSZ.mjs} +59 -17
- package/dist/shared/{resolve-tsconfig-BkhP9bkX.mjs → resolve-tsconfig-DxqIJB3x.mjs} +2 -2
- package/dist/shared/{rolldown-Brph2NSU.mjs → rolldown-ChpIlMRm.mjs} +1 -1
- package/dist/shared/{rolldown-build-DR0wzp0V.mjs → rolldown-build-CtPvmZgJ.mjs} +33 -13
- package/dist/shared/{transform-CEmFsvJW.d.mts → transform-BPrUvqEZ.d.mts} +1 -1
- package/dist/shared/{watch-FrHSqg24.mjs → watch-B1b0gmVh.mjs} +5 -5
- package/dist/utils-index.d.mts +3 -3
- package/dist/utils-index.mjs +8 -6
- package/package.json +21 -20
|
@@ -204,7 +204,11 @@ function A$1(t, u = {}) {
|
|
|
204
204
|
}
|
|
205
205
|
return e;
|
|
206
206
|
}
|
|
207
|
-
const m = 10
|
|
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)
|
|
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()
|
|
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
|
-
}
|
|
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
|
-
}
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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()
|
|
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
|
-
}
|
|
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
|
-
}
|
|
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()
|
|
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
|
-
}
|
|
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
|
-
}
|
|
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-
|
|
2
|
-
import { a as bindingifySourcemap, n as normalizeBindingError } from "./error-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-TuFFIE_J.mjs";
|
|
2
|
+
import { a as bindingifySourcemap, n as normalizeBindingError } from "./error-BHRSI0R7.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-
|
|
1
|
+
import { c as validateOption, t as RolldownBuild, u as PluginDriver } from "./rolldown-build-CtPvmZgJ.mjs";
|
|
2
2
|
//#region src/api/rolldown/index.ts
|
|
3
3
|
/**
|
|
4
4
|
* The API compatible with Rollup's `rollup` function.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
2
|
-
import { i as logInputHookInOutputPlugin, n as error } from "./logs-
|
|
3
|
-
import { n as BuiltinPlugin } from "./normalize-string-or-regex-
|
|
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,
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-TuFFIE_J.mjs";
|
|
2
|
+
import { i as logInputHookInOutputPlugin, n as error } from "./logs-ZGEh6uhb.mjs";
|
|
3
|
+
import { n as BuiltinPlugin } from "./normalize-string-or-regex-dnh67V_w.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-XPJLJOD0.mjs";
|
|
5
5
|
import { i as unimplemented } from "./misc-CoQm4NHO.mjs";
|
|
6
|
-
import { i as unwrapBindingResult } from "./error-
|
|
6
|
+
import { i as unwrapBindingResult } from "./error-BHRSI0R7.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";
|
|
@@ -1545,6 +1545,7 @@ const MinifyOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
1545
1545
|
function: /* @__PURE__ */ boolean(),
|
|
1546
1546
|
class: /* @__PURE__ */ boolean()
|
|
1547
1547
|
})])),
|
|
1548
|
+
reserved: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())),
|
|
1548
1549
|
debug: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1549
1550
|
})])),
|
|
1550
1551
|
codegen: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
|
|
@@ -1752,6 +1753,7 @@ const OutputOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
1752
1753
|
/* @__PURE__ */ literal("hidden")
|
|
1753
1754
|
])), /* @__PURE__ */ description(`Generate sourcemap (\`-s inline\` for inline, or \`-s\` for \`.map\` file)`)),
|
|
1754
1755
|
sourcemapBaseUrl: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Base URL used to prefix sourcemap paths")),
|
|
1756
|
+
sourcemapFileNames: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(ChunkFileNamesSchema), /* @__PURE__ */ description("Name pattern for emitted sourcemaps")),
|
|
1755
1757
|
sourcemapDebugIds: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Inject sourcemap debug IDs")),
|
|
1756
1758
|
sourcemapExcludeSources: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Exclude source content from sourcemaps")),
|
|
1757
1759
|
sourcemapIgnoreList: /* @__PURE__ */ optional(/* @__PURE__ */ union([
|
|
@@ -1825,7 +1827,7 @@ const OutputCliOverrideSchema = /* @__PURE__ */ strictObject({
|
|
|
1825
1827
|
codeSplitting: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
|
|
1826
1828
|
minSize: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ number()), /* @__PURE__ */ description("Minimum size of the chunk")),
|
|
1827
1829
|
minShareCount: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ number()), /* @__PURE__ */ description("Minimum share count of the chunk"))
|
|
1828
|
-
})])), /* @__PURE__ */ description("Code splitting options
|
|
1830
|
+
})])), /* @__PURE__ */ description("Code splitting options. Enabled by default; use `--no-codeSplitting` to disable, or `--codeSplitting.minSize` / `--codeSplitting.minShareCount` to configure")),
|
|
1829
1831
|
advancedChunks: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ strictObject({
|
|
1830
1832
|
minSize: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ number()), /* @__PURE__ */ description("Minimum size of the chunk")),
|
|
1831
1833
|
minShareCount: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ number()), /* @__PURE__ */ description("Minimum share count of the chunk"))
|
|
@@ -1847,6 +1849,7 @@ const CliOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
1847
1849
|
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.")),
|
|
1848
1850
|
version: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Show version number")),
|
|
1849
1851
|
watch: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Watch files in bundle and rebuild on changes")),
|
|
1852
|
+
configLoader: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("bundle"), /* @__PURE__ */ literal("native")])), /* @__PURE__ */ description("How to load the config file (bundle, native)")),
|
|
1850
1853
|
...InputCliOptionsSchema.entries,
|
|
1851
1854
|
...OutputCliOptionsSchema.entries
|
|
1852
1855
|
});
|
|
@@ -2566,7 +2569,9 @@ function box(text, _opts = {}) {
|
|
|
2566
2569
|
}
|
|
2567
2570
|
//#endregion
|
|
2568
2571
|
//#region ../../node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/index.mjs
|
|
2569
|
-
const r = Object.create(null)
|
|
2572
|
+
const r = Object.create(null);
|
|
2573
|
+
const i = (e) => globalThis.process?.env || import.meta.env || globalThis.Deno?.env.toObject() || globalThis.__env__ || (e ? r : globalThis);
|
|
2574
|
+
const o = new Proxy(r, {
|
|
2570
2575
|
get(e, s) {
|
|
2571
2576
|
return i()[s] ?? r[s];
|
|
2572
2577
|
},
|
|
@@ -2586,7 +2591,9 @@ const r = Object.create(null), i = (e) => globalThis.process?.env || import.meta
|
|
|
2586
2591
|
const e = i(true);
|
|
2587
2592
|
return Object.keys(e);
|
|
2588
2593
|
}
|
|
2589
|
-
})
|
|
2594
|
+
});
|
|
2595
|
+
const t = typeof process < "u" && process.env && process.env.NODE_ENV || "";
|
|
2596
|
+
const f = [
|
|
2590
2597
|
["APPVEYOR"],
|
|
2591
2598
|
[
|
|
2592
2599
|
"AWS_AMPLIFY",
|
|
@@ -2698,19 +2705,31 @@ l.name;
|
|
|
2698
2705
|
function n(e) {
|
|
2699
2706
|
return e ? e !== "false" : false;
|
|
2700
2707
|
}
|
|
2701
|
-
const I = globalThis.process?.platform || ""
|
|
2708
|
+
const I = globalThis.process?.platform || "";
|
|
2709
|
+
const T = n(o.CI) || l.ci !== false;
|
|
2710
|
+
const a = n(globalThis.process?.stdout && globalThis.process?.stdout.isTTY);
|
|
2711
|
+
const g = n(o.DEBUG);
|
|
2712
|
+
const R = t === "test" || n(o.TEST);
|
|
2702
2713
|
o.MINIMAL;
|
|
2703
2714
|
const A = /^win/i.test(I);
|
|
2704
2715
|
!n(o.NO_COLOR) && (n(o.FORCE_COLOR) || (a || A) && o.TERM);
|
|
2705
2716
|
const C = (globalThis.process?.versions?.node || "").replace(/^v/, "") || null;
|
|
2706
2717
|
Number(C?.split(".")[0]);
|
|
2707
|
-
const y = globalThis.process || Object.create(null)
|
|
2718
|
+
const y = globalThis.process || Object.create(null);
|
|
2719
|
+
const _ = { versions: {} };
|
|
2708
2720
|
new Proxy(y, { get(e, s) {
|
|
2709
2721
|
if (s === "env") return o;
|
|
2710
2722
|
if (s in e) return e[s];
|
|
2711
2723
|
if (s in _) return _[s];
|
|
2712
2724
|
} });
|
|
2713
|
-
const c = globalThis.process?.release?.name === "node"
|
|
2725
|
+
const c = globalThis.process?.release?.name === "node";
|
|
2726
|
+
const O = !!globalThis.Bun || !!globalThis.process?.versions?.bun;
|
|
2727
|
+
const D = !!globalThis.Deno;
|
|
2728
|
+
const L = !!globalThis.fastly;
|
|
2729
|
+
const S = !!globalThis.Netlify;
|
|
2730
|
+
const u = !!globalThis.EdgeRuntime;
|
|
2731
|
+
const N = globalThis.navigator?.userAgent === "Cloudflare-Workers";
|
|
2732
|
+
const F = [
|
|
2714
2733
|
[S, "netlify"],
|
|
2715
2734
|
[u, "edge-light"],
|
|
2716
2735
|
[N, "workerd"],
|
|
@@ -2868,7 +2887,7 @@ function createConsola(options = {}) {
|
|
|
2868
2887
|
defaults: { level },
|
|
2869
2888
|
stdout: process.stdout,
|
|
2870
2889
|
stderr: process.stderr,
|
|
2871
|
-
prompt: (...args) => import("./prompt
|
|
2890
|
+
prompt: (...args) => import("./prompt--dNycKSZ.mjs").then((m) => m.prompt(...args)),
|
|
2872
2891
|
reporters: options.reporters || [options.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()],
|
|
2873
2892
|
...options
|
|
2874
2893
|
});
|
|
@@ -2909,7 +2928,7 @@ function createTestingLogger() {
|
|
|
2909
2928
|
//#endregion
|
|
2910
2929
|
//#region src/utils/bindingify-output-options.ts
|
|
2911
2930
|
function bindingifyOutputOptions(outputOptions, pluginContextData) {
|
|
2912
|
-
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;
|
|
2931
|
+
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;
|
|
2913
2932
|
if (legalComments != null) logger.warn("`legalComments` option is deprecated, please use `comments.legal` instead.");
|
|
2914
2933
|
const { inlineDynamicImports, advancedChunks } = bindingifyCodeSplitting(outputOptions.codeSplitting, outputOptions.inlineDynamicImports, outputOptions.advancedChunks, manualChunks, pluginContextData);
|
|
2915
2934
|
return {
|
|
@@ -2921,6 +2940,7 @@ function bindingifyOutputOptions(outputOptions, pluginContextData) {
|
|
|
2921
2940
|
sourcemap: bindingifySourcemap(sourcemap),
|
|
2922
2941
|
sourcemapBaseUrl,
|
|
2923
2942
|
sourcemapDebugIds,
|
|
2943
|
+
sourcemapFileNames,
|
|
2924
2944
|
sourcemapExcludeSources,
|
|
2925
2945
|
sourcemapIgnoreList: sourcemapIgnoreList ?? /node_modules/,
|
|
2926
2946
|
sourcemapPathTransform,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as RolldownLog } from "./logging-BSNejiLS.mjs";
|
|
2
|
-
import { F as MinifyResult$1, H as SourceMap, L as ParseResult$1, P as MinifyOptions$1, R as ParserOptions$1, W as TsconfigCache$1, a as BindingEnhancedTransformOptions, o as BindingEnhancedTransformResult, v as BindingTsconfigResult } from "./binding-
|
|
2
|
+
import { F as MinifyResult$1, H as SourceMap, L as ParseResult$1, P as MinifyOptions$1, R as ParserOptions$1, W as TsconfigCache$1, a as BindingEnhancedTransformOptions, o as BindingEnhancedTransformResult, v as BindingTsconfigResult } from "./binding-D26QphWG.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-
|
|
2
|
-
import { o as logMultipleWatcherOption } from "./logs-
|
|
3
|
-
import { v as LOG_LEVEL_WARN } from "./bindingify-input-options-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-TuFFIE_J.mjs";
|
|
2
|
+
import { o as logMultipleWatcherOption } from "./logs-ZGEh6uhb.mjs";
|
|
3
|
+
import { v as LOG_LEVEL_WARN } from "./bindingify-input-options-XPJLJOD0.mjs";
|
|
4
4
|
import { t as arraify } from "./misc-CoQm4NHO.mjs";
|
|
5
|
-
import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-
|
|
6
|
-
import { t as aggregateBindingErrorsIntoJsError } from "./error-
|
|
5
|
+
import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-CtPvmZgJ.mjs";
|
|
6
|
+
import { t as aggregateBindingErrorsIntoJsError } from "./error-BHRSI0R7.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.
|
package/dist/utils-index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { _ as BindingTsconfigRawOptions, g as BindingTsconfigCompilerOptions } from "./shared/binding-
|
|
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-
|
|
1
|
+
import { _ as BindingTsconfigRawOptions, g as BindingTsconfigCompilerOptions } from "./shared/binding-D26QphWG.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-BPrUvqEZ.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.
|
|
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;
|
package/dist/utils-index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as parseSync, t as parse } from "./shared/parse-
|
|
2
|
-
import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-
|
|
3
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
1
|
+
import { n as parseSync, t as parse } from "./shared/parse-D4dtlfWy.mjs";
|
|
2
|
+
import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-DxqIJB3x.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.
|
|
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.
|
|
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 = []
|
|
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);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rolldown",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5",
|
|
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.
|
|
56
|
+
"@oxc-project/types": "=0.139.0",
|
|
57
57
|
"@rolldown/pluginutils": "^1.0.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
@@ -65,8 +65,9 @@
|
|
|
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.
|
|
70
|
+
"oxc-parser": "=0.139.0",
|
|
70
71
|
"pathe": "^2.0.3",
|
|
71
72
|
"remeda": "^2.34.1",
|
|
72
73
|
"rolldown-plugin-dts": "^0.26.0",
|
|
@@ -74,8 +75,8 @@
|
|
|
74
75
|
"signal-exit": "4.1.0",
|
|
75
76
|
"source-map": "0.7.6",
|
|
76
77
|
"typescript": "^6.0.0",
|
|
77
|
-
"valibot": "1.4.
|
|
78
|
-
"rolldown": "1.1.
|
|
78
|
+
"valibot": "1.4.2",
|
|
79
|
+
"rolldown": "1.1.5"
|
|
79
80
|
},
|
|
80
81
|
"napi": {
|
|
81
82
|
"binaryName": "rolldown-binding",
|
|
@@ -111,21 +112,21 @@
|
|
|
111
112
|
"node": "^20.19.0 || >=22.12.0"
|
|
112
113
|
},
|
|
113
114
|
"optionalDependencies": {
|
|
114
|
-
"@rolldown/binding-darwin-x64": "1.1.
|
|
115
|
-
"@rolldown/binding-win32-x64-msvc": "1.1.
|
|
116
|
-
"@rolldown/binding-linux-x64-gnu": "1.1.
|
|
117
|
-
"@rolldown/binding-linux-x64-musl": "1.1.
|
|
118
|
-
"@rolldown/binding-freebsd-x64": "1.1.
|
|
119
|
-
"@rolldown/binding-linux-arm-gnueabihf": "1.1.
|
|
120
|
-
"@rolldown/binding-linux-arm64-gnu": "1.1.
|
|
121
|
-
"@rolldown/binding-darwin-arm64": "1.1.
|
|
122
|
-
"@rolldown/binding-linux-arm64-musl": "1.1.
|
|
123
|
-
"@rolldown/binding-openharmony-arm64": "1.1.
|
|
124
|
-
"@rolldown/binding-win32-arm64-msvc": "1.1.
|
|
125
|
-
"@rolldown/binding-android-arm64": "1.1.
|
|
126
|
-
"@rolldown/binding-wasm32-wasi": "1.1.
|
|
127
|
-
"@rolldown/binding-linux-s390x-gnu": "1.1.
|
|
128
|
-
"@rolldown/binding-linux-ppc64-gnu": "1.1.
|
|
115
|
+
"@rolldown/binding-darwin-x64": "1.1.5",
|
|
116
|
+
"@rolldown/binding-win32-x64-msvc": "1.1.5",
|
|
117
|
+
"@rolldown/binding-linux-x64-gnu": "1.1.5",
|
|
118
|
+
"@rolldown/binding-linux-x64-musl": "1.1.5",
|
|
119
|
+
"@rolldown/binding-freebsd-x64": "1.1.5",
|
|
120
|
+
"@rolldown/binding-linux-arm-gnueabihf": "1.1.5",
|
|
121
|
+
"@rolldown/binding-linux-arm64-gnu": "1.1.5",
|
|
122
|
+
"@rolldown/binding-darwin-arm64": "1.1.5",
|
|
123
|
+
"@rolldown/binding-linux-arm64-musl": "1.1.5",
|
|
124
|
+
"@rolldown/binding-openharmony-arm64": "1.1.5",
|
|
125
|
+
"@rolldown/binding-win32-arm64-msvc": "1.1.5",
|
|
126
|
+
"@rolldown/binding-android-arm64": "1.1.5",
|
|
127
|
+
"@rolldown/binding-wasm32-wasi": "1.1.5",
|
|
128
|
+
"@rolldown/binding-linux-s390x-gnu": "1.1.5",
|
|
129
|
+
"@rolldown/binding-linux-ppc64-gnu": "1.1.5"
|
|
129
130
|
},
|
|
130
131
|
"scripts": {
|
|
131
132
|
"# Scrips for binding #": "_",
|