@rolldown/browser 1.0.0-beta.10-commit.ac4e5db → 1.0.0-beta.10-commit.81375fe
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.cjs +28 -29
- package/dist/cli.mjs +29 -56
- package/dist/config.cjs +2 -2
- package/dist/config.d.cts +1 -1
- package/dist/config.d.mts +1 -1
- package/dist/config.mjs +3 -3
- package/dist/experimental-index.browser.mjs +1 -1
- package/dist/experimental-index.cjs +1 -1
- package/dist/experimental-index.d.cts +1 -1
- package/dist/experimental-index.d.mts +1 -1
- package/dist/experimental-index.mjs +2 -2
- package/dist/filter-index.d.cts +1 -1
- package/dist/filter-index.d.mts +1 -1
- package/dist/filter-index.mjs +1 -1
- package/dist/index.browser.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +2 -2
- package/dist/parallel-plugin-worker.cjs +1 -1
- package/dist/parallel-plugin-worker.mjs +2 -2
- package/dist/parallel-plugin.d.cts +1 -1
- package/dist/parallel-plugin.d.mts +1 -1
- package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/shared/{define-config.d-DII1FzpF.d.cts → define-config.d-BDJzbjFe.d.mts} +3 -2
- package/dist/shared/{define-config.d-BBxr6_Bs.d.mts → define-config.d-C0X0fNDk.d.cts} +4 -3
- package/dist/shared/{dist-JdACkHJM.mjs → dist-BoWaIc-K.mjs} +1 -1
- package/dist/shared/{load-config-DHiFIPc1.cjs → load-config-Cr472rVH.cjs} +1 -1
- package/dist/shared/{load-config-DXspXfGi.mjs → load-config-a5TDbL5U.mjs} +1 -1
- package/dist/shared/{src-DYeE276c.cjs → src-Cd6dJVwS.cjs} +237 -98
- package/dist/shared/{src-CrAobyBl.mjs → src-Mp5z-lgE.mjs} +259 -100
- package/dist/{src-Bhvm4CGb.js → src--mQWdm3h.js} +269 -110
- package/package.json +2 -6
|
@@ -1,9 +1,34 @@
|
|
|
1
1
|
import { BindingCallableBuiltinPlugin, BindingHookSideEffects, BindingJsx, BindingLogLevel, BindingPluginOrder, BindingWatcher, Bundler, parseSync, shutdownAsyncRuntime, startAsyncRuntime } from "./rolldown-binding.wasi-browser.js";
|
|
2
|
-
import path from "
|
|
3
|
-
import colors from "ansis";
|
|
2
|
+
import path from "node:path";
|
|
4
3
|
|
|
4
|
+
//#region rolldown:runtime
|
|
5
|
+
var __create = Object.create;
|
|
6
|
+
var __defProp = Object.defineProperty;
|
|
7
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
8
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
9
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
10
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
|
+
var __commonJS = (cb, mod) => function() {
|
|
12
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
13
|
+
};
|
|
14
|
+
var __copyProps = (to, from, except, desc) => {
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i$2 = 0, n$1 = keys.length, key; i$2 < n$1; i$2++) {
|
|
16
|
+
key = keys[i$2];
|
|
17
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
18
|
+
get: ((k) => from[k]).bind(null, key),
|
|
19
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
return to;
|
|
23
|
+
};
|
|
24
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
25
|
+
value: mod,
|
|
26
|
+
enumerable: true
|
|
27
|
+
}) : target, mod));
|
|
28
|
+
|
|
29
|
+
//#endregion
|
|
5
30
|
//#region package.json
|
|
6
|
-
var version = "1.0.0-beta.10-commit.
|
|
31
|
+
var version = "1.0.0-beta.10-commit.81375fe";
|
|
7
32
|
|
|
8
33
|
//#endregion
|
|
9
34
|
//#region src/builtin-plugin/utils.ts
|
|
@@ -186,18 +211,18 @@ function rangeContains(range, index) {
|
|
|
186
211
|
function getLocator(source, options = {}) {
|
|
187
212
|
const { offsetLine = 0, offsetColumn = 0 } = options;
|
|
188
213
|
let start = 0;
|
|
189
|
-
const ranges = source.split("\n").map((line, i$
|
|
214
|
+
const ranges = source.split("\n").map((line, i$3) => {
|
|
190
215
|
const end = start + line.length + 1;
|
|
191
216
|
/** @type {import('./types').Range} */
|
|
192
217
|
const range = {
|
|
193
218
|
start,
|
|
194
219
|
end,
|
|
195
|
-
line: i$
|
|
220
|
+
line: i$3
|
|
196
221
|
};
|
|
197
222
|
start = end;
|
|
198
223
|
return range;
|
|
199
224
|
});
|
|
200
|
-
let i$
|
|
225
|
+
let i$2 = 0;
|
|
201
226
|
/**
|
|
202
227
|
* @param {string | number} search
|
|
203
228
|
* @param {number} [index]
|
|
@@ -206,16 +231,16 @@ function getLocator(source, options = {}) {
|
|
|
206
231
|
function locator(search, index) {
|
|
207
232
|
if (typeof search === "string") search = source.indexOf(search, index ?? 0);
|
|
208
233
|
if (search === -1) return void 0;
|
|
209
|
-
let range = ranges[i$
|
|
210
|
-
const d$
|
|
234
|
+
let range = ranges[i$2];
|
|
235
|
+
const d$2 = search >= range.end ? 1 : -1;
|
|
211
236
|
while (range) {
|
|
212
237
|
if (rangeContains(range, search)) return {
|
|
213
238
|
line: offsetLine + range.line,
|
|
214
239
|
column: offsetColumn + search - range.start,
|
|
215
240
|
character: search
|
|
216
241
|
};
|
|
217
|
-
i$
|
|
218
|
-
range = ranges[i$
|
|
242
|
+
i$2 += d$2;
|
|
243
|
+
range = ranges[i$2];
|
|
219
244
|
}
|
|
220
245
|
}
|
|
221
246
|
return locator;
|
|
@@ -539,8 +564,8 @@ var MinimalPluginContextImpl = class {
|
|
|
539
564
|
watchMode
|
|
540
565
|
};
|
|
541
566
|
}
|
|
542
|
-
error(e) {
|
|
543
|
-
return error(logPluginError(normalizeLog(e), this.pluginName, { hook: this.hookName }));
|
|
567
|
+
error(e$1) {
|
|
568
|
+
return error(logPluginError(normalizeLog(e$1), this.pluginName, { hook: this.hookName }));
|
|
544
569
|
}
|
|
545
570
|
};
|
|
546
571
|
|
|
@@ -1494,6 +1519,25 @@ function unionAsync(options, message2) {
|
|
|
1494
1519
|
};
|
|
1495
1520
|
}
|
|
1496
1521
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1522
|
+
function void_(message2) {
|
|
1523
|
+
return {
|
|
1524
|
+
kind: "schema",
|
|
1525
|
+
type: "void",
|
|
1526
|
+
reference: void_,
|
|
1527
|
+
expects: "void",
|
|
1528
|
+
async: false,
|
|
1529
|
+
message: message2,
|
|
1530
|
+
get "~standard"() {
|
|
1531
|
+
return /* @__PURE__ */ _getStandardProps(this);
|
|
1532
|
+
},
|
|
1533
|
+
"~run"(dataset, config2) {
|
|
1534
|
+
if (dataset.value === void 0) dataset.typed = true;
|
|
1535
|
+
else _addIssue(this, "type", dataset, config2);
|
|
1536
|
+
return dataset;
|
|
1537
|
+
}
|
|
1538
|
+
};
|
|
1539
|
+
}
|
|
1540
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
1497
1541
|
function omit(schema, keys) {
|
|
1498
1542
|
const entries2 = { ...schema.entries };
|
|
1499
1543
|
for (const key of keys) delete entries2[key];
|
|
@@ -1557,6 +1601,117 @@ function safeParse(schema, input, config2) {
|
|
|
1557
1601
|
};
|
|
1558
1602
|
}
|
|
1559
1603
|
|
|
1604
|
+
//#endregion
|
|
1605
|
+
//#region ../../node_modules/.pnpm/ansis@4.1.0/node_modules/ansis/index.cjs
|
|
1606
|
+
var require_ansis = __commonJS({ "../../node_modules/.pnpm/ansis@4.1.0/node_modules/ansis/index.cjs"(exports, module) {
|
|
1607
|
+
let e, t$1, r, { defineProperty: n, setPrototypeOf: l, create: o, keys: s } = Object, i$1 = "", { round: c, max: a$1 } = Math, p = (e$1) => {
|
|
1608
|
+
let t$2 = /([a-f\d]{3,6})/i.exec(e$1)?.[1], r$1 = t$2?.length, n$1 = parseInt(6 ^ r$1 ? 3 ^ r$1 ? "0" : t$2[0] + t$2[0] + t$2[1] + t$2[1] + t$2[2] + t$2[2] : t$2, 16);
|
|
1609
|
+
return [
|
|
1610
|
+
n$1 >> 16 & 255,
|
|
1611
|
+
n$1 >> 8 & 255,
|
|
1612
|
+
255 & n$1
|
|
1613
|
+
];
|
|
1614
|
+
}, u$2 = (e$1, t$2, r$1) => e$1 ^ t$2 || t$2 ^ r$1 ? 16 + 36 * c(e$1 / 51) + 6 * c(t$2 / 51) + c(r$1 / 51) : 8 > e$1 ? 16 : e$1 > 248 ? 231 : c(24 * (e$1 - 8) / 247) + 232, d$1 = (e$1) => {
|
|
1615
|
+
let t$2, r$1, n$1, l$1, o$1;
|
|
1616
|
+
return 8 > e$1 ? 30 + e$1 : 16 > e$1 ? e$1 - 8 + 90 : (232 > e$1 ? (o$1 = (e$1 -= 16) % 36, t$2 = (e$1 / 36 | 0) / 5, r$1 = (o$1 / 6 | 0) / 5, n$1 = o$1 % 6 / 5) : t$2 = r$1 = n$1 = (10 * (e$1 - 232) + 8) / 255, l$1 = 2 * a$1(t$2, r$1, n$1), l$1 ? 30 + (c(n$1) << 2 | c(r$1) << 1 | c(t$2)) + (2 ^ l$1 ? 0 : 60) : 30);
|
|
1617
|
+
}, g = (() => {
|
|
1618
|
+
let r$1 = (e$1) => o$1.some((t$2) => e$1.test(t$2)), n$1 = globalThis, l$1 = n$1.process ?? {}, o$1 = l$1.argv ?? [], i$2 = l$1.env ?? {}, c$1 = -1;
|
|
1619
|
+
try {
|
|
1620
|
+
e = "," + s(i$2).join(",");
|
|
1621
|
+
} catch (e$1) {
|
|
1622
|
+
i$2 = {}, c$1 = 0;
|
|
1623
|
+
}
|
|
1624
|
+
let a$2 = "FORCE_COLOR", p$1 = {
|
|
1625
|
+
false: 0,
|
|
1626
|
+
0: 0,
|
|
1627
|
+
1: 1,
|
|
1628
|
+
2: 2,
|
|
1629
|
+
3: 3
|
|
1630
|
+
}[i$2[a$2]] ?? -1, u$3 = a$2 in i$2 && p$1 || r$1(/^--color=?(true|always)?$/);
|
|
1631
|
+
return u$3 && (c$1 = p$1), ~c$1 || (c$1 = ((r$2, n$2, l$2) => (t$1 = r$2.TERM, {
|
|
1632
|
+
"24bit": 3,
|
|
1633
|
+
truecolor: 3,
|
|
1634
|
+
ansi256: 2,
|
|
1635
|
+
ansi: 1
|
|
1636
|
+
}[r$2.COLORTERM] || (r$2.CI ? /,GITHUB/.test(e) ? 3 : 1 : n$2 && "dumb" !== t$1 ? l$2 ? 3 : /-256/.test(t$1) ? 2 : 1 : 0)))(i$2, !!i$2.PM2_HOME || i$2.NEXT_RUNTIME?.includes("edge") || !!l$1.stdout?.isTTY, "win32" === l$1.platform)), !p$1 || i$2.NO_COLOR || r$1(/^--(no-color|color=(false|never))$/) ? 0 : n$1.window?.chrome || u$3 && !c$1 ? 3 : c$1;
|
|
1637
|
+
})(), f = {
|
|
1638
|
+
open: i$1,
|
|
1639
|
+
close: i$1
|
|
1640
|
+
}, h = 39, b = 49, O = {}, m = ({ p: e$1 }, { open: t$2, close: n$1 }) => {
|
|
1641
|
+
let o$1 = (e$2, ...r$1) => {
|
|
1642
|
+
if (!e$2) {
|
|
1643
|
+
if (t$2 && t$2 === n$1) return t$2;
|
|
1644
|
+
if ((e$2 ?? i$1) === i$1) return i$1;
|
|
1645
|
+
}
|
|
1646
|
+
let l$1, s$2 = e$2.raw ? String.raw({ raw: e$2 }, ...r$1) : i$1 + e$2, c$2 = o$1.p, a$2 = c$2.o, p$1 = c$2.c;
|
|
1647
|
+
if (s$2.includes("\x1B")) for (; c$2; c$2 = c$2.p) {
|
|
1648
|
+
let { open: e$3, close: t$3 } = c$2, r$2 = t$3.length, n$2 = i$1, o$2 = 0;
|
|
1649
|
+
if (r$2) for (; ~(l$1 = s$2.indexOf(t$3, o$2)); o$2 = l$1 + r$2) n$2 += s$2.slice(o$2, l$1) + e$3;
|
|
1650
|
+
s$2 = n$2 + s$2.slice(o$2);
|
|
1651
|
+
}
|
|
1652
|
+
return a$2 + (s$2.includes("\n") ? s$2.replace(/(\r?\n)/g, p$1 + "$1" + a$2) : s$2) + p$1;
|
|
1653
|
+
}, s$1 = t$2, c$1 = n$1;
|
|
1654
|
+
return e$1 && (s$1 = e$1.o + t$2, c$1 = n$1 + e$1.c), l(o$1, r), o$1.p = {
|
|
1655
|
+
open: t$2,
|
|
1656
|
+
close: n$1,
|
|
1657
|
+
o: s$1,
|
|
1658
|
+
c: c$1,
|
|
1659
|
+
p: e$1
|
|
1660
|
+
}, o$1.open = s$1, o$1.close = c$1, o$1;
|
|
1661
|
+
};
|
|
1662
|
+
const w = function(e$1 = g) {
|
|
1663
|
+
let t$2 = {
|
|
1664
|
+
Ansis: w,
|
|
1665
|
+
level: e$1,
|
|
1666
|
+
isSupported: () => s$1,
|
|
1667
|
+
strip: (e$2) => e$2.replace(/[][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g, i$1),
|
|
1668
|
+
extend(e$2) {
|
|
1669
|
+
for (let t$3 in e$2) {
|
|
1670
|
+
let r$1 = e$2[t$3], l$1 = (typeof r$1)[0], o$1 = "s" === l$1 ? x(...p(r$1)) : r$1;
|
|
1671
|
+
O[t$3] = "f" === l$1 ? { get() {
|
|
1672
|
+
return (...e$3) => m(this, r$1(...e$3));
|
|
1673
|
+
} } : { get() {
|
|
1674
|
+
let e$3 = m(this, o$1);
|
|
1675
|
+
return n(this, t$3, { value: e$3 }), e$3;
|
|
1676
|
+
} };
|
|
1677
|
+
}
|
|
1678
|
+
return r = o({}, O), l(t$2, r), t$2;
|
|
1679
|
+
}
|
|
1680
|
+
}, s$1 = e$1 > 0, c$1 = (e$2, t$3) => s$1 ? {
|
|
1681
|
+
open: `[${e$2}m`,
|
|
1682
|
+
close: `[${t$3}m`
|
|
1683
|
+
} : f, a$2 = (e$2) => (t$3) => e$2(...p(t$3)), y$1 = (e$2, t$3) => (r$1, n$1, l$1) => c$1(`${e$2}8;2;${r$1};${n$1};${l$1}`, t$3), R = (e$2, t$3) => (r$1, n$1, l$1) => c$1(((e$3, t$4, r$2) => d$1(u$2(e$3, t$4, r$2)))(r$1, n$1, l$1) + e$2, t$3), $ = (e$2) => (t$3, r$1, n$1) => e$2(u$2(t$3, r$1, n$1)), x = y$1(3, h), T = y$1(4, b), v = (e$2) => c$1("38;5;" + e$2, h), C = (e$2) => c$1("48;5;" + e$2, b);
|
|
1684
|
+
2 === e$1 ? (x = $(v), T = $(C)) : 1 === e$1 && (x = R(0, h), T = R(10, b), v = (e$2) => c$1(d$1(e$2), h), C = (e$2) => c$1(d$1(e$2) + 10, b));
|
|
1685
|
+
let E, M = {
|
|
1686
|
+
fg: v,
|
|
1687
|
+
bg: C,
|
|
1688
|
+
rgb: x,
|
|
1689
|
+
bgRgb: T,
|
|
1690
|
+
hex: a$2(x),
|
|
1691
|
+
bgHex: a$2(T),
|
|
1692
|
+
visible: f,
|
|
1693
|
+
reset: c$1(0, 0),
|
|
1694
|
+
bold: c$1(1, 22),
|
|
1695
|
+
dim: c$1(2, 22),
|
|
1696
|
+
italic: c$1(3, 23),
|
|
1697
|
+
underline: c$1(4, 24),
|
|
1698
|
+
inverse: c$1(7, 27),
|
|
1699
|
+
hidden: c$1(8, 28),
|
|
1700
|
+
strikethrough: c$1(9, 29)
|
|
1701
|
+
}, I = "Bright";
|
|
1702
|
+
return "black,red,green,yellow,blue,magenta,cyan,white,gray".split(",").map((e$2, t$3) => {
|
|
1703
|
+
E = "bg" + e$2[0].toUpperCase() + e$2.slice(1), 8 > t$3 ? (M[e$2 + I] = c$1(90 + t$3, h), M[E + I] = c$1(100 + t$3, b)) : t$3 = 60, M[e$2] = c$1(30 + t$3, h), M[E] = c$1(40 + t$3, b);
|
|
1704
|
+
}), t$2.extend(M);
|
|
1705
|
+
}, y = new w();
|
|
1706
|
+
module.exports = y, y.default = y;
|
|
1707
|
+
} });
|
|
1708
|
+
|
|
1709
|
+
//#endregion
|
|
1710
|
+
//#region ../../node_modules/.pnpm/ansis@4.1.0/node_modules/ansis/index.mjs
|
|
1711
|
+
var import_ansis = __toESM(require_ansis(), 1);
|
|
1712
|
+
var ansis_default = import_ansis.default;
|
|
1713
|
+
const { Ansis, fg, bg, rgb, bgRgb, hex, bgHex, reset, inverse, hidden, visible, bold, dim, italic, underline, strikethrough, black, red, green, yellow, blue, magenta, cyan, white, gray, redBright, greenBright, yellowBright, blueBright, magentaBright, cyanBright, whiteBright, bgBlack, bgRed, bgGreen, bgYellow, bgBlue, bgMagenta, bgCyan, bgWhite, bgGray, bgRedBright, bgGreenBright, bgYellowBright, bgBlueBright, bgMagentaBright, bgCyanBright, bgWhiteBright } = import_ansis.default;
|
|
1714
|
+
|
|
1560
1715
|
//#endregion
|
|
1561
1716
|
//#region src/utils/validator.ts
|
|
1562
1717
|
const StringOrRegExpSchema = union([string(), instance(RegExp)]);
|
|
@@ -1712,10 +1867,10 @@ const InputOptionsSchema = strictObject({
|
|
|
1712
1867
|
literal("browser"),
|
|
1713
1868
|
literal("neutral"),
|
|
1714
1869
|
literal("node")
|
|
1715
|
-
])), description(`Platform for which the code should be generated (node, ${
|
|
1870
|
+
])), description(`Platform for which the code should be generated (node, ${ansis_default.underline("browser")}, neutral)`)),
|
|
1716
1871
|
shimMissingExports: pipe(optional(boolean()), description("Create shim variables for missing exports")),
|
|
1717
1872
|
treeshake: optional(TreeshakingOptionsSchema),
|
|
1718
|
-
logLevel: pipe(optional(LogLevelOptionSchema), description(`Log level (${
|
|
1873
|
+
logLevel: pipe(optional(LogLevelOptionSchema), description(`Log level (${ansis_default.dim("silent")}, ${ansis_default.underline(ansis_default.gray("info"))}, debug, ${ansis_default.yellow("warn")})`)),
|
|
1719
1874
|
onLog: optional(OnLogSchema),
|
|
1720
1875
|
onwarn: optional(OnwarnSchema),
|
|
1721
1876
|
moduleTypes: pipe(optional(ModuleTypesSchema), description("Module types for customized extensions")),
|
|
@@ -1783,7 +1938,11 @@ const AdvancedChunksSchema = strictObject({
|
|
|
1783
1938
|
minShareCount: optional(number()),
|
|
1784
1939
|
groups: optional(array(strictObject({
|
|
1785
1940
|
name: string(),
|
|
1786
|
-
test: optional(union([
|
|
1941
|
+
test: optional(union([
|
|
1942
|
+
string(),
|
|
1943
|
+
instance(RegExp),
|
|
1944
|
+
pipe(function_(), args(tuple([string()])), returns(union([nullish(boolean()), void_()])))
|
|
1945
|
+
])),
|
|
1787
1946
|
priority: optional(number()),
|
|
1788
1947
|
minSize: optional(number()),
|
|
1789
1948
|
minShareCount: optional(number()),
|
|
@@ -1800,18 +1959,18 @@ const OutputOptionsSchema = strictObject({
|
|
|
1800
1959
|
literal("named"),
|
|
1801
1960
|
literal("default"),
|
|
1802
1961
|
literal("none")
|
|
1803
|
-
])), description(`Specify a export mode (${
|
|
1962
|
+
])), description(`Specify a export mode (${ansis_default.underline("auto")}, named, default, none)`)),
|
|
1804
1963
|
hashCharacters: pipe(optional(union([
|
|
1805
1964
|
literal("base64"),
|
|
1806
1965
|
literal("base36"),
|
|
1807
1966
|
literal("hex")
|
|
1808
1967
|
])), description("Use the specified character set for file hashes")),
|
|
1809
|
-
format: pipe(optional(ModuleFormatSchema), description(`Output format of the generated bundle (supports ${
|
|
1968
|
+
format: pipe(optional(ModuleFormatSchema), description(`Output format of the generated bundle (supports ${ansis_default.underline("esm")}, cjs, and iife)`)),
|
|
1810
1969
|
sourcemap: pipe(optional(union([
|
|
1811
1970
|
boolean(),
|
|
1812
1971
|
literal("inline"),
|
|
1813
1972
|
literal("hidden")
|
|
1814
|
-
])), description(`Generate sourcemap (\`-s inline\` for inline, or ${
|
|
1973
|
+
])), description(`Generate sourcemap (\`-s inline\` for inline, or ${ansis_default.bold("pass the `-s` on the last argument if you want to generate `.map` file")})`)),
|
|
1815
1974
|
sourcemapDebugIds: pipe(optional(boolean()), description("Inject sourcemap debug IDs")),
|
|
1816
1975
|
sourcemapIgnoreList: optional(union([boolean(), custom(() => true)])),
|
|
1817
1976
|
sourcemapPathTransform: optional(custom(() => true)),
|
|
@@ -1850,7 +2009,7 @@ const OutputOptionsSchema = strictObject({
|
|
|
1850
2009
|
virtualDirname: optional(string())
|
|
1851
2010
|
});
|
|
1852
2011
|
const getAddonDescription = (placement, wrapper) => {
|
|
1853
|
-
return `Code to insert the ${
|
|
2012
|
+
return `Code to insert the ${ansis_default.bold(placement)} of the bundled file (${ansis_default.bold(wrapper)} the wrapper function)`;
|
|
1854
2013
|
};
|
|
1855
2014
|
const OutputCliOverrideSchema = strictObject({
|
|
1856
2015
|
assetFileNames: pipe(optional(string()), description("Name pattern for asset files")),
|
|
@@ -1898,7 +2057,7 @@ function validateOption(key, options) {
|
|
|
1898
2057
|
const issuePaths = issue.path.map((path$1) => path$1.key);
|
|
1899
2058
|
let issueMsg = issue.message;
|
|
1900
2059
|
if (issue.type === "union") {
|
|
1901
|
-
const subIssue = issue.issues?.find((i$
|
|
2060
|
+
const subIssue = issue.issues?.find((i$2) => !(i$2.type !== issue.received && i$2.input === issue.input));
|
|
1902
2061
|
if (subIssue) {
|
|
1903
2062
|
if (subIssue.path) issuePaths.push(subIssue.path.map((path$1) => path$1.key));
|
|
1904
2063
|
issueMsg = subIssue.message;
|
|
@@ -1953,8 +2112,8 @@ function bindingifySourcemap(map) {
|
|
|
1953
2112
|
file: map.file ?? void 0,
|
|
1954
2113
|
mappings: map.mappings,
|
|
1955
2114
|
sourceRoot: "sourceRoot" in map ? map.sourceRoot ?? void 0 : void 0,
|
|
1956
|
-
sources: map.sources?.map((s) => s ?? void 0),
|
|
1957
|
-
sourcesContent: map.sourcesContent?.map((s) => s ?? void 0),
|
|
2115
|
+
sources: map.sources?.map((s$1) => s$1 ?? void 0),
|
|
2116
|
+
sourcesContent: map.sourcesContent?.map((s$1) => s$1 ?? void 0),
|
|
1958
2117
|
names: map.names,
|
|
1959
2118
|
x_google_ignoreList: map.x_google_ignoreList,
|
|
1960
2119
|
debugId: "debugId" in map ? map.debugId : void 0
|
|
@@ -1964,19 +2123,19 @@ function bindingifySourcemap(map) {
|
|
|
1964
2123
|
//#endregion
|
|
1965
2124
|
//#region src/utils/error.ts
|
|
1966
2125
|
function normalizeErrors(rawErrors) {
|
|
1967
|
-
const errors = rawErrors.map((e) => e instanceof Error ? e : Object.assign(new Error(), {
|
|
1968
|
-
kind: e.kind,
|
|
1969
|
-
message: e.message,
|
|
2126
|
+
const errors = rawErrors.map((e$1) => e$1 instanceof Error ? e$1 : Object.assign(new Error(), {
|
|
2127
|
+
kind: e$1.kind,
|
|
2128
|
+
message: e$1.message,
|
|
1970
2129
|
stack: void 0
|
|
1971
2130
|
}));
|
|
1972
2131
|
let summary = `Build failed with ${errors.length} error${errors.length < 2 ? "" : "s"}:\n`;
|
|
1973
|
-
for (let i$
|
|
2132
|
+
for (let i$2 = 0; i$2 < errors.length; i$2++) {
|
|
1974
2133
|
summary += "\n";
|
|
1975
|
-
if (i$
|
|
2134
|
+
if (i$2 >= 5) {
|
|
1976
2135
|
summary += "...";
|
|
1977
2136
|
break;
|
|
1978
2137
|
}
|
|
1979
|
-
summary += getErrorMessage(errors[i$
|
|
2138
|
+
summary += getErrorMessage(errors[i$2]);
|
|
1980
2139
|
}
|
|
1981
2140
|
const wrapper = new Error(summary);
|
|
1982
2141
|
Object.defineProperty(wrapper, "errors", {
|
|
@@ -1991,21 +2150,21 @@ function normalizeErrors(rawErrors) {
|
|
|
1991
2150
|
});
|
|
1992
2151
|
return wrapper;
|
|
1993
2152
|
}
|
|
1994
|
-
function getErrorMessage(e) {
|
|
1995
|
-
if (Object.hasOwn(e, "kind")) return e.message;
|
|
1996
|
-
let s = "";
|
|
1997
|
-
if (e.plugin) s += `[plugin ${e.plugin}]`;
|
|
1998
|
-
const id$1 = e.id ?? e.loc?.file;
|
|
2153
|
+
function getErrorMessage(e$1) {
|
|
2154
|
+
if (Object.hasOwn(e$1, "kind")) return e$1.message;
|
|
2155
|
+
let s$1 = "";
|
|
2156
|
+
if (e$1.plugin) s$1 += `[plugin ${e$1.plugin}]`;
|
|
2157
|
+
const id$1 = e$1.id ?? e$1.loc?.file;
|
|
1999
2158
|
if (id$1) {
|
|
2000
|
-
s += " " + id$1;
|
|
2001
|
-
if (e.loc) s += `:${e.loc.line}:${e.loc.column}`;
|
|
2159
|
+
s$1 += " " + id$1;
|
|
2160
|
+
if (e$1.loc) s$1 += `:${e$1.loc.line}:${e$1.loc.column}`;
|
|
2002
2161
|
}
|
|
2003
|
-
if (s) s += "\n";
|
|
2004
|
-
const message = `${e.name ?? "Error"}: ${e.message}`;
|
|
2005
|
-
s += message;
|
|
2006
|
-
if (e.frame) s = joinNewLine(s, e.frame);
|
|
2007
|
-
if (e.stack) s = joinNewLine(s, e.stack.replace(message, ""));
|
|
2008
|
-
return s;
|
|
2162
|
+
if (s$1) s$1 += "\n";
|
|
2163
|
+
const message = `${e$1.name ?? "Error"}: ${e$1.message}`;
|
|
2164
|
+
s$1 += message;
|
|
2165
|
+
if (e$1.frame) s$1 = joinNewLine(s$1, e$1.frame);
|
|
2166
|
+
if (e$1.stack) s$1 = joinNewLine(s$1, e$1.stack.replace(message, ""));
|
|
2167
|
+
return s$1;
|
|
2009
2168
|
}
|
|
2010
2169
|
function joinNewLine(s1, s2) {
|
|
2011
2170
|
return s1.replace(/\n+$/, "") + "\n" + s2.replace(/^\n+/, "");
|
|
@@ -2145,49 +2304,49 @@ function exclude(expr) {
|
|
|
2145
2304
|
}
|
|
2146
2305
|
|
|
2147
2306
|
//#endregion
|
|
2148
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2149
|
-
function u$1(o, n, a) {
|
|
2150
|
-
let t$
|
|
2151
|
-
return a === void 0 ? t$
|
|
2152
|
-
lazy: a,
|
|
2153
|
-
lazyArgs: n
|
|
2307
|
+
//#region ../../node_modules/.pnpm/remeda@2.22.3/node_modules/remeda/dist/chunk-D6FCK2GA.js
|
|
2308
|
+
function u$1(o$1, n$1, a$2) {
|
|
2309
|
+
let t$2 = (r$1) => o$1(r$1, ...n$1);
|
|
2310
|
+
return a$2 === void 0 ? t$2 : Object.assign(t$2, {
|
|
2311
|
+
lazy: a$2,
|
|
2312
|
+
lazyArgs: n$1
|
|
2154
2313
|
});
|
|
2155
2314
|
}
|
|
2156
2315
|
|
|
2157
2316
|
//#endregion
|
|
2158
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2159
|
-
function u(r, n, o) {
|
|
2160
|
-
let a = r.length - n.length;
|
|
2161
|
-
if (a === 0) return r(...n);
|
|
2162
|
-
if (a === 1) return u$1(r, n, o);
|
|
2317
|
+
//#region ../../node_modules/.pnpm/remeda@2.22.3/node_modules/remeda/dist/chunk-WIMGWYZL.js
|
|
2318
|
+
function u(r$1, n$1, o$1) {
|
|
2319
|
+
let a$2 = r$1.length - n$1.length;
|
|
2320
|
+
if (a$2 === 0) return r$1(...n$1);
|
|
2321
|
+
if (a$2 === 1) return u$1(r$1, n$1, o$1);
|
|
2163
2322
|
throw new Error("Wrong number of arguments");
|
|
2164
2323
|
}
|
|
2165
2324
|
|
|
2166
2325
|
//#endregion
|
|
2167
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2168
|
-
function d(...r) {
|
|
2169
|
-
return u(i, r);
|
|
2170
|
-
}
|
|
2171
|
-
var i = (r, t$
|
|
2172
|
-
let a = [[], []];
|
|
2173
|
-
for (let [o, e] of r.entries()) t$
|
|
2174
|
-
return a;
|
|
2326
|
+
//#region ../../node_modules/.pnpm/remeda@2.22.3/node_modules/remeda/dist/chunk-3IFJP4R5.js
|
|
2327
|
+
function d(...r$1) {
|
|
2328
|
+
return u(i, r$1);
|
|
2329
|
+
}
|
|
2330
|
+
var i = (r$1, t$2) => {
|
|
2331
|
+
let a$2 = [[], []];
|
|
2332
|
+
for (let [o$1, e$1] of r$1.entries()) t$2(e$1, o$1, r$1) ? a$2[0].push(e$1) : a$2[1].push(e$1);
|
|
2333
|
+
return a$2;
|
|
2175
2334
|
};
|
|
2176
2335
|
|
|
2177
2336
|
//#endregion
|
|
2178
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2179
|
-
function t(...n) {
|
|
2180
|
-
return u(Object.keys, n);
|
|
2337
|
+
//#region ../../node_modules/.pnpm/remeda@2.22.3/node_modules/remeda/dist/chunk-5NQBDF4H.js
|
|
2338
|
+
function t(...n$1) {
|
|
2339
|
+
return u(Object.keys, n$1);
|
|
2181
2340
|
}
|
|
2182
2341
|
|
|
2183
2342
|
//#endregion
|
|
2184
2343
|
//#region src/plugin/bindingify-hook-filter.ts
|
|
2185
2344
|
function generalHookFilterMatcherToFilterExprs(matcher, stringKind) {
|
|
2186
2345
|
if (typeof matcher === "string" || matcher instanceof RegExp) return [include(generateAtomMatcher(stringKind, matcher))];
|
|
2187
|
-
if (Array.isArray(matcher)) return matcher.map((m) => include(generateAtomMatcher(stringKind, m)));
|
|
2346
|
+
if (Array.isArray(matcher)) return matcher.map((m$1) => include(generateAtomMatcher(stringKind, m$1)));
|
|
2188
2347
|
let ret = [];
|
|
2189
|
-
if (matcher.exclude) ret.push(...arraify(matcher.exclude).map((m) => exclude(generateAtomMatcher(stringKind, m))));
|
|
2190
|
-
if (matcher.include) ret.push(...arraify(matcher.include).map((m) => include(generateAtomMatcher(stringKind, m))));
|
|
2348
|
+
if (matcher.exclude) ret.push(...arraify(matcher.exclude).map((m$1) => exclude(generateAtomMatcher(stringKind, m$1))));
|
|
2349
|
+
if (matcher.include) ret.push(...arraify(matcher.include).map((m$1) => include(generateAtomMatcher(stringKind, m$1))));
|
|
2191
2350
|
return ret;
|
|
2192
2351
|
}
|
|
2193
2352
|
function generateAtomMatcher(kind, matcher) {
|
|
@@ -2202,14 +2361,14 @@ function transformFilterMatcherToFilterExprs(filterOption) {
|
|
|
2202
2361
|
let idExcludes = [];
|
|
2203
2362
|
let codeIncludes = [];
|
|
2204
2363
|
let codeExcludes = [];
|
|
2205
|
-
if (id$1) [idIncludes, idExcludes] = d(generalHookFilterMatcherToFilterExprs(id$1, "id") ?? [], (m) => m.kind === "include");
|
|
2206
|
-
if (code$1) [codeIncludes, codeExcludes] = d(generalHookFilterMatcherToFilterExprs(code$1, "code") ?? [], (m) => m.kind === "include");
|
|
2364
|
+
if (id$1) [idIncludes, idExcludes] = d(generalHookFilterMatcherToFilterExprs(id$1, "id") ?? [], (m$1) => m$1.kind === "include");
|
|
2365
|
+
if (code$1) [codeIncludes, codeExcludes] = d(generalHookFilterMatcherToFilterExprs(code$1, "code") ?? [], (m$1) => m$1.kind === "include");
|
|
2207
2366
|
ret.push(...idExcludes);
|
|
2208
2367
|
ret.push(...codeExcludes);
|
|
2209
2368
|
let andExprList = [];
|
|
2210
2369
|
if (moduleType$1) {
|
|
2211
2370
|
let moduleTypes = Array.isArray(moduleType$1) ? moduleType$1 : moduleType$1.include ?? [];
|
|
2212
|
-
andExprList.push(or(...moduleTypes.map((m) => moduleType(m))));
|
|
2371
|
+
andExprList.push(or(...moduleTypes.map((m$1) => moduleType(m$1))));
|
|
2213
2372
|
}
|
|
2214
2373
|
if (idIncludes.length) andExprList.push(or(...idIncludes.map((item) => item.expr)));
|
|
2215
2374
|
if (codeIncludes.length) andExprList.push(or(...codeIncludes.map((item) => item.expr)));
|
|
@@ -2231,7 +2390,7 @@ function bindingifyFilterExprImpl(expr, list) {
|
|
|
2231
2390
|
switch (expr.kind) {
|
|
2232
2391
|
case "and": {
|
|
2233
2392
|
let args$1 = expr.args;
|
|
2234
|
-
for (let i$
|
|
2393
|
+
for (let i$2 = args$1.length - 1; i$2 >= 0; i$2--) bindingifyFilterExprImpl(args$1[i$2], list);
|
|
2235
2394
|
list.push({
|
|
2236
2395
|
kind: "And",
|
|
2237
2396
|
payload: args$1.length
|
|
@@ -2240,7 +2399,7 @@ function bindingifyFilterExprImpl(expr, list) {
|
|
|
2240
2399
|
}
|
|
2241
2400
|
case "or": {
|
|
2242
2401
|
let args$1 = expr.args;
|
|
2243
|
-
for (let i$
|
|
2402
|
+
for (let i$2 = args$1.length - 1; i$2 >= 0; i$2--) bindingifyFilterExprImpl(args$1[i$2], list);
|
|
2244
2403
|
list.push({
|
|
2245
2404
|
kind: "Or",
|
|
2246
2405
|
payload: args$1.length
|
|
@@ -2339,15 +2498,15 @@ function bindingPluginOrder(order) {
|
|
|
2339
2498
|
//#endregion
|
|
2340
2499
|
//#region ../../node_modules/.pnpm/oxc-parser@0.72.1/node_modules/oxc-parser/wrap.mjs
|
|
2341
2500
|
function wrap$1(result) {
|
|
2342
|
-
let program, module, comments, errors;
|
|
2501
|
+
let program, module$1, comments, errors;
|
|
2343
2502
|
return {
|
|
2344
2503
|
get program() {
|
|
2345
2504
|
if (!program) program = jsonParseAst(result.program);
|
|
2346
2505
|
return program;
|
|
2347
2506
|
},
|
|
2348
2507
|
get module() {
|
|
2349
|
-
if (!module) module = result.module;
|
|
2350
|
-
return module;
|
|
2508
|
+
if (!module$1) module$1 = result.module;
|
|
2509
|
+
return module$1;
|
|
2351
2510
|
},
|
|
2352
2511
|
get comments() {
|
|
2353
2512
|
if (!comments) comments = result.comments;
|
|
@@ -2382,13 +2541,13 @@ function wrap(result, sourceText) {
|
|
|
2382
2541
|
}
|
|
2383
2542
|
function normalizeParseError(sourceText, errors) {
|
|
2384
2543
|
let message = `Parse failed with ${errors.length} error${errors.length < 2 ? "" : "s"}:\n`;
|
|
2385
|
-
for (let i$
|
|
2386
|
-
if (i$
|
|
2544
|
+
for (let i$2 = 0; i$2 < errors.length; i$2++) {
|
|
2545
|
+
if (i$2 >= 5) {
|
|
2387
2546
|
message += "\n...";
|
|
2388
2547
|
break;
|
|
2389
2548
|
}
|
|
2390
|
-
const e = errors[i$
|
|
2391
|
-
message += e.message + "\n" + e.labels.map((label) => {
|
|
2549
|
+
const e$1 = errors[i$2];
|
|
2550
|
+
message += e$1.message + "\n" + e$1.labels.map((label) => {
|
|
2392
2551
|
const location = locate(sourceText, label.start, { offsetLine: 1 });
|
|
2393
2552
|
if (!location) return;
|
|
2394
2553
|
return getCodeFrame(sourceText, location.line, location.column);
|
|
@@ -2449,10 +2608,10 @@ var PluginContextImpl = class extends MinimalPluginContextImpl {
|
|
|
2449
2608
|
data.loadModulePromiseMap.set(id$1, promise$1);
|
|
2450
2609
|
try {
|
|
2451
2610
|
await context.load(id$1, bindingifySideEffects(options.moduleSideEffects));
|
|
2452
|
-
} catch (e) {
|
|
2611
|
+
} catch (e$1) {
|
|
2453
2612
|
data.loadModulePromiseMap.delete(id$1);
|
|
2454
2613
|
data.loadModulePromiseResolveFnMap.delete(id$1);
|
|
2455
|
-
throw e;
|
|
2614
|
+
throw e$1;
|
|
2456
2615
|
}
|
|
2457
2616
|
return promise$1;
|
|
2458
2617
|
}
|
|
@@ -2527,12 +2686,12 @@ var TransformPluginContextImpl = class extends PluginContextImpl {
|
|
|
2527
2686
|
this.warn = getLogHandler$1(this.warn);
|
|
2528
2687
|
this.info = getLogHandler$1(this.info);
|
|
2529
2688
|
}
|
|
2530
|
-
error(e, pos) {
|
|
2531
|
-
if (typeof e === "string") e = { message: e };
|
|
2532
|
-
if (pos) augmentCodeLocation(e, pos, this.moduleSource, this.moduleId);
|
|
2533
|
-
e.id = this.moduleId;
|
|
2534
|
-
e.hook = "transform";
|
|
2535
|
-
return error(logPluginError(normalizeLog(e), this.pluginName));
|
|
2689
|
+
error(e$1, pos) {
|
|
2690
|
+
if (typeof e$1 === "string") e$1 = { message: e$1 };
|
|
2691
|
+
if (pos) augmentCodeLocation(e$1, pos, this.moduleSource, this.moduleId);
|
|
2692
|
+
e$1.id = this.moduleId;
|
|
2693
|
+
e$1.hook = "transform";
|
|
2694
|
+
return error(logPluginError(normalizeLog(e$1), this.pluginName));
|
|
2536
2695
|
}
|
|
2537
2696
|
getCombinedSourcemap() {
|
|
2538
2697
|
return JSON.parse(this.inner.getCombinedSourcemap());
|
|
@@ -2760,9 +2919,9 @@ function transformRenderedChunk(chunk) {
|
|
|
2760
2919
|
}
|
|
2761
2920
|
function transformChunkModules(modules) {
|
|
2762
2921
|
const result = {};
|
|
2763
|
-
for (let i$
|
|
2764
|
-
let key = modules.keys[i$
|
|
2765
|
-
const mod = modules.values[i$
|
|
2922
|
+
for (let i$2 = 0; i$2 < modules.values.length; i$2++) {
|
|
2923
|
+
let key = modules.keys[i$2];
|
|
2924
|
+
const mod = modules.values[i$2];
|
|
2766
2925
|
result[key] = transformToRenderedModule(mod);
|
|
2767
2926
|
}
|
|
2768
2927
|
return result;
|
|
@@ -3010,20 +3169,20 @@ function transformToRollupOutputChunk(bindingChunk, changed) {
|
|
|
3010
3169
|
};
|
|
3011
3170
|
const cache = {};
|
|
3012
3171
|
return new Proxy(chunk, {
|
|
3013
|
-
get(target, p) {
|
|
3014
|
-
if (p in cache) return cache[p];
|
|
3015
|
-
const value = target[p];
|
|
3016
|
-
cache[p] = value;
|
|
3172
|
+
get(target, p$1) {
|
|
3173
|
+
if (p$1 in cache) return cache[p$1];
|
|
3174
|
+
const value = target[p$1];
|
|
3175
|
+
cache[p$1] = value;
|
|
3017
3176
|
return value;
|
|
3018
3177
|
},
|
|
3019
|
-
set(target, p, newValue) {
|
|
3020
|
-
cache[p] = newValue;
|
|
3178
|
+
set(target, p$1, newValue) {
|
|
3179
|
+
cache[p$1] = newValue;
|
|
3021
3180
|
changed?.updated.add(bindingChunk.fileName);
|
|
3022
3181
|
return true;
|
|
3023
3182
|
},
|
|
3024
|
-
has(target, p) {
|
|
3025
|
-
if (p in cache) return true;
|
|
3026
|
-
return p in target;
|
|
3183
|
+
has(target, p$1) {
|
|
3184
|
+
if (p$1 in cache) return true;
|
|
3185
|
+
return p$1 in target;
|
|
3027
3186
|
}
|
|
3028
3187
|
});
|
|
3029
3188
|
}
|
|
@@ -3041,14 +3200,14 @@ function transformToRollupOutputAsset(bindingAsset, changed) {
|
|
|
3041
3200
|
};
|
|
3042
3201
|
const cache = {};
|
|
3043
3202
|
return new Proxy(asset, {
|
|
3044
|
-
get(target, p) {
|
|
3045
|
-
if (p in cache) return cache[p];
|
|
3046
|
-
const value = target[p];
|
|
3047
|
-
cache[p] = value;
|
|
3203
|
+
get(target, p$1) {
|
|
3204
|
+
if (p$1 in cache) return cache[p$1];
|
|
3205
|
+
const value = target[p$1];
|
|
3206
|
+
cache[p$1] = value;
|
|
3048
3207
|
return value;
|
|
3049
3208
|
},
|
|
3050
|
-
set(target, p, newValue) {
|
|
3051
|
-
cache[p] = newValue;
|
|
3209
|
+
set(target, p$1, newValue) {
|
|
3210
|
+
cache[p$1] = newValue;
|
|
3052
3211
|
changed?.updated.add(bindingAsset.fileName);
|
|
3053
3212
|
return true;
|
|
3054
3213
|
}
|
|
@@ -3452,8 +3611,8 @@ function wrapHandlers(plugin) {
|
|
|
3452
3611
|
if (handler) plugin[hookName] = async (...args$1) => {
|
|
3453
3612
|
try {
|
|
3454
3613
|
return await handler(...args$1);
|
|
3455
|
-
} catch (e) {
|
|
3456
|
-
return error(logPluginError(e, plugin.name, {
|
|
3614
|
+
} catch (e$1) {
|
|
3615
|
+
return error(logPluginError(e$1, plugin.name, {
|
|
3457
3616
|
hook: hookName,
|
|
3458
3617
|
id: hookName === "transform" ? args$1[2] : void 0
|
|
3459
3618
|
}));
|
|
@@ -4087,9 +4246,9 @@ async function createBundlerOptions(inputOptions, outputOptions, watchMode, isCl
|
|
|
4087
4246
|
onLog,
|
|
4088
4247
|
stopWorkers: parallelPluginInitResult?.stopWorkers
|
|
4089
4248
|
};
|
|
4090
|
-
} catch (e) {
|
|
4249
|
+
} catch (e$1) {
|
|
4091
4250
|
await parallelPluginInitResult?.stopWorkers();
|
|
4092
|
-
throw e;
|
|
4251
|
+
throw e$1;
|
|
4093
4252
|
}
|
|
4094
4253
|
}
|
|
4095
4254
|
|
|
@@ -4108,9 +4267,9 @@ async function createBundler(inputOptions, outputOptions, isClose) {
|
|
|
4108
4267
|
asyncRuntimeShutdown = true;
|
|
4109
4268
|
}
|
|
4110
4269
|
};
|
|
4111
|
-
} catch (e) {
|
|
4270
|
+
} catch (e$1) {
|
|
4112
4271
|
await option.stopWorkers?.();
|
|
4113
|
-
throw e;
|
|
4272
|
+
throw e$1;
|
|
4114
4273
|
}
|
|
4115
4274
|
}
|
|
4116
4275
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rolldown/browser",
|
|
3
|
-
"version": "1.0.0-beta.10-commit.
|
|
3
|
+
"version": "1.0.0-beta.10-commit.81375fe",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"homepage": "https://rolldown.rs/",
|
|
6
6
|
"type": "module",
|
|
@@ -55,11 +55,7 @@
|
|
|
55
55
|
"access": "public"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@napi-rs/wasm-runtime": "^0.2.8"
|
|
59
|
-
"@oxc-project/runtime": "0.72.1",
|
|
60
|
-
"@oxc-project/types": "0.72.1",
|
|
61
|
-
"ansis": "^4.0.0",
|
|
62
|
-
"pathe": "^2.0.3"
|
|
58
|
+
"@napi-rs/wasm-runtime": "^0.2.8"
|
|
63
59
|
},
|
|
64
60
|
"scripts": {
|
|
65
61
|
"build": "pnpm run build:debug",
|