@rolldown/browser 1.0.0-beta.50 → 1.0.0-beta.52
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 -7
- package/dist/config.d.mts +3 -3
- package/dist/config.mjs +9 -5
- package/dist/constructors-DW3R_Jog.js +68 -0
- package/dist/experimental-index.browser.mjs +19 -13
- package/dist/experimental-index.d.mts +63 -16
- package/dist/experimental-index.mjs +23 -15
- package/dist/filter-index.d.mts +3 -3
- package/dist/filter-index.mjs +2 -1
- package/dist/index.browser.mjs +161 -2
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +36 -4
- package/dist/normalize-string-or-regex-BcbPUrYo.js +830 -0
- package/dist/parallel-plugin-worker.mjs +5 -4
- package/dist/parallel-plugin.d.mts +3 -3
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/parse-ast-index.mjs +1 -1
- package/dist/plugins-index.browser.mjs +2 -2
- package/dist/plugins-index.d.mts +3 -3
- package/dist/plugins-index.mjs +3 -2
- package/dist/rolldown-binding.wasi-browser.js +5 -2
- package/dist/rolldown-binding.wasi.cjs +5 -2
- package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/{src-dUoCuQap.js → rolldown-build-CUYnBV3u.js} +44 -754
- package/dist/shared/{binding-BTup3pHG.d.mts → binding-BKL2JHoJ.d.mts} +173 -94
- package/dist/shared/bindingify-input-options-D4i1DYzt.mjs +1568 -0
- package/dist/shared/{composable-filters-CBpK2Fbc.mjs → composable-filters-DZ5ToxRJ.mjs} +1 -22
- package/dist/shared/constructors-BvaMwihu.d.mts +32 -0
- package/dist/shared/constructors-XFp0WhK3.mjs +68 -0
- package/dist/shared/{define-config-DiSv-kgF.d.mts → define-config-Buedmg9e.d.mts} +31 -57
- package/dist/shared/define-config-DfeZGBEt.mjs +7 -0
- package/dist/shared/{load-config-BqnLKlUM.mjs → load-config-C9CjEv2m.mjs} +1 -1
- package/dist/shared/misc-5GYLGQ20.mjs +22 -0
- package/dist/shared/normalize-string-or-regex-D1mB67Iy.mjs +629 -0
- package/dist/shared/{parse-ast-index-DtI4JSVR.mjs → parse-ast-index-BSDTTjWT.mjs} +20 -6
- package/dist/shared/rolldown-0ID0Q4xL.mjs +10 -0
- package/dist/shared/rolldown-build-BWJGpMD0.mjs +2121 -0
- package/dist/shared/utils-DKydZ4iH.d.mts +62 -0
- package/dist/shared/watch-CwnSQOS4.mjs +338 -0
- package/package.json +5 -1
- package/dist/constructors-EhfoQfqh.js +0 -68
- package/dist/normalize-string-or-regex-d47jXr3r.js +0 -231
- package/dist/shared/constructors-B7IHT8j4.d.mts +0 -32
- package/dist/shared/constructors-DcEzB0nc.mjs +0 -68
- package/dist/shared/normalize-string-or-regex-CbDij6KB.mjs +0 -46
- package/dist/shared/src-D0x2a_iO.mjs +0 -4597
- package/dist/shared/utils-BKVJO2vQ.d.mts +0 -18
- /package/dist/shared/{prompt-CjFmA1DF.mjs → prompt-pmGBC3ws.mjs} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,39 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as onExit, t as watch } from "./shared/watch-CwnSQOS4.mjs";
|
|
2
2
|
import "./shared/logs-CPsamAuj.mjs";
|
|
3
|
-
import "./shared/
|
|
4
|
-
import "./shared/
|
|
5
|
-
import "./shared/
|
|
3
|
+
import "./shared/misc-5GYLGQ20.mjs";
|
|
4
|
+
import { _ as VERSION } from "./shared/normalize-string-or-regex-D1mB67Iy.mjs";
|
|
5
|
+
import "./shared/rolldown-build-BWJGpMD0.mjs";
|
|
6
|
+
import "./shared/bindingify-input-options-D4i1DYzt.mjs";
|
|
7
|
+
import "./shared/parse-ast-index-BSDTTjWT.mjs";
|
|
8
|
+
import "./shared/composable-filters-DZ5ToxRJ.mjs";
|
|
9
|
+
import { t as rolldown } from "./shared/rolldown-0ID0Q4xL.mjs";
|
|
10
|
+
import { t as defineConfig } from "./shared/define-config-DfeZGBEt.mjs";
|
|
11
|
+
import { isMainThread } from "node:worker_threads";
|
|
12
|
+
import { BindingMagicString, initTraceSubscriber } from "./rolldown-binding.wasi.cjs";
|
|
6
13
|
|
|
14
|
+
//#region src/setup.ts
|
|
15
|
+
if (isMainThread) {
|
|
16
|
+
const subscriberGuard = initTraceSubscriber();
|
|
17
|
+
onExit(() => {
|
|
18
|
+
subscriberGuard?.close();
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/api/build.ts
|
|
24
|
+
async function build(options) {
|
|
25
|
+
if (Array.isArray(options)) return Promise.all(options.map((opts) => build(opts)));
|
|
26
|
+
else {
|
|
27
|
+
const { output, write = true, ...inputOptions } = options;
|
|
28
|
+
const build$1 = await rolldown(inputOptions);
|
|
29
|
+
try {
|
|
30
|
+
if (write) return await build$1.write(output);
|
|
31
|
+
else return await build$1.generate(output);
|
|
32
|
+
} finally {
|
|
33
|
+
await build$1.close();
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
//#endregion
|
|
7
39
|
export { BindingMagicString, VERSION, build, defineConfig, rolldown, watch };
|