@rolldown/browser 1.0.0-beta.7-commit.a7cf9ac → 1.0.0-beta.7-commit.b80d472

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 (128) hide show
  1. package/dist/browser.mjs +67 -4
  2. package/dist/cli.cjs +81 -16
  3. package/dist/cli.d.cts +1 -0
  4. package/dist/cli.d.mts +1 -0
  5. package/dist/cli.mjs +81 -16
  6. package/dist/experimental-index.cjs +3 -3
  7. package/dist/experimental-index.d.cts +65 -0
  8. package/dist/experimental-index.d.mts +65 -0
  9. package/dist/experimental-index.mjs +2 -2
  10. package/dist/index.cjs +2 -2
  11. package/dist/index.d.cts +3 -0
  12. package/dist/index.d.mts +3 -0
  13. package/dist/index.mjs +2 -2
  14. package/dist/parallel-plugin-worker.cjs +3 -3
  15. package/dist/parallel-plugin-worker.d.cts +1 -0
  16. package/dist/parallel-plugin-worker.d.mts +1 -0
  17. package/dist/parallel-plugin-worker.mjs +3 -3
  18. package/dist/parallel-plugin.d.cts +14 -0
  19. package/dist/parallel-plugin.d.mts +14 -0
  20. package/dist/parallel-plugin.mjs +0 -1
  21. package/dist/parse-ast-index.cjs +1 -1
  22. package/dist/parse-ast-index.d.cts +9 -0
  23. package/dist/parse-ast-index.d.mts +9 -0
  24. package/dist/parse-ast-index.mjs +1 -1
  25. package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
  26. package/dist/shared/chunk-DSsiIF1Z.mjs +30 -0
  27. package/dist/shared/{chunk-Dc32QXFI.cjs → chunk-qZFfknuJ.cjs} +9 -0
  28. package/dist/shared/input-options.d-Dhy0onEz.d.mts +1046 -0
  29. package/dist/shared/input-options.d-DuEVbue0.d.cts +1046 -0
  30. package/dist/shared/{parse-ast-index-CBDb3Hys.mjs → parse-ast-index-B5HMwEw9.mjs} +1 -1
  31. package/dist/shared/{parse-ast-index-Rn-i2y3M.cjs → parse-ast-index-lAAkaDQi.cjs} +1 -1
  32. package/dist/shared/{prompt-B3VJLbs9.mjs → prompt-B7SnYdwU.mjs} +1 -1
  33. package/dist/shared/{prompt-wpCBKCzA.cjs → prompt-_yrURmmm.cjs} +1 -1
  34. package/dist/shared/{src-B0csdUUQ.mjs → src-BL95s43J.mjs} +73 -6
  35. package/dist/shared/{src-B0-c-FLL.cjs → src-C47ObUwZ.cjs} +69 -6
  36. package/package.json +5 -12
  37. package/dist/shared/chunk-BuCFLigr.mjs +0 -12
  38. package/dist/types/api/build.d.ts +0 -18
  39. package/dist/types/api/experimental.d.ts +0 -7
  40. package/dist/types/api/rolldown/index.d.ts +0 -3
  41. package/dist/types/api/rolldown/rolldown-build.d.ts +0 -15
  42. package/dist/types/api/watch/index.d.ts +0 -3
  43. package/dist/types/api/watch/watch-emitter.d.ts +0 -31
  44. package/dist/types/api/watch/watcher.d.ts +0 -13
  45. package/dist/types/binding.d.ts +0 -1507
  46. package/dist/types/builtin-plugin/alias-plugin.d.ts +0 -10
  47. package/dist/types/builtin-plugin/constructors.d.ts +0 -23
  48. package/dist/types/builtin-plugin/replace-plugin.d.ts +0 -27
  49. package/dist/types/builtin-plugin/transform-plugin.d.ts +0 -9
  50. package/dist/types/builtin-plugin/utils.d.ts +0 -8
  51. package/dist/types/cli/arguments/alias.d.ts +0 -16
  52. package/dist/types/cli/arguments/index.d.ts +0 -15
  53. package/dist/types/cli/arguments/normalize.d.ts +0 -16
  54. package/dist/types/cli/arguments/utils.d.ts +0 -8
  55. package/dist/types/cli/commands/bundle.d.ts +0 -3
  56. package/dist/types/cli/commands/help.d.ts +0 -1
  57. package/dist/types/cli/index.d.ts +0 -1
  58. package/dist/types/cli/load-config.d.ts +0 -5
  59. package/dist/types/cli/logger.d.ts +0 -5
  60. package/dist/types/constants/plugin-context.d.ts +0 -7
  61. package/dist/types/constants/plugin.d.ts +0 -45
  62. package/dist/types/experimental-index.d.ts +0 -9
  63. package/dist/types/index.d.ts +0 -31
  64. package/dist/types/log/log-handler.d.ts +0 -4
  65. package/dist/types/log/logger.d.ts +0 -6
  66. package/dist/types/log/logging.d.ts +0 -12
  67. package/dist/types/log/logs.d.ts +0 -18
  68. package/dist/types/options/generated/checks-options.d.ts +0 -57
  69. package/dist/types/options/input-options.d.ts +0 -185
  70. package/dist/types/options/normalized-input-options.d.ts +0 -18
  71. package/dist/types/options/normalized-output-options.d.ts +0 -70
  72. package/dist/types/options/output-options.d.ts +0 -182
  73. package/dist/types/options/watch-options.d.ts +0 -5
  74. package/dist/types/parallel-plugin-worker.d.ts +0 -1
  75. package/dist/types/parallel-plugin.d.ts +0 -1
  76. package/dist/types/parse-ast-index.d.ts +0 -5
  77. package/dist/types/plugin/bindingify-build-hooks.d.ts +0 -10
  78. package/dist/types/plugin/bindingify-hook-filter.d.ts +0 -7
  79. package/dist/types/plugin/bindingify-output-hooks.d.ts +0 -14
  80. package/dist/types/plugin/bindingify-plugin-hook-meta.d.ts +0 -8
  81. package/dist/types/plugin/bindingify-plugin.d.ts +0 -17
  82. package/dist/types/plugin/bindingify-watch-hooks.d.ts +0 -5
  83. package/dist/types/plugin/hook-filter.d.ts +0 -49
  84. package/dist/types/plugin/index.d.ts +0 -141
  85. package/dist/types/plugin/minimal-plugin-context.d.ts +0 -24
  86. package/dist/types/plugin/parallel-plugin-implementation.d.ts +0 -10
  87. package/dist/types/plugin/parallel-plugin.d.ts +0 -9
  88. package/dist/types/plugin/plugin-context-data.d.ts +0 -22
  89. package/dist/types/plugin/plugin-context.d.ts +0 -67
  90. package/dist/types/plugin/plugin-driver.d.ts +0 -10
  91. package/dist/types/plugin/transform-plugin-context.d.ts +0 -28
  92. package/dist/types/plugin/with-filter.d.ts +0 -10
  93. package/dist/types/types/assert.d.ts +0 -14
  94. package/dist/types/types/config-export.d.ts +0 -5
  95. package/dist/types/types/misc.d.ts +0 -40
  96. package/dist/types/types/module-info.d.ts +0 -15
  97. package/dist/types/types/module-side-effects.d.ts +0 -12
  98. package/dist/types/types/output-bundle.d.ts +0 -4
  99. package/dist/types/types/rolldown-options.d.ts +0 -5
  100. package/dist/types/types/rolldown-output.d.ts +0 -66
  101. package/dist/types/types/schema.d.ts +0 -33
  102. package/dist/types/types/sourcemap.d.ts +0 -14
  103. package/dist/types/types/utils.d.ts +0 -13
  104. package/dist/types/types.d.ts +0 -7
  105. package/dist/types/utils/asset-source.d.ts +0 -4
  106. package/dist/types/utils/async-flatten.d.ts +0 -1
  107. package/dist/types/utils/bindingify-input-options.d.ts +0 -7
  108. package/dist/types/utils/bindingify-output-options.d.ts +0 -5
  109. package/dist/types/utils/code-frame.d.ts +0 -1
  110. package/dist/types/utils/compose-js-plugins.d.ts +0 -2
  111. package/dist/types/utils/create-bundler-option.d.ts +0 -11
  112. package/dist/types/utils/create-bundler.d.ts +0 -9
  113. package/dist/types/utils/define-config.d.ts +0 -5
  114. package/dist/types/utils/error.d.ts +0 -2
  115. package/dist/types/utils/initialize-parallel-plugins.d.ts +0 -17
  116. package/dist/types/utils/misc.d.ts +0 -7
  117. package/dist/types/utils/normalize-hook.d.ts +0 -7
  118. package/dist/types/utils/normalize-plugin-option.d.ts +0 -13
  119. package/dist/types/utils/normalize-string-or-regex.d.ts +0 -2
  120. package/dist/types/utils/plugin/index.d.ts +0 -2
  121. package/dist/types/utils/resolved-external.d.ts +0 -4
  122. package/dist/types/utils/transform-module-info.d.ts +0 -4
  123. package/dist/types/utils/transform-rendered-chunk.d.ts +0 -4
  124. package/dist/types/utils/transform-rendered-module.d.ts +0 -3
  125. package/dist/types/utils/transform-side-effects.d.ts +0 -3
  126. package/dist/types/utils/transform-sourcemap.d.ts +0 -3
  127. package/dist/types/utils/transform-to-rollup-output.d.ts +0 -11
  128. package/dist/types/utils/validator.d.ts +0 -6
