@rolldown/browser 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/{constructors-CnlRXsZI.js → constructors-Byrk1_73.js} +1 -1
- package/dist/{error-DOcnYe1L.js → error-DXre1AuB.js} +1 -1
- package/dist/experimental-index.browser.mjs +7 -6
- package/dist/experimental-index.d.mts +5 -5
- package/dist/experimental-index.mjs +7 -6
- package/dist/filter-index.d.mts +35 -1
- package/dist/index.browser.mjs +9 -3
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +9 -3
- package/dist/{normalize-string-or-regex-A9UIvc9j.js → normalize-string-or-regex-Ccke9UdD.js} +7 -1
- package/dist/parallel-plugin-worker.mjs +4 -3
- package/dist/parallel-plugin.d.mts +2 -2
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/parse-ast-index.mjs +2 -2
- package/dist/plugins-index.browser.mjs +2 -2
- package/dist/plugins-index.d.mts +3 -3
- package/dist/plugins-index.mjs +2 -2
- package/dist/{resolve-tsconfig-B_KTldgL.js → resolve-tsconfig-LwTDNg0M.js} +1 -1
- package/dist/rolldown-binding.wasi-browser.js +0 -1
- package/dist/rolldown-binding.wasi.cjs +0 -1
- package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/{rolldown-build-AEs_8s-I.js → rolldown-build-C-ytNE9x.js} +14 -13
- package/dist/shared/{binding-DyMVbTi5.d.mts → binding-BlEEMlGM.d.mts} +16 -4
- package/dist/shared/{bindingify-input-options-C6gxQEeC.mjs → bindingify-input-options-CwvtdwoA.mjs} +9 -11
- package/dist/shared/{constructors-CAjrhG6p.mjs → constructors-BahhbY0t.mjs} +1 -1
- package/dist/shared/{constructors-CDyv7p8V.d.mts → constructors-CxRN1nW0.d.mts} +2 -2
- package/dist/shared/{define-config-Tz8fY30o.d.mts → define-config-CJTbYTo8.d.mts} +81 -36
- package/dist/shared/dist-DKbukT1H.mjs +154 -0
- package/dist/shared/{load-config-C6ynET_w.mjs → load-config-DyE9Nsvv.mjs} +19 -2
- package/dist/shared/{logs-aMKUxRpj.mjs → logs-ZGEh6uhb.mjs} +6 -1
- package/dist/shared/{normalize-string-or-regex-CHVaSqeF.mjs → normalize-string-or-regex-D93Gs8X1.mjs} +1 -1
- package/dist/shared/{parse-DzXgx0D0.mjs → parse-zUvsghAI.mjs} +1 -1
- package/dist/shared/{prompt-B1Yc1NPt.mjs → prompt--dNycKSZ.mjs} +59 -17
- package/dist/shared/{rolldown-build-CVwFjky2.mjs → rolldown-build-_M7Yfopw.mjs} +31 -11
- package/dist/shared/{rolldown-ro17jDL2.mjs → rolldown-q16hbH0c.mjs} +1 -1
- package/dist/shared/{transform-DudVZDD5.d.mts → transform-BJ9ymllw.d.mts} +1 -1
- package/dist/shared/{utils-DLIXIK5m.d.mts → utils-CEyV6qve.d.mts} +1 -1
- package/dist/shared/{watch-DyYqAbie.mjs → watch-WLd1o3am.mjs} +3 -3
- package/dist/utils-index.browser.mjs +8 -6
- package/dist/utils-index.d.mts +3 -3
- package/dist/utils-index.mjs +7 -5
- package/package.json +1 -1
|
@@ -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,6 +1,6 @@
|
|
|
1
|
-
import { i as logInputHookInOutputPlugin, n as error } from "./logs-
|
|
2
|
-
import { n as BuiltinPlugin } from "./normalize-string-or-regex-
|
|
3
|
-
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 { i as logInputHookInOutputPlugin, n as error } from "./logs-ZGEh6uhb.mjs";
|
|
2
|
+
import { n as BuiltinPlugin } from "./normalize-string-or-regex-D93Gs8X1.mjs";
|
|
3
|
+
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-CwvtdwoA.mjs";
|
|
4
4
|
import { S as unimplemented } from "./filter-B_mD-HGz-Cbrk-2bt.mjs";
|
|
5
5
|
import { i as unwrapBindingResult } from "./error-B5cMIevi.mjs";
|
|
6
6
|
import { Worker } from "node:worker_threads";
|
|
@@ -1544,6 +1544,7 @@ const MinifyOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
1544
1544
|
function: /* @__PURE__ */ boolean(),
|
|
1545
1545
|
class: /* @__PURE__ */ boolean()
|
|
1546
1546
|
})])),
|
|
1547
|
+
reserved: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())),
|
|
1547
1548
|
debug: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1548
1549
|
})])),
|
|
1549
1550
|
codegen: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
|
|
@@ -1751,6 +1752,7 @@ const OutputOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
1751
1752
|
/* @__PURE__ */ literal("hidden")
|
|
1752
1753
|
])), /* @__PURE__ */ description(`Generate sourcemap (\`-s inline\` for inline, or \`-s\` for \`.map\` file)`)),
|
|
1753
1754
|
sourcemapBaseUrl: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Base URL used to prefix sourcemap paths")),
|
|
1755
|
+
sourcemapFileNames: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(ChunkFileNamesSchema), /* @__PURE__ */ description("Name pattern for emitted sourcemaps")),
|
|
1754
1756
|
sourcemapDebugIds: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Inject sourcemap debug IDs")),
|
|
1755
1757
|
sourcemapExcludeSources: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Exclude source content from sourcemaps")),
|
|
1756
1758
|
sourcemapIgnoreList: /* @__PURE__ */ optional(/* @__PURE__ */ union([
|
|
@@ -1824,7 +1826,7 @@ const OutputCliOverrideSchema = /* @__PURE__ */ strictObject({
|
|
|
1824
1826
|
codeSplitting: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
|
|
1825
1827
|
minSize: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ number()), /* @__PURE__ */ description("Minimum size of the chunk")),
|
|
1826
1828
|
minShareCount: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ number()), /* @__PURE__ */ description("Minimum share count of the chunk"))
|
|
1827
|
-
})])), /* @__PURE__ */ description("Code splitting options
|
|
1829
|
+
})])), /* @__PURE__ */ description("Code splitting options. Enabled by default; use `--no-codeSplitting` to disable, or `--codeSplitting.minSize` / `--codeSplitting.minShareCount` to configure")),
|
|
1828
1830
|
advancedChunks: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ strictObject({
|
|
1829
1831
|
minSize: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ number()), /* @__PURE__ */ description("Minimum size of the chunk")),
|
|
1830
1832
|
minShareCount: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ number()), /* @__PURE__ */ description("Minimum share count of the chunk"))
|
|
@@ -1846,6 +1848,7 @@ const CliOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
1846
1848
|
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.")),
|
|
1847
1849
|
version: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Show version number")),
|
|
1848
1850
|
watch: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Watch files in bundle and rebuild on changes")),
|
|
1851
|
+
configLoader: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("bundle"), /* @__PURE__ */ literal("native")])), /* @__PURE__ */ description("How to load the config file (bundle, native)")),
|
|
1849
1852
|
...InputCliOptionsSchema.entries,
|
|
1850
1853
|
...OutputCliOptionsSchema.entries
|
|
1851
1854
|
});
|
|
@@ -2565,7 +2568,9 @@ function box(text, _opts = {}) {
|
|
|
2565
2568
|
}
|
|
2566
2569
|
//#endregion
|
|
2567
2570
|
//#region ../../node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/index.mjs
|
|
2568
|
-
const r = Object.create(null)
|
|
2571
|
+
const r = Object.create(null);
|
|
2572
|
+
const i = (e) => globalThis.process?.env || import.meta.env || globalThis.Deno?.env.toObject() || globalThis.__env__ || (e ? r : globalThis);
|
|
2573
|
+
const o = new Proxy(r, {
|
|
2569
2574
|
get(e, s) {
|
|
2570
2575
|
return i()[s] ?? r[s];
|
|
2571
2576
|
},
|
|
@@ -2585,7 +2590,9 @@ const r = Object.create(null), i = (e) => globalThis.process?.env || import.meta
|
|
|
2585
2590
|
const e = i(true);
|
|
2586
2591
|
return Object.keys(e);
|
|
2587
2592
|
}
|
|
2588
|
-
})
|
|
2593
|
+
});
|
|
2594
|
+
const t = typeof process < "u" && process.env && process.env.NODE_ENV || "";
|
|
2595
|
+
const f = [
|
|
2589
2596
|
["APPVEYOR"],
|
|
2590
2597
|
[
|
|
2591
2598
|
"AWS_AMPLIFY",
|
|
@@ -2697,19 +2704,31 @@ l.name;
|
|
|
2697
2704
|
function n(e) {
|
|
2698
2705
|
return e ? e !== "false" : false;
|
|
2699
2706
|
}
|
|
2700
|
-
const I = globalThis.process?.platform || ""
|
|
2707
|
+
const I = globalThis.process?.platform || "";
|
|
2708
|
+
const T = n(o.CI) || l.ci !== false;
|
|
2709
|
+
const a = n(globalThis.process?.stdout && globalThis.process?.stdout.isTTY);
|
|
2710
|
+
const g = n(o.DEBUG);
|
|
2711
|
+
const R = t === "test" || n(o.TEST);
|
|
2701
2712
|
o.MINIMAL;
|
|
2702
2713
|
const A = /^win/i.test(I);
|
|
2703
2714
|
!n(o.NO_COLOR) && (n(o.FORCE_COLOR) || (a || A) && o.TERM);
|
|
2704
2715
|
const C = (globalThis.process?.versions?.node || "").replace(/^v/, "") || null;
|
|
2705
2716
|
Number(C?.split(".")[0]);
|
|
2706
|
-
const y = globalThis.process || Object.create(null)
|
|
2717
|
+
const y = globalThis.process || Object.create(null);
|
|
2718
|
+
const _ = { versions: {} };
|
|
2707
2719
|
new Proxy(y, { get(e, s) {
|
|
2708
2720
|
if (s === "env") return o;
|
|
2709
2721
|
if (s in e) return e[s];
|
|
2710
2722
|
if (s in _) return _[s];
|
|
2711
2723
|
} });
|
|
2712
|
-
const c = globalThis.process?.release?.name === "node"
|
|
2724
|
+
const c = globalThis.process?.release?.name === "node";
|
|
2725
|
+
const O = !!globalThis.Bun || !!globalThis.process?.versions?.bun;
|
|
2726
|
+
const D = !!globalThis.Deno;
|
|
2727
|
+
const L = !!globalThis.fastly;
|
|
2728
|
+
const S = !!globalThis.Netlify;
|
|
2729
|
+
const u = !!globalThis.EdgeRuntime;
|
|
2730
|
+
const N = globalThis.navigator?.userAgent === "Cloudflare-Workers";
|
|
2731
|
+
const F = [
|
|
2713
2732
|
[S, "netlify"],
|
|
2714
2733
|
[u, "edge-light"],
|
|
2715
2734
|
[N, "workerd"],
|
|
@@ -2867,7 +2886,7 @@ function createConsola(options = {}) {
|
|
|
2867
2886
|
defaults: { level },
|
|
2868
2887
|
stdout: process.stdout,
|
|
2869
2888
|
stderr: process.stderr,
|
|
2870
|
-
prompt: (...args) => import("./prompt
|
|
2889
|
+
prompt: (...args) => import("./prompt--dNycKSZ.mjs").then((m) => m.prompt(...args)),
|
|
2871
2890
|
reporters: options.reporters || [options.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()],
|
|
2872
2891
|
...options
|
|
2873
2892
|
});
|
|
@@ -2908,7 +2927,7 @@ function createTestingLogger() {
|
|
|
2908
2927
|
//#endregion
|
|
2909
2928
|
//#region src/utils/bindingify-output-options.ts
|
|
2910
2929
|
function bindingifyOutputOptions(outputOptions, pluginContextData) {
|
|
2911
|
-
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;
|
|
2930
|
+
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;
|
|
2912
2931
|
if (legalComments != null) logger.warn("`legalComments` option is deprecated, please use `comments.legal` instead.");
|
|
2913
2932
|
const { inlineDynamicImports, advancedChunks } = bindingifyCodeSplitting(outputOptions.codeSplitting, outputOptions.inlineDynamicImports, outputOptions.advancedChunks, manualChunks, pluginContextData);
|
|
2914
2933
|
return {
|
|
@@ -2920,6 +2939,7 @@ function bindingifyOutputOptions(outputOptions, pluginContextData) {
|
|
|
2920
2939
|
sourcemap: bindingifySourcemap(sourcemap),
|
|
2921
2940
|
sourcemapBaseUrl,
|
|
2922
2941
|
sourcemapDebugIds,
|
|
2942
|
+
sourcemapFileNames,
|
|
2923
2943
|
sourcemapExcludeSources,
|
|
2924
2944
|
sourcemapIgnoreList: sourcemapIgnoreList ?? /node_modules/,
|
|
2925
2945
|
sourcemapPathTransform,
|
|
@@ -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-_M7Yfopw.mjs";
|
|
2
2
|
//#region src/api/rolldown/index.ts
|
|
3
3
|
/**
|
|
4
4
|
* The API compatible with Rollup's `rollup` function.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
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-
|
|
1
|
+
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-BlEEMlGM.mjs";
|
|
2
2
|
import { a as RolldownLog } from "./logging-BSNejiLS.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/resolve-tsconfig.d.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { o as logMultipleWatcherOption } from "./logs-
|
|
2
|
-
import { v as LOG_LEVEL_WARN } from "./bindingify-input-options-
|
|
1
|
+
import { o as logMultipleWatcherOption } from "./logs-ZGEh6uhb.mjs";
|
|
2
|
+
import { v as LOG_LEVEL_WARN } from "./bindingify-input-options-CwvtdwoA.mjs";
|
|
3
3
|
import { y as arraify } from "./filter-B_mD-HGz-Cbrk-2bt.mjs";
|
|
4
|
-
import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-
|
|
4
|
+
import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-_M7Yfopw.mjs";
|
|
5
5
|
import { t as aggregateBindingErrorsIntoJsError } from "./error-B5cMIevi.mjs";
|
|
6
6
|
import { BindingWatcher, shutdownAsyncRuntime } from "../rolldown-binding.wasi.cjs";
|
|
7
7
|
//#region ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as parse, o as parseSync } from "./error-
|
|
2
|
-
import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./resolve-tsconfig-
|
|
3
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
1
|
+
import { a as parse, o as parseSync } from "./error-DXre1AuB.js";
|
|
2
|
+
import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./resolve-tsconfig-LwTDNg0M.js";
|
|
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/dist/utils-index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $ as AssignmentPattern, $n as TSInferType, $r as UpdateExpression, $t as JSXMemberExpression, An as SwitchStatement, Ar as TSTupleType, At as ForStatement, Bn as TSConstructorType, Br as TSTypeQuery, Bt as ImportNamespaceSpecifier, Cn as ReturnStatement, Cr as TSRestType, Ct as ExportAllDeclaration, Dn as StringLiteral, Dr as TSTemplateLiteralType, Dt as ExpressionStatement, En as StaticBlock, Er as TSSymbolKeyword, Et as ExportSpecifier, Fn as TSBooleanKeyword, Fr as TSTypeOperator, Ft as IfStatement, Gn as TSExternalModuleReference, Gr as TSVoidKeyword, Gt as JSXAttribute, Hn as TSEnumDeclaration, Hr as TSUndefinedKeyword, Ht as JSDocNonNullableType, In as TSCallSignatureDeclaration, Ir as TSTypeParameter, It as ImportAttribute, J as AccessorProperty, Jn as TSImportEqualsDeclaration, Jr as TemplateLiteral, Jt as JSXElement, Kn as TSFunctionType, Kr as TaggedTemplateExpression, Kt as JSXClosingElement, Ln as TSClassImplements, Lr as TSTypeParameterDeclaration, Lt as ImportDeclaration, Mn as TSArrayType, Mr as TSTypeAnnotation, Mt as Function, Nn as TSAsExpression, Nr as TSTypeAssertion, Nt as IdentifierName, On as Super, Or as TSThisParameter, Ot as ForInStatement, Pn as TSBigIntKeyword, Pr as TSTypeLiteral, Pt as IdentifierReference, Q as AssignmentExpression, Qn as TSIndexedAccessType, Qr as UnaryExpression, Qt as JSXIdentifier, Rn as TSConditionalType, Rr as TSTypeParameterInstantiation, Rt as ImportDefaultSpecifier, Sn as RegExpLiteral, Sr as TSQualifiedName, St as EmptyStatement, Tn as SpreadElement, Tr as TSStringKeyword, Tt as ExportNamedDeclaration, Un as TSEnumMember, Ur as TSUnionType, Ut as JSDocNullableType, Vn as TSEnumBody, Vr as TSTypeReference, Vt as ImportSpecifier, Wn as TSExportAssignment, Wr as TSUnknownKeyword, Wt as JSDocUnknownType, X as ArrayPattern, Xn as TSIndexSignature, Xr as ThrowStatement, Xt as JSXExpressionContainer, Y as ArrayExpression, Yn as TSImportType, Yr as ThisExpression, Yt as JSXEmptyExpression, Z as ArrowFunctionExpression, Zn as TSIndexSignatureName, Zr as TryStatement, Zt as JSXFragment, _ as BindingTsconfigRawOptions, _n as ObjectProperty, _r as TSObjectKeyword, _t as ConditionalExpression, ai as YieldExpression, an as JSXText, ar as TSIntrinsicKeyword, at as BinaryExpression, bn as Program, br as TSParenthesizedType, bt as Decorator, cn as LogicalExpression, cr as TSMethodSignature, ct as BindingRestElement, dn as MethodDefinition, dr as TSNamedTupleMember, dt as BreakStatement, ei as V8IntrinsicExpression, en as JSXNamespacedName, er as TSInstantiationExpression, et as AssignmentTargetProperty, fn as NewExpression, fr as TSNamespaceExportDeclaration, ft as CallExpression, g as BindingTsconfigCompilerOptions, gn as ObjectPattern, gr as TSNumberKeyword, gt as ClassBody, hn as ObjectExpression, hr as TSNullKeyword, ht as Class, ii as WithStatement, in as JSXSpreadChild, ir as TSIntersectionType, it as BigIntLiteral, jn as TSAnyKeyword, jr as TSTypeAliasDeclaration, jt as FormalParameterRest, kn as SwitchCase, kr as TSThisType, kt as ForOfStatement, ln as MemberExpression, lr as TSModuleBlock, lt as BlockStatement, mn as NumericLiteral, mr as TSNonNullExpression, mt as ChainExpression, ni as VariableDeclarator, nn as JSXOpeningFragment, nr as TSInterfaceDeclaration, nt as AssignmentTargetRest, oi as types_d_exports, on as LabelIdentifier, or as TSLiteralType, ot as BindingIdentifier, pn as NullLiteral, pr as TSNeverKeyword, pt as CatchClause, qn as TSGlobalDeclaration, qr as TemplateElement, qt as JSXClosingFragment, ri as WhileStatement, rn as JSXSpreadAttribute, rr as TSInterfaceHeritage, rt as AwaitExpression, sn as LabeledStatement, sr as TSMappedType, st as BindingProperty, ti as VariableDeclaration, tn as JSXOpeningElement, tr as TSInterfaceBody, tt as AssignmentTargetPropertyProperty, un as MetaProperty, ur as TSModuleDeclaration, ut as BooleanLiteral, vn as ParenthesizedExpression, vr as TSOptionalType, vt as ContinueStatement, wn as SequenceExpression, wr as TSSatisfiesExpression, wt as ExportDefaultDeclaration, xn as PropertyDefinition, xr as TSPropertySignature, xt as DoWhileStatement, yn as PrivateIdentifier, yr as TSParameterProperty, yt as DebuggerStatement, zn as TSConstructSignatureDeclaration, zr as TSTypePredicate, zt as ImportExpression } 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 AssignmentPattern, $n as TSInferType, $r as UpdateExpression, $t as JSXMemberExpression, An as SwitchStatement, Ar as TSTupleType, At as ForStatement, Bn as TSConstructorType, Br as TSTypeQuery, Bt as ImportNamespaceSpecifier, Cn as ReturnStatement, Cr as TSRestType, Ct as ExportAllDeclaration, Dn as StringLiteral, Dr as TSTemplateLiteralType, Dt as ExpressionStatement, En as StaticBlock, Er as TSSymbolKeyword, Et as ExportSpecifier, Fn as TSBooleanKeyword, Fr as TSTypeOperator, Ft as IfStatement, Gn as TSExternalModuleReference, Gr as TSVoidKeyword, Gt as JSXAttribute, Hn as TSEnumDeclaration, Hr as TSUndefinedKeyword, Ht as JSDocNonNullableType, In as TSCallSignatureDeclaration, Ir as TSTypeParameter, It as ImportAttribute, J as AccessorProperty, Jn as TSImportEqualsDeclaration, Jr as TemplateLiteral, Jt as JSXElement, Kn as TSFunctionType, Kr as TaggedTemplateExpression, Kt as JSXClosingElement, Ln as TSClassImplements, Lr as TSTypeParameterDeclaration, Lt as ImportDeclaration, Mn as TSArrayType, Mr as TSTypeAnnotation, Mt as Function, Nn as TSAsExpression, Nr as TSTypeAssertion, Nt as IdentifierName, On as Super, Or as TSThisParameter, Ot as ForInStatement, Pn as TSBigIntKeyword, Pr as TSTypeLiteral, Pt as IdentifierReference, Q as AssignmentExpression, Qn as TSIndexedAccessType, Qr as UnaryExpression, Qt as JSXIdentifier, Rn as TSConditionalType, Rr as TSTypeParameterInstantiation, Rt as ImportDefaultSpecifier, Sn as RegExpLiteral, Sr as TSQualifiedName, St as EmptyStatement, Tn as SpreadElement, Tr as TSStringKeyword, Tt as ExportNamedDeclaration, Un as TSEnumMember, Ur as TSUnionType, Ut as JSDocNullableType, Vn as TSEnumBody, Vr as TSTypeReference, Vt as ImportSpecifier, Wn as TSExportAssignment, Wr as TSUnknownKeyword, Wt as JSDocUnknownType, X as ArrayPattern, Xn as TSIndexSignature, Xr as ThrowStatement, Xt as JSXExpressionContainer, Y as ArrayExpression, Yn as TSImportType, Yr as ThisExpression, Yt as JSXEmptyExpression, Z as ArrowFunctionExpression, Zn as TSIndexSignatureName, Zr as TryStatement, Zt as JSXFragment, _ as BindingTsconfigRawOptions, _n as ObjectProperty, _r as TSObjectKeyword, _t as ConditionalExpression, ai as YieldExpression, an as JSXText, ar as TSIntrinsicKeyword, at as BinaryExpression, bn as Program, br as TSParenthesizedType, bt as Decorator, cn as LogicalExpression, cr as TSMethodSignature, ct as BindingRestElement, dn as MethodDefinition, dr as TSNamedTupleMember, dt as BreakStatement, ei as V8IntrinsicExpression, en as JSXNamespacedName, er as TSInstantiationExpression, et as AssignmentTargetProperty, fn as NewExpression, fr as TSNamespaceExportDeclaration, ft as CallExpression, g as BindingTsconfigCompilerOptions, gn as ObjectPattern, gr as TSNumberKeyword, gt as ClassBody, hn as ObjectExpression, hr as TSNullKeyword, ht as Class, ii as WithStatement, in as JSXSpreadChild, ir as TSIntersectionType, it as BigIntLiteral, jn as TSAnyKeyword, jr as TSTypeAliasDeclaration, jt as FormalParameterRest, kn as SwitchCase, kr as TSThisType, kt as ForOfStatement, ln as MemberExpression, lr as TSModuleBlock, lt as BlockStatement, mn as NumericLiteral, mr as TSNonNullExpression, mt as ChainExpression, ni as VariableDeclarator, nn as JSXOpeningFragment, nr as TSInterfaceDeclaration, nt as AssignmentTargetRest, oi as types_d_exports, on as LabelIdentifier, or as TSLiteralType, ot as BindingIdentifier, pn as NullLiteral, pr as TSNeverKeyword, pt as CatchClause, qn as TSGlobalDeclaration, qr as TemplateElement, qt as JSXClosingFragment, ri as WhileStatement, rn as JSXSpreadAttribute, rr as TSInterfaceHeritage, rt as AwaitExpression, sn as LabeledStatement, sr as TSMappedType, st as BindingProperty, ti as VariableDeclaration, tn as JSXOpeningElement, tr as TSInterfaceBody, tt as AssignmentTargetPropertyProperty, un as MetaProperty, ur as TSModuleDeclaration, ut as BooleanLiteral, vn as ParenthesizedExpression, vr as TSOptionalType, vt as ContinueStatement, wn as SequenceExpression, wr as TSSatisfiesExpression, wt as ExportDefaultDeclaration, xn as PropertyDefinition, xr as TSPropertySignature, xt as DoWhileStatement, yn as PrivateIdentifier, yr as TSParameterProperty, yt as DebuggerStatement, zn as TSConstructSignatureDeclaration, zr as TSTypePredicate, zt as ImportExpression } from "./shared/binding-BlEEMlGM.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-BJ9ymllw.mjs";
|
|
3
3
|
|
|
4
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
4
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.139.0/node_modules/oxc-parser/src-js/generated/visit/visitor.d.ts
|
|
5
5
|
interface VisitorObject$1 {
|
|
6
6
|
DebuggerStatement?: (node: DebuggerStatement) => void;
|
|
7
7
|
"DebuggerStatement:exit"?: (node: DebuggerStatement) => void;
|
package/dist/utils-index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as parseSync, t as parse } from "./shared/parse-
|
|
1
|
+
import { n as parseSync, t as parse } from "./shared/parse-zUvsghAI.mjs";
|
|
2
2
|
import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-DsK7KzKK.mjs";
|
|
3
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
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);
|