@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.
Files changed (48) hide show
  1. package/dist/cli.mjs +11 -7
  2. package/dist/config.d.mts +3 -3
  3. package/dist/config.mjs +9 -5
  4. package/dist/constructors-DW3R_Jog.js +68 -0
  5. package/dist/experimental-index.browser.mjs +19 -13
  6. package/dist/experimental-index.d.mts +63 -16
  7. package/dist/experimental-index.mjs +23 -15
  8. package/dist/filter-index.d.mts +3 -3
  9. package/dist/filter-index.mjs +2 -1
  10. package/dist/index.browser.mjs +161 -2
  11. package/dist/index.d.mts +3 -3
  12. package/dist/index.mjs +36 -4
  13. package/dist/normalize-string-or-regex-BcbPUrYo.js +830 -0
  14. package/dist/parallel-plugin-worker.mjs +5 -4
  15. package/dist/parallel-plugin.d.mts +3 -3
  16. package/dist/parse-ast-index.d.mts +1 -1
  17. package/dist/parse-ast-index.mjs +1 -1
  18. package/dist/plugins-index.browser.mjs +2 -2
  19. package/dist/plugins-index.d.mts +3 -3
  20. package/dist/plugins-index.mjs +3 -2
  21. package/dist/rolldown-binding.wasi-browser.js +5 -2
  22. package/dist/rolldown-binding.wasi.cjs +5 -2
  23. package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
  24. package/dist/{src-dUoCuQap.js → rolldown-build-CUYnBV3u.js} +44 -754
  25. package/dist/shared/{binding-BTup3pHG.d.mts → binding-BKL2JHoJ.d.mts} +173 -94
  26. package/dist/shared/bindingify-input-options-D4i1DYzt.mjs +1568 -0
  27. package/dist/shared/{composable-filters-CBpK2Fbc.mjs → composable-filters-DZ5ToxRJ.mjs} +1 -22
  28. package/dist/shared/constructors-BvaMwihu.d.mts +32 -0
  29. package/dist/shared/constructors-XFp0WhK3.mjs +68 -0
  30. package/dist/shared/{define-config-DiSv-kgF.d.mts → define-config-Buedmg9e.d.mts} +31 -57
  31. package/dist/shared/define-config-DfeZGBEt.mjs +7 -0
  32. package/dist/shared/{load-config-BqnLKlUM.mjs → load-config-C9CjEv2m.mjs} +1 -1
  33. package/dist/shared/misc-5GYLGQ20.mjs +22 -0
  34. package/dist/shared/normalize-string-or-regex-D1mB67Iy.mjs +629 -0
  35. package/dist/shared/{parse-ast-index-DtI4JSVR.mjs → parse-ast-index-BSDTTjWT.mjs} +20 -6
  36. package/dist/shared/rolldown-0ID0Q4xL.mjs +10 -0
  37. package/dist/shared/rolldown-build-BWJGpMD0.mjs +2121 -0
  38. package/dist/shared/utils-DKydZ4iH.d.mts +62 -0
  39. package/dist/shared/watch-CwnSQOS4.mjs +338 -0
  40. package/package.json +5 -1
  41. package/dist/constructors-EhfoQfqh.js +0 -68
  42. package/dist/normalize-string-or-regex-d47jXr3r.js +0 -231
  43. package/dist/shared/constructors-B7IHT8j4.d.mts +0 -32
  44. package/dist/shared/constructors-DcEzB0nc.mjs +0 -68
  45. package/dist/shared/normalize-string-or-regex-CbDij6KB.mjs +0 -46
  46. package/dist/shared/src-D0x2a_iO.mjs +0 -4597
  47. package/dist/shared/utils-BKVJO2vQ.d.mts +0 -18
  48. /package/dist/shared/{prompt-CjFmA1DF.mjs → prompt-pmGBC3ws.mjs} +0 -0
package/dist/index.mjs CHANGED
@@ -1,7 +1,39 @@
1
- import { a as build, i as watch, n as VERSION, o as rolldown, r as defineConfig, t as BindingMagicString } from "./shared/src-D0x2a_iO.mjs";
1
+ import { n as onExit, t as watch } from "./shared/watch-CwnSQOS4.mjs";
2
2
  import "./shared/logs-CPsamAuj.mjs";
3
- import "./shared/normalize-string-or-regex-CbDij6KB.mjs";
4
- import "./shared/composable-filters-CBpK2Fbc.mjs";
5
- import "./shared/parse-ast-index-DtI4JSVR.mjs";
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 };