@@ -0,0 +1,9 @@
1
+ import { ParseResult, ParserOptions } from "./rolldown-binding.wasi.cjs";
2
+ import { Program } from "@oxc-project/types";
3
+
4
+ //#region src/parse-ast-index.d.ts
5
+ declare function parseAst(sourceText: string, options?: ParserOptions | undefined | null, filename?: string): Program;
6
+ declare function parseAstAsync(sourceText: string, options?: ParserOptions | undefined | null, filename?: string): Promise<Program>;
7
+
8
+ //#endregion
9
+ export { ParseResult, ParserOptions, parseAst, parseAstAsync };
@@ -0,0 +1,9 @@
1
+ import { ParseResult, ParserOptions } from "./rolldown-binding.wasi.cjs";
2
+ import { Program } from "@oxc-project/types";
3
+
4
+ //#region src/parse-ast-index.d.ts
5
+ declare function parseAst(sourceText: string, options?: ParserOptions | undefined | null, filename?: string): Program;
6
+ declare function parseAstAsync(sourceText: string, options?: ParserOptions | undefined | null, filename?: string): Promise<Program>;
7
+
8
+ //#endregion
9
+ export { ParseResult, ParserOptions, parseAst, parseAstAsync };
@@ -1,4 +1,4 @@
1
- import { init_parse_ast_index, parseAst, parseAstAsync } from "./shared/parse-ast-index-CBDb3Hys.mjs";
1
+ import { init_parse_ast_index, parseAst, parseAstAsync } from "./shared/parse-ast-index-B5HMwEw9.mjs";
2
2
 
3
3
  init_parse_ast_index();
4
4
  export { parseAst, parseAstAsync };
@@ -0,0 +1,30 @@
1
+ //#region rolldown:runtime
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __esm = (fn, res) => function() {
9
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
10
+ };
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 = 0, n = keys.length, key; i < n; i++) {
16
+ key = keys[i];
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
30
+ export { __commonJS, __esm, __toESM };
@@ -6,6 +6,9 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
7
  var __getProtoOf = Object.getPrototypeOf;
8
8
  var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __commonJS = (cb, mod) => function() {
10
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
11
+ };
9
12
  var __copyProps = (to, from, except, desc) => {
10
13
  if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
11
14
  key = keys[i];
@@ -23,6 +26,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
23
26
 
24
27
  //#endregion
25
28
 
29
+ Object.defineProperty(exports, '__commonJS', {
30
+ enumerable: true,
31
+ get: function () {
32
+ return __commonJS;
33
+ }
34
+ });
26
35
  Object.defineProperty(exports, '__toESM', {
27
36
  enumerable: true,
28
37
  get: function () {