rolldown 1.0.0-beta.2-commit.2666b23 → 1.0.0-beta.20

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 (236) hide show
  1. package/bin/cli.mjs +2 -0
  2. package/dist/{cjs/cli.cjs → cli.cjs} +630 -603
  3. package/dist/cli.d.cts +1 -0
  4. package/dist/cli.d.mts +1 -0
  5. package/dist/{esm/cli.mjs → cli.mjs} +605 -575
  6. package/dist/config.cjs +12 -0
  7. package/dist/config.d.cts +10 -0
  8. package/dist/config.d.mts +10 -0
  9. package/dist/config.mjs +10 -0
  10. package/dist/experimental-index.cjs +107 -0
  11. package/dist/experimental-index.d.cts +63 -0
  12. package/dist/experimental-index.d.mts +63 -0
  13. package/dist/experimental-index.mjs +82 -0
  14. package/dist/experimental-runtime-types.d.ts +52 -0
  15. package/dist/filter-index.cjs +105 -0
  16. package/dist/filter-index.d.cts +4 -0
  17. package/dist/filter-index.d.mts +4 -0
  18. package/dist/filter-index.mjs +44 -0
  19. package/dist/index.cjs +9 -0
  20. package/dist/index.d.cts +3 -0
  21. package/dist/index.d.mts +3 -0
  22. package/dist/index.mjs +5 -0
  23. package/dist/{cjs/parallel-plugin-worker.cjs → parallel-plugin-worker.cjs} +6 -14
  24. package/dist/parallel-plugin-worker.d.cts +1 -0
  25. package/dist/parallel-plugin-worker.d.mts +1 -0
  26. package/dist/{esm/parallel-plugin-worker.mjs → parallel-plugin-worker.mjs} +5 -12
  27. package/dist/{cjs/parallel-plugin.cjs → parallel-plugin.cjs} +1 -2
  28. package/dist/parallel-plugin.d.cts +14 -0
  29. package/dist/parallel-plugin.d.mts +14 -0
  30. package/dist/{esm/parallel-plugin.mjs → parallel-plugin.mjs} +0 -1
  31. package/dist/parse-ast-index.cjs +4 -0
  32. package/dist/parse-ast-index.d.cts +9 -0
  33. package/dist/parse-ast-index.d.mts +9 -0
  34. package/dist/parse-ast-index.mjs +3 -0
  35. package/dist/shared/binding-5O9lFYtz.d.mts +1215 -0
  36. package/dist/shared/binding-BvKFOCZr.d.cts +1215 -0
  37. package/dist/shared/{chunk-qZFfknuJ.cjs → chunk-DDkG_k5U.cjs} +0 -1
  38. package/dist/shared/define-config-BOD4oRSZ.d.cts +1204 -0
  39. package/dist/shared/define-config-DdVYel_V.d.mts +1204 -0
  40. package/dist/shared/load-config-B_hPIyxu.mjs +119 -0
  41. package/dist/shared/load-config-BdY850xq.cjs +125 -0
  42. package/dist/shared/misc-BKp5iIef.cjs +67 -0
  43. package/dist/shared/misc-BN0nse6C.mjs +25 -0
  44. package/dist/shared/parse-ast-index-CVVmsBjK.cjs +738 -0
  45. package/dist/shared/parse-ast-index-DW8kbzjr.mjs +616 -0
  46. package/dist/shared/{prompt-Nfm4Xz36.mjs → prompt-C5jz26Zn.mjs} +247 -246
  47. package/dist/shared/{prompt-B7tq3GL9.cjs → prompt-QNI93ne7.cjs} +250 -250
  48. package/dist/shared/src-CZ0tgOug.cjs +4851 -0
  49. package/dist/shared/src-DHXNdTPA.mjs +4647 -0
  50. package/package.json +63 -67
  51. package/bin/cli.js +0 -2
  52. package/dist/cjs/experimental-index.cjs +0 -79
  53. package/dist/cjs/index.cjs +0 -8
  54. package/dist/cjs/parse-ast-index.cjs +0 -57
  55. package/dist/esm/experimental-index.mjs +0 -56
  56. package/dist/esm/index.mjs +0 -4
  57. package/dist/esm/parse-ast-index.mjs +0 -55
  58. package/dist/shared/binding-l7VLSKnB.mjs +0 -610
  59. package/dist/shared/binding-orkvONpS.cjs +0 -661
  60. package/dist/shared/src-BC6S-BmL.cjs +0 -2828
  61. package/dist/shared/src-mupmacNC.mjs +0 -2647
  62. package/dist/types/api/build.d.ts +0 -18
  63. package/dist/types/api/build.js +0 -22
  64. package/dist/types/api/experimental.d.ts +0 -7
  65. package/dist/types/api/experimental.js +0 -13
  66. package/dist/types/api/rolldown/index.d.ts +0 -3
  67. package/dist/types/api/rolldown/index.js +0 -7
  68. package/dist/types/api/rolldown/rolldown-build.d.ts +0 -12
  69. package/dist/types/api/rolldown/rolldown-build.js +0 -43
  70. package/dist/types/api/watch/index.d.ts +0 -3
  71. package/dist/types/api/watch/index.js +0 -8
  72. package/dist/types/api/watch/watch-emitter.d.ts +0 -31
  73. package/dist/types/api/watch/watch-emitter.js +0 -69
  74. package/dist/types/api/watch/watcher.d.ts +0 -13
  75. package/dist/types/api/watch/watcher.js +0 -66
  76. package/dist/types/binding.d.ts +0 -1327
  77. package/dist/types/builtin-plugin/alias-plugin.d.ts +0 -10
  78. package/dist/types/builtin-plugin/alias-plugin.js +0 -4
  79. package/dist/types/builtin-plugin/constructors.d.ts +0 -20
  80. package/dist/types/builtin-plugin/constructors.js +0 -68
  81. package/dist/types/builtin-plugin/replace-plugin.d.ts +0 -28
  82. package/dist/types/builtin-plugin/replace-plugin.js +0 -29
  83. package/dist/types/builtin-plugin/transform-plugin.d.ts +0 -9
  84. package/dist/types/builtin-plugin/transform-plugin.js +0 -16
  85. package/dist/types/builtin-plugin/utils.d.ts +0 -8
  86. package/dist/types/builtin-plugin/utils.js +0 -19
  87. package/dist/types/cli/arguments/alias.d.ts +0 -16
  88. package/dist/types/cli/arguments/alias.js +0 -63
  89. package/dist/types/cli/arguments/index.d.ts +0 -15
  90. package/dist/types/cli/arguments/index.js +0 -127
  91. package/dist/types/cli/arguments/normalize.d.ts +0 -12
  92. package/dist/types/cli/arguments/normalize.js +0 -48
  93. package/dist/types/cli/arguments/utils.d.ts +0 -8
  94. package/dist/types/cli/arguments/utils.js +0 -67
  95. package/dist/types/cli/colors.d.ts +0 -11
  96. package/dist/types/cli/colors.js +0 -17
  97. package/dist/types/cli/commands/bundle.d.ts +0 -3
  98. package/dist/types/cli/commands/bundle.js +0 -203
  99. package/dist/types/cli/commands/help.d.ts +0 -1
  100. package/dist/types/cli/commands/help.js +0 -88
  101. package/dist/types/cli/index.d.ts +0 -1
  102. package/dist/types/cli/index.js +0 -27
  103. package/dist/types/cli/load-config.d.ts +0 -3
  104. package/dist/types/cli/load-config.js +0 -95
  105. package/dist/types/cli/logger.d.ts +0 -5
  106. package/dist/types/cli/logger.js +0 -35
  107. package/dist/types/constants/plugin-context.d.ts +0 -7
  108. package/dist/types/constants/plugin-context.js +0 -7
  109. package/dist/types/constants/plugin.d.ts +0 -45
  110. package/dist/types/constants/plugin.js +0 -69
  111. package/dist/types/experimental-index.d.ts +0 -9
  112. package/dist/types/experimental-index.js +0 -9
  113. package/dist/types/index.d.ts +0 -28
  114. package/dist/types/index.js +0 -7
  115. package/dist/types/log/logHandler.d.ts +0 -4
  116. package/dist/types/log/logHandler.js +0 -25
  117. package/dist/types/log/logger.d.ts +0 -6
  118. package/dist/types/log/logger.js +0 -107
  119. package/dist/types/log/logging.d.ts +0 -11
  120. package/dist/types/log/logging.js +0 -11
  121. package/dist/types/log/logs.d.ts +0 -18
  122. package/dist/types/log/logs.js +0 -86
  123. package/dist/types/options/input-options.d.ts +0 -170
  124. package/dist/types/options/input-options.js +0 -1
  125. package/dist/types/options/normalized-input-options.d.ts +0 -18
  126. package/dist/types/options/normalized-input-options.js +0 -21
  127. package/dist/types/options/normalized-output-options.d.ts +0 -67
  128. package/dist/types/options/normalized-output-options.js +0 -99
  129. package/dist/types/options/output-options.d.ts +0 -86
  130. package/dist/types/options/output-options.js +0 -1
  131. package/dist/types/options/watch-options.d.ts +0 -5
  132. package/dist/types/options/watch-options.js +0 -1
  133. package/dist/types/parallel-plugin-worker.d.ts +0 -1
  134. package/dist/types/parallel-plugin-worker.js +0 -31
  135. package/dist/types/parallel-plugin.d.ts +0 -1
  136. package/dist/types/parallel-plugin.js +0 -1
  137. package/dist/types/parse-ast-index.d.ts +0 -4
  138. package/dist/types/parse-ast-index.js +0 -73
  139. package/dist/types/plugin/bindingify-build-hooks.d.ts +0 -10
  140. package/dist/types/plugin/bindingify-build-hooks.js +0 -213
  141. package/dist/types/plugin/bindingify-hook-filter.d.ts +0 -7
  142. package/dist/types/plugin/bindingify-hook-filter.js +0 -39
  143. package/dist/types/plugin/bindingify-output-hooks.d.ts +0 -14
  144. package/dist/types/plugin/bindingify-output-hooks.js +0 -189
  145. package/dist/types/plugin/bindingify-plugin-hook-meta.d.ts +0 -8
  146. package/dist/types/plugin/bindingify-plugin-hook-meta.js +0 -19
  147. package/dist/types/plugin/bindingify-plugin.d.ts +0 -15
  148. package/dist/types/plugin/bindingify-plugin.js +0 -124
  149. package/dist/types/plugin/bindingify-watch-hooks.d.ts +0 -5
  150. package/dist/types/plugin/bindingify-watch-hooks.js +0 -29
  151. package/dist/types/plugin/hook-filter.d.ts +0 -48
  152. package/dist/types/plugin/hook-filter.js +0 -1
  153. package/dist/types/plugin/index.d.ts +0 -126
  154. package/dist/types/plugin/index.js +0 -1
  155. package/dist/types/plugin/minimal-plugin-context.d.ts +0 -15
  156. package/dist/types/plugin/minimal-plugin-context.js +0 -25
  157. package/dist/types/plugin/parallel-plugin-implementation.d.ts +0 -10
  158. package/dist/types/plugin/parallel-plugin-implementation.js +0 -3
  159. package/dist/types/plugin/parallel-plugin.d.ts +0 -9
  160. package/dist/types/plugin/parallel-plugin.js +0 -6
  161. package/dist/types/plugin/plugin-context-data.d.ts +0 -16
  162. package/dist/types/plugin/plugin-context-data.js +0 -55
  163. package/dist/types/plugin/plugin-context.d.ts +0 -52
  164. package/dist/types/plugin/plugin-context.js +0 -108
  165. package/dist/types/plugin/plugin-driver.d.ts +0 -8
  166. package/dist/types/plugin/plugin-driver.js +0 -88
  167. package/dist/types/plugin/transform-plugin-context.d.ts +0 -17
  168. package/dist/types/plugin/transform-plugin-context.js +0 -37
  169. package/dist/types/types/assert.d.ts +0 -13
  170. package/dist/types/types/assert.js +0 -1
  171. package/dist/types/types/config-export.d.ts +0 -5
  172. package/dist/types/types/config-export.js +0 -1
  173. package/dist/types/types/misc.d.ts +0 -40
  174. package/dist/types/types/misc.js +0 -1
  175. package/dist/types/types/module-info.d.ts +0 -15
  176. package/dist/types/types/module-info.js +0 -1
  177. package/dist/types/types/module-side-effects.d.ts +0 -10
  178. package/dist/types/types/module-side-effects.js +0 -1
  179. package/dist/types/types/output-bundle.d.ts +0 -4
  180. package/dist/types/types/output-bundle.js +0 -1
  181. package/dist/types/types/rolldown-options.d.ts +0 -5
  182. package/dist/types/types/rolldown-options.js +0 -1
  183. package/dist/types/types/rolldown-output.d.ts +0 -63
  184. package/dist/types/types/rolldown-output.js +0 -1
  185. package/dist/types/types/schema.d.ts +0 -33
  186. package/dist/types/types/schema.js +0 -1
  187. package/dist/types/types/sourcemap.d.ts +0 -13
  188. package/dist/types/types/sourcemap.js +0 -16
  189. package/dist/types/types/utils.d.ts +0 -13
  190. package/dist/types/types/utils.js +0 -1
  191. package/dist/types/utils/asset-source.d.ts +0 -4
  192. package/dist/types/utils/asset-source.js +0 -8
  193. package/dist/types/utils/async-flatten.d.ts +0 -1
  194. package/dist/types/utils/async-flatten.js +0 -7
  195. package/dist/types/utils/bindingify-input-options.d.ts +0 -7
  196. package/dist/types/utils/bindingify-input-options.js +0 -225
  197. package/dist/types/utils/bindingify-output-options.d.ts +0 -3
  198. package/dist/types/utils/bindingify-output-options.js +0 -92
  199. package/dist/types/utils/code-frame.d.ts +0 -1
  200. package/dist/types/utils/code-frame.js +0 -46
  201. package/dist/types/utils/compose-js-plugins.d.ts +0 -2
  202. package/dist/types/utils/compose-js-plugins.js +0 -400
  203. package/dist/types/utils/create-bundler-option.d.ts +0 -11
  204. package/dist/types/utils/create-bundler-option.js +0 -53
  205. package/dist/types/utils/create-bundler.d.ts +0 -8
  206. package/dist/types/utils/create-bundler.js +0 -15
  207. package/dist/types/utils/define-config.d.ts +0 -5
  208. package/dist/types/utils/define-config.js +0 -3
  209. package/dist/types/utils/error.d.ts +0 -2
  210. package/dist/types/utils/error.js +0 -65
  211. package/dist/types/utils/initialize-parallel-plugins.d.ts +0 -19
  212. package/dist/types/utils/initialize-parallel-plugins.js +0 -54
  213. package/dist/types/utils/misc.d.ts +0 -6
  214. package/dist/types/utils/misc.js +0 -22
  215. package/dist/types/utils/normalize-hook.d.ts +0 -7
  216. package/dist/types/utils/normalize-hook.js +0 -21
  217. package/dist/types/utils/normalize-plugin-option.d.ts +0 -13
  218. package/dist/types/utils/normalize-plugin-option.js +0 -35
  219. package/dist/types/utils/normalize-string-or-regex.d.ts +0 -2
  220. package/dist/types/utils/normalize-string-or-regex.js +0 -14
  221. package/dist/types/utils/plugin/index.d.ts +0 -2
  222. package/dist/types/utils/plugin/index.js +0 -7
  223. package/dist/types/utils/transform-module-info.d.ts +0 -4
  224. package/dist/types/utils/transform-module-info.js +0 -19
  225. package/dist/types/utils/transform-rendered-chunk.d.ts +0 -4
  226. package/dist/types/utils/transform-rendered-chunk.js +0 -43
  227. package/dist/types/utils/transform-rendered-module.d.ts +0 -3
  228. package/dist/types/utils/transform-rendered-module.js +0 -10
  229. package/dist/types/utils/transform-side-effects.d.ts +0 -3
  230. package/dist/types/utils/transform-side-effects.js +0 -16
  231. package/dist/types/utils/transform-sourcemap.d.ts +0 -3
  232. package/dist/types/utils/transform-sourcemap.js +0 -29
  233. package/dist/types/utils/transform-to-rollup-output.d.ts +0 -11
  234. package/dist/types/utils/transform-to-rollup-output.js +0 -165
  235. package/dist/types/utils/validator.d.ts +0 -7
  236. package/dist/types/utils/validator.js +0 -275
@@ -0,0 +1,12 @@
1
+ const require_src = require('./shared/src-CZ0tgOug.cjs');
2
+ require('./shared/parse-ast-index-CVVmsBjK.cjs');
3
+ require('./shared/misc-BKp5iIef.cjs');
4
+ const require_load_config = require('./shared/load-config-BdY850xq.cjs');
5
+
6
+ //#region src/config.ts
7
+ const VERSION = require_src.version;
8
+
9
+ //#endregion
10
+ exports.VERSION = VERSION;
11
+ exports.defineConfig = require_src.defineConfig;
12
+ exports.loadConfig = require_load_config.loadConfig;
@@ -0,0 +1,10 @@
1
+ import "./shared/binding-BvKFOCZr.cjs";
2
+ import { ConfigExport, defineConfig } from "./shared/define-config-BOD4oRSZ.cjs";
3
+
4
+ //#region src/utils/load-config.d.ts
5
+ declare function loadConfig(configPath: string): Promise<ConfigExport>;
6
+ //#endregion
7
+ //#region src/config.d.ts
8
+ declare const VERSION: string;
9
+ //#endregion
10
+ export { VERSION, defineConfig, loadConfig };
@@ -0,0 +1,10 @@
1
+ import "./shared/binding-5O9lFYtz.mjs";
2
+ import { ConfigExport, defineConfig } from "./shared/define-config-DdVYel_V.mjs";
3
+
4
+ //#region src/utils/load-config.d.ts
5
+ declare function loadConfig(configPath: string): Promise<ConfigExport>;
6
+ //#endregion
7
+ //#region src/config.d.ts
8
+ declare const VERSION: string;
9
+ //#endregion
10
+ export { VERSION, defineConfig, loadConfig };
@@ -0,0 +1,10 @@
1
+ import "./shared/parse-ast-index-DW8kbzjr.mjs";
2
+ import { defineConfig, version } from "./shared/src-DHXNdTPA.mjs";
3
+ import "./shared/misc-BN0nse6C.mjs";
4
+ import { loadConfig } from "./shared/load-config-B_hPIyxu.mjs";
5
+
6
+ //#region src/config.ts
7
+ const VERSION = version;
8
+
9
+ //#endregion
10
+ export { VERSION, defineConfig, loadConfig };
@@ -0,0 +1,107 @@
1
+ const require_chunk = require('./shared/chunk-DDkG_k5U.cjs');
2
+ const require_src = require('./shared/src-CZ0tgOug.cjs');
3
+ const require_parse_ast_index = require('./shared/parse-ast-index-CVVmsBjK.cjs');
4
+ require('./shared/misc-BKp5iIef.cjs');
5
+ const node_url = require_chunk.__toESM(require("node:url"));
6
+
7
+ //#region src/api/experimental.ts
8
+ /**
9
+ * This is an experimental API. It's behavior may change in the future.
10
+ *
11
+ * Calling this API will only execute the scan stage of rolldown.
12
+ */
13
+ const experimental_scan = async (input) => {
14
+ const inputOptions = await require_src.PluginDriver.callOptionsHook(input);
15
+ const { impl: bundler, stopWorkers } = await require_src.createBundlerImpl(new require_parse_ast_index.BindingBundler(), inputOptions, {});
16
+ const output = await bundler.scan();
17
+ require_src.handleOutputErrors(output);
18
+ await stopWorkers?.();
19
+ };
20
+
21
+ //#endregion
22
+ //#region src/plugin/parallel-plugin.ts
23
+ function defineParallelPlugin(pluginPath) {
24
+ return (options) => {
25
+ return { _parallel: {
26
+ fileUrl: (0, node_url.pathToFileURL)(pluginPath).href,
27
+ options
28
+ } };
29
+ };
30
+ }
31
+
32
+ //#endregion
33
+ //#region src/builtin-plugin/alias-plugin.ts
34
+ function aliasPlugin(config) {
35
+ return new require_src.BuiltinPlugin("builtin:alias", config);
36
+ }
37
+
38
+ //#endregion
39
+ //#region src/builtin-plugin/replace-plugin.ts
40
+ /**
41
+ * Replaces targeted strings in files while bundling.
42
+ *
43
+ * @example
44
+ * // Basic usage
45
+ * ```js
46
+ * replacePlugin({
47
+ * 'process.env.NODE_ENV': JSON.stringify('production'),
48
+ * __buildVersion: 15
49
+ * })
50
+ * ```
51
+ * @example
52
+ * // With options
53
+ * ```js
54
+ * replacePlugin({
55
+ * 'process.env.NODE_ENV': JSON.stringify('production'),
56
+ * __buildVersion: 15
57
+ * }, {
58
+ * preventAssignment: false,
59
+ * })
60
+ * ```
61
+ */
62
+ function replacePlugin(values = {}, options = {}) {
63
+ return new require_src.BuiltinPlugin("builtin:replace", {
64
+ ...options,
65
+ values
66
+ });
67
+ }
68
+
69
+ //#endregion
70
+ //#region src/builtin-plugin/transform-plugin.ts
71
+ function transformPlugin(config) {
72
+ if (config) config = {
73
+ ...config,
74
+ include: require_src.normalizedStringOrRegex(config.include),
75
+ exclude: require_src.normalizedStringOrRegex(config.exclude),
76
+ jsxRefreshInclude: require_src.normalizedStringOrRegex(config.jsxRefreshInclude),
77
+ jsxRefreshExclude: require_src.normalizedStringOrRegex(config.jsxRefreshExclude)
78
+ };
79
+ return new require_src.BuiltinPlugin("builtin:transform", config);
80
+ }
81
+
82
+ //#endregion
83
+ exports.ResolverFactory = require_parse_ast_index.ResolverFactory;
84
+ exports.aliasPlugin = aliasPlugin;
85
+ exports.assetPlugin = require_src.assetPlugin;
86
+ exports.buildImportAnalysisPlugin = require_src.buildImportAnalysisPlugin;
87
+ exports.composePlugins = require_src.composeJsPlugins;
88
+ exports.defineParallelPlugin = defineParallelPlugin;
89
+ exports.dynamicImportVarsPlugin = require_src.dynamicImportVarsPlugin;
90
+ exports.importGlobPlugin = require_src.importGlobPlugin;
91
+ exports.isolatedDeclaration = require_parse_ast_index.isolatedDeclaration;
92
+ exports.isolatedDeclarationPlugin = require_src.isolatedDeclarationPlugin;
93
+ exports.jsonPlugin = require_src.jsonPlugin;
94
+ exports.loadFallbackPlugin = require_src.loadFallbackPlugin;
95
+ exports.manifestPlugin = require_src.manifestPlugin;
96
+ exports.moduleFederationPlugin = require_src.moduleFederationPlugin;
97
+ exports.modulePreloadPolyfillPlugin = require_src.modulePreloadPolyfillPlugin;
98
+ exports.moduleRunnerTransform = require_parse_ast_index.moduleRunnerTransform;
99
+ exports.replacePlugin = replacePlugin;
100
+ exports.reporterPlugin = require_src.reporterPlugin;
101
+ exports.scan = experimental_scan;
102
+ exports.transform = require_parse_ast_index.transform;
103
+ exports.transformPlugin = transformPlugin;
104
+ exports.viteResolvePlugin = require_src.viteResolvePlugin;
105
+ exports.wasmFallbackPlugin = require_src.wasmFallbackPlugin;
106
+ exports.wasmHelperPlugin = require_src.wasmHelperPlugin;
107
+ exports.webWorkerPostPlugin = require_src.webWorkerPostPlugin;
@@ -0,0 +1,63 @@
1
+ import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding-BvKFOCZr.cjs";
2
+ import { BuiltinPlugin, InputOptions, RolldownPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config-BOD4oRSZ.cjs";
3
+
4
+ //#region src/api/experimental.d.ts
5
+
6
+ /**
7
+ * This is an experimental API. It's behavior may change in the future.
8
+ *
9
+ * Calling this API will only execute the scan stage of rolldown.
10
+ */
11
+ declare const experimental_scan: (input: InputOptions) => Promise<void>;
12
+ //#endregion
13
+ //#region src/utils/compose-js-plugins.d.ts
14
+ declare function composeJsPlugins(plugins: RolldownPlugin[]): RolldownPlugin[];
15
+ //#endregion
16
+ //#region src/builtin-plugin/alias-plugin.d.ts
17
+ type AliasPluginAlias = {
18
+ find: string | RegExp;
19
+ replacement: string;
20
+ };
21
+ // A temp config type for giving better user experience
22
+ type AliasPluginConfig = {
23
+ entries: AliasPluginAlias[];
24
+ };
25
+ declare function aliasPlugin(config: AliasPluginConfig): BuiltinPlugin;
26
+ //#endregion
27
+ //#region src/builtin-plugin/replace-plugin.d.ts
28
+ /**
29
+ * Replaces targeted strings in files while bundling.
30
+ *
31
+ * @example
32
+ * // Basic usage
33
+ * ```js
34
+ * replacePlugin({
35
+ * 'process.env.NODE_ENV': JSON.stringify('production'),
36
+ * __buildVersion: 15
37
+ * })
38
+ * ```
39
+ * @example
40
+ * // With options
41
+ * ```js
42
+ * replacePlugin({
43
+ * 'process.env.NODE_ENV': JSON.stringify('production'),
44
+ * __buildVersion: 15
45
+ * }, {
46
+ * preventAssignment: false,
47
+ * })
48
+ * ```
49
+ */
50
+ declare function replacePlugin(values?: BindingReplacePluginConfig["values"], options?: Omit<BindingReplacePluginConfig, "values">): BuiltinPlugin;
51
+ //#endregion
52
+ //#region src/builtin-plugin/transform-plugin.d.ts
53
+ type TransformPattern = string | RegExp | readonly (RegExp | string)[];
54
+ // A temp config type for giving better user experience
55
+ type TransformPluginConfig = Omit<BindingTransformPluginConfig, "include" | "exclude" | "jsxRefreshInclude" | "jsxRefreshExclude"> & {
56
+ include?: TransformPattern;
57
+ exclude?: TransformPattern;
58
+ jsxRefreshInclude?: TransformPattern;
59
+ jsxRefreshExclude?: TransformPattern;
60
+ };
61
+ declare function transformPlugin(config?: TransformPluginConfig): BuiltinPlugin;
62
+ //#endregion
63
+ export { IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions as ResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, aliasPlugin, assetPlugin, buildImportAnalysisPlugin, composeJsPlugins as composePlugins, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, moduleRunnerTransform, replacePlugin, reporterPlugin, experimental_scan as scan, transform, transformPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin };
@@ -0,0 +1,63 @@
1
+ import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding-5O9lFYtz.mjs";
2
+ import { BuiltinPlugin, InputOptions, RolldownPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config-DdVYel_V.mjs";
3
+
4
+ //#region src/api/experimental.d.ts
5
+
6
+ /**
7
+ * This is an experimental API. It's behavior may change in the future.
8
+ *
9
+ * Calling this API will only execute the scan stage of rolldown.
10
+ */
11
+ declare const experimental_scan: (input: InputOptions) => Promise<void>;
12
+ //#endregion
13
+ //#region src/utils/compose-js-plugins.d.ts
14
+ declare function composeJsPlugins(plugins: RolldownPlugin[]): RolldownPlugin[];
15
+ //#endregion
16
+ //#region src/builtin-plugin/alias-plugin.d.ts
17
+ type AliasPluginAlias = {
18
+ find: string | RegExp;
19
+ replacement: string;
20
+ };
21
+ // A temp config type for giving better user experience
22
+ type AliasPluginConfig = {
23
+ entries: AliasPluginAlias[];
24
+ };
25
+ declare function aliasPlugin(config: AliasPluginConfig): BuiltinPlugin;
26
+ //#endregion
27
+ //#region src/builtin-plugin/replace-plugin.d.ts
28
+ /**
29
+ * Replaces targeted strings in files while bundling.
30
+ *
31
+ * @example
32
+ * // Basic usage
33
+ * ```js
34
+ * replacePlugin({
35
+ * 'process.env.NODE_ENV': JSON.stringify('production'),
36
+ * __buildVersion: 15
37
+ * })
38
+ * ```
39
+ * @example
40
+ * // With options
41
+ * ```js
42
+ * replacePlugin({
43
+ * 'process.env.NODE_ENV': JSON.stringify('production'),
44
+ * __buildVersion: 15
45
+ * }, {
46
+ * preventAssignment: false,
47
+ * })
48
+ * ```
49
+ */
50
+ declare function replacePlugin(values?: BindingReplacePluginConfig["values"], options?: Omit<BindingReplacePluginConfig, "values">): BuiltinPlugin;
51
+ //#endregion
52
+ //#region src/builtin-plugin/transform-plugin.d.ts
53
+ type TransformPattern = string | RegExp | readonly (RegExp | string)[];
54
+ // A temp config type for giving better user experience
55
+ type TransformPluginConfig = Omit<BindingTransformPluginConfig, "include" | "exclude" | "jsxRefreshInclude" | "jsxRefreshExclude"> & {
56
+ include?: TransformPattern;
57
+ exclude?: TransformPattern;
58
+ jsxRefreshInclude?: TransformPattern;
59
+ jsxRefreshExclude?: TransformPattern;
60
+ };
61
+ declare function transformPlugin(config?: TransformPluginConfig): BuiltinPlugin;
62
+ //#endregion
63
+ export { IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions as ResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, aliasPlugin, assetPlugin, buildImportAnalysisPlugin, composeJsPlugins as composePlugins, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, moduleRunnerTransform, replacePlugin, reporterPlugin, experimental_scan as scan, transform, transformPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin };
@@ -0,0 +1,82 @@
1
+ import { BindingBundler, ResolverFactory, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/parse-ast-index-DW8kbzjr.mjs";
2
+ import { BuiltinPlugin, PluginDriver, assetPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundlerImpl, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/src-DHXNdTPA.mjs";
3
+ import "./shared/misc-BN0nse6C.mjs";
4
+ import { pathToFileURL } from "node:url";
5
+
6
+ //#region src/api/experimental.ts
7
+ /**
8
+ * This is an experimental API. It's behavior may change in the future.
9
+ *
10
+ * Calling this API will only execute the scan stage of rolldown.
11
+ */
12
+ const experimental_scan = async (input) => {
13
+ const inputOptions = await PluginDriver.callOptionsHook(input);
14
+ const { impl: bundler, stopWorkers } = await createBundlerImpl(new BindingBundler(), inputOptions, {});
15
+ const output = await bundler.scan();
16
+ handleOutputErrors(output);
17
+ await stopWorkers?.();
18
+ };
19
+
20
+ //#endregion
21
+ //#region src/plugin/parallel-plugin.ts
22
+ function defineParallelPlugin(pluginPath) {
23
+ return (options) => {
24
+ return { _parallel: {
25
+ fileUrl: pathToFileURL(pluginPath).href,
26
+ options
27
+ } };
28
+ };
29
+ }
30
+
31
+ //#endregion
32
+ //#region src/builtin-plugin/alias-plugin.ts
33
+ function aliasPlugin(config) {
34
+ return new BuiltinPlugin("builtin:alias", config);
35
+ }
36
+
37
+ //#endregion
38
+ //#region src/builtin-plugin/replace-plugin.ts
39
+ /**
40
+ * Replaces targeted strings in files while bundling.
41
+ *
42
+ * @example
43
+ * // Basic usage
44
+ * ```js
45
+ * replacePlugin({
46
+ * 'process.env.NODE_ENV': JSON.stringify('production'),
47
+ * __buildVersion: 15
48
+ * })
49
+ * ```
50
+ * @example
51
+ * // With options
52
+ * ```js
53
+ * replacePlugin({
54
+ * 'process.env.NODE_ENV': JSON.stringify('production'),
55
+ * __buildVersion: 15
56
+ * }, {
57
+ * preventAssignment: false,
58
+ * })
59
+ * ```
60
+ */
61
+ function replacePlugin(values = {}, options = {}) {
62
+ return new BuiltinPlugin("builtin:replace", {
63
+ ...options,
64
+ values
65
+ });
66
+ }
67
+
68
+ //#endregion
69
+ //#region src/builtin-plugin/transform-plugin.ts
70
+ function transformPlugin(config) {
71
+ if (config) config = {
72
+ ...config,
73
+ include: normalizedStringOrRegex(config.include),
74
+ exclude: normalizedStringOrRegex(config.exclude),
75
+ jsxRefreshInclude: normalizedStringOrRegex(config.jsxRefreshInclude),
76
+ jsxRefreshExclude: normalizedStringOrRegex(config.jsxRefreshExclude)
77
+ };
78
+ return new BuiltinPlugin("builtin:transform", config);
79
+ }
80
+
81
+ //#endregion
82
+ export { ResolverFactory, aliasPlugin, assetPlugin, buildImportAnalysisPlugin, composeJsPlugins as composePlugins, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, moduleRunnerTransform, replacePlugin, reporterPlugin, experimental_scan as scan, transform, transformPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin };
@@ -0,0 +1,52 @@
1
+ declare class DevRuntime {
2
+ /**
3
+ * @type {Record<string, { exports: any }>}
4
+ */
5
+ modules: Record<string, {
6
+ exports: any;
7
+ }>;
8
+ /**
9
+ * @param {string} _moduleId
10
+ */
11
+ createModuleHotContext(_moduleId: string): void;
12
+ /**
13
+ *
14
+ * @param {string[]} _boundaries
15
+ */
16
+ applyUpdates(_boundaries: string[]): void;
17
+ /**
18
+ * @param {string} id
19
+ * @param {{ exports: any }} module
20
+ */
21
+ registerModule(id: string, module: {
22
+ exports: any;
23
+ }): void;
24
+ /**
25
+ * @param {string} id
26
+ */
27
+ loadExports(id: string): any;
28
+ /**
29
+ * __esmMin
30
+ *
31
+ * @type {<T>(fn: any, res: T) => () => T}
32
+ * @internal
33
+ */
34
+ createEsmInitializer: <T>(fn: any, res: T) => () => T;
35
+ /**
36
+ * __commonJSMin
37
+ *
38
+ * @type {<T extends { exports: any }>(cb: any, mod: { exports: any }) => () => T}
39
+ * @internal
40
+ */
41
+ createCjsInitializer: <T extends {
42
+ exports: any;
43
+ }>(cb: any, mod: {
44
+ exports: any;
45
+ }) => () => T;
46
+ /** @internal */
47
+ __toESM: any;
48
+ /** @internal */
49
+ __toCommonJS: any;
50
+ /** @internal */
51
+ __export: any;
52
+ }
@@ -0,0 +1,105 @@
1
+ const require_chunk = require('./shared/chunk-DDkG_k5U.cjs');
2
+ const require_misc = require('./shared/misc-BKp5iIef.cjs');
3
+ const __rolldown_pluginutils = require_chunk.__toESM(require("@rolldown/pluginutils"));
4
+
5
+ //#region src/plugin/with-filter.ts
6
+ function withFilterImpl(pluginOption, filterObjectList) {
7
+ if (require_misc.isPromiseLike(pluginOption)) return pluginOption.then((p) => withFilter(p, filterObjectList));
8
+ if (pluginOption == false || pluginOption == null) return pluginOption;
9
+ if (Array.isArray(pluginOption)) return pluginOption.map((p) => withFilter(p, filterObjectList));
10
+ let plugin = pluginOption;
11
+ let filterObjectIndex = findMatchedFilterObject(plugin.name, filterObjectList);
12
+ if (filterObjectIndex === -1) return plugin;
13
+ let filterObject = filterObjectList[filterObjectIndex];
14
+ Object.keys(plugin).forEach((key) => {
15
+ switch (key) {
16
+ case "transform":
17
+ case "resolveId":
18
+ case "load":
19
+ if (!plugin[key]) return;
20
+ if (typeof plugin[key] === "object") plugin[key].filter = filterObject[key] ?? plugin[key].filter;
21
+ else plugin[key] = {
22
+ handler: plugin[key],
23
+ filter: filterObject[key]
24
+ };
25
+ break;
26
+ default: break;
27
+ }
28
+ });
29
+ return plugin;
30
+ }
31
+ function withFilter(pluginOption, filterObject) {
32
+ return withFilterImpl(pluginOption, require_misc.arraify(filterObject));
33
+ }
34
+ function findMatchedFilterObject(pluginName, overrideFilterObjectList) {
35
+ if (overrideFilterObjectList.length === 1 && overrideFilterObjectList[0].pluginNamePattern === void 0) return 0;
36
+ for (let i = 0; i < overrideFilterObjectList.length; i++) for (let j = 0; j < (overrideFilterObjectList[i].pluginNamePattern ?? []).length; j++) {
37
+ let pattern = overrideFilterObjectList[i].pluginNamePattern[j];
38
+ if (typeof pattern === "string" && pattern === pluginName) return i;
39
+ else if (pattern instanceof RegExp && pattern.test(pluginName)) return i;
40
+ }
41
+ return -1;
42
+ }
43
+
44
+ //#endregion
45
+ Object.defineProperty(exports, 'and', {
46
+ enumerable: true,
47
+ get: function () {
48
+ return __rolldown_pluginutils.and;
49
+ }
50
+ });
51
+ Object.defineProperty(exports, 'code', {
52
+ enumerable: true,
53
+ get: function () {
54
+ return __rolldown_pluginutils.code;
55
+ }
56
+ });
57
+ Object.defineProperty(exports, 'exclude', {
58
+ enumerable: true,
59
+ get: function () {
60
+ return __rolldown_pluginutils.exclude;
61
+ }
62
+ });
63
+ Object.defineProperty(exports, 'id', {
64
+ enumerable: true,
65
+ get: function () {
66
+ return __rolldown_pluginutils.id;
67
+ }
68
+ });
69
+ Object.defineProperty(exports, 'include', {
70
+ enumerable: true,
71
+ get: function () {
72
+ return __rolldown_pluginutils.include;
73
+ }
74
+ });
75
+ Object.defineProperty(exports, 'moduleType', {
76
+ enumerable: true,
77
+ get: function () {
78
+ return __rolldown_pluginutils.moduleType;
79
+ }
80
+ });
81
+ Object.defineProperty(exports, 'not', {
82
+ enumerable: true,
83
+ get: function () {
84
+ return __rolldown_pluginutils.not;
85
+ }
86
+ });
87
+ Object.defineProperty(exports, 'or', {
88
+ enumerable: true,
89
+ get: function () {
90
+ return __rolldown_pluginutils.or;
91
+ }
92
+ });
93
+ Object.defineProperty(exports, 'queries', {
94
+ enumerable: true,
95
+ get: function () {
96
+ return __rolldown_pluginutils.queries;
97
+ }
98
+ });
99
+ Object.defineProperty(exports, 'query', {
100
+ enumerable: true,
101
+ get: function () {
102
+ return __rolldown_pluginutils.query;
103
+ }
104
+ });
105
+ exports.withFilter = withFilter;
@@ -0,0 +1,4 @@
1
+ import "./shared/binding-BvKFOCZr.cjs";
2
+ import { withFilter } from "./shared/define-config-BOD4oRSZ.cjs";
3
+ import { and, code, exclude, id, include, moduleType, not, or, queries, query } from "@rolldown/pluginutils";
4
+ export { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter };
@@ -0,0 +1,4 @@
1
+ import "./shared/binding-5O9lFYtz.mjs";
2
+ import { withFilter } from "./shared/define-config-DdVYel_V.mjs";
3
+ import { and, code, exclude, id, include, moduleType, not, or, queries, query } from "@rolldown/pluginutils";
4
+ export { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter };
@@ -0,0 +1,44 @@
1
+ import { arraify, isPromiseLike } from "./shared/misc-BN0nse6C.mjs";
2
+ import { and, code, exclude, id, include, moduleType, not, or, queries, query } from "@rolldown/pluginutils";
3
+
4
+ //#region src/plugin/with-filter.ts
5
+ function withFilterImpl(pluginOption, filterObjectList) {
6
+ if (isPromiseLike(pluginOption)) return pluginOption.then((p) => withFilter(p, filterObjectList));
7
+ if (pluginOption == false || pluginOption == null) return pluginOption;
8
+ if (Array.isArray(pluginOption)) return pluginOption.map((p) => withFilter(p, filterObjectList));
9
+ let plugin = pluginOption;
10
+ let filterObjectIndex = findMatchedFilterObject(plugin.name, filterObjectList);
11
+ if (filterObjectIndex === -1) return plugin;
12
+ let filterObject = filterObjectList[filterObjectIndex];
13
+ Object.keys(plugin).forEach((key) => {
14
+ switch (key) {
15
+ case "transform":
16
+ case "resolveId":
17
+ case "load":
18
+ if (!plugin[key]) return;
19
+ if (typeof plugin[key] === "object") plugin[key].filter = filterObject[key] ?? plugin[key].filter;
20
+ else plugin[key] = {
21
+ handler: plugin[key],
22
+ filter: filterObject[key]
23
+ };
24
+ break;
25
+ default: break;
26
+ }
27
+ });
28
+ return plugin;
29
+ }
30
+ function withFilter(pluginOption, filterObject) {
31
+ return withFilterImpl(pluginOption, arraify(filterObject));
32
+ }
33
+ function findMatchedFilterObject(pluginName, overrideFilterObjectList) {
34
+ if (overrideFilterObjectList.length === 1 && overrideFilterObjectList[0].pluginNamePattern === void 0) return 0;
35
+ for (let i = 0; i < overrideFilterObjectList.length; i++) for (let j = 0; j < (overrideFilterObjectList[i].pluginNamePattern ?? []).length; j++) {
36
+ let pattern = overrideFilterObjectList[i].pluginNamePattern[j];
37
+ if (typeof pattern === "string" && pattern === pluginName) return i;
38
+ else if (pattern instanceof RegExp && pattern.test(pluginName)) return i;
39
+ }
40
+ return -1;
41
+ }
42
+
43
+ //#endregion
44
+ export { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter };
package/dist/index.cjs ADDED
@@ -0,0 +1,9 @@
1
+ const require_src = require('./shared/src-CZ0tgOug.cjs');
2
+ require('./shared/parse-ast-index-CVVmsBjK.cjs');
3
+ require('./shared/misc-BKp5iIef.cjs');
4
+
5
+ exports.VERSION = require_src.VERSION;
6
+ exports.build = require_src.build;
7
+ exports.defineConfig = require_src.defineConfig;
8
+ exports.rolldown = require_src.rolldown;
9
+ exports.watch = require_src.watch;
@@ -0,0 +1,3 @@
1
+ import { PreRenderedChunk } from "./shared/binding-BvKFOCZr.cjs";
2
+ import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch } from "./shared/define-config-BOD4oRSZ.cjs";
3
+ export { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, PreRenderedChunk, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch };
@@ -0,0 +1,3 @@
1
+ import { PreRenderedChunk } from "./shared/binding-5O9lFYtz.mjs";
2
+ import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch } from "./shared/define-config-DdVYel_V.mjs";
3
+ export { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, PreRenderedChunk, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch };
package/dist/index.mjs ADDED
@@ -0,0 +1,5 @@
1
+ import "./shared/parse-ast-index-DW8kbzjr.mjs";
2
+ import { VERSION, build, defineConfig, rolldown, watch } from "./shared/src-DHXNdTPA.mjs";
3
+ import "./shared/misc-BN0nse6C.mjs";
4
+
5
+ export { VERSION, build, defineConfig, rolldown, watch };
@@ -1,7 +1,7 @@
1
- "use strict";
2
- const require_chunk = require('../shared/chunk-qZFfknuJ.cjs');
3
- const require_src = require('../shared/src-BC6S-BmL.cjs');
4
- const require_binding = require('../shared/binding-orkvONpS.cjs');
1
+ const require_chunk = require('./shared/chunk-DDkG_k5U.cjs');
2
+ const require_src = require('./shared/src-CZ0tgOug.cjs');
3
+ const require_parse_ast_index = require('./shared/parse-ast-index-CVVmsBjK.cjs');
4
+ require('./shared/misc-BKp5iIef.cjs');
5
5
  const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
6
6
 
7
7
  //#region src/parallel-plugin-worker.ts
@@ -14,18 +14,10 @@ const { registryId, pluginInfos, threadNumber } = node_worker_threads.workerData
14
14
  const plugin = await definePluginImpl(pluginInfo.options, { threadNumber });
15
15
  return {
16
16
  index: pluginInfo.index,
17
- plugin: require_src.bindingifyPlugin(
18
- plugin,
19
- {},
20
- {},
21
- // TODO need to find a way to share pluginContextData
22
- new require_src.PluginContextData(),
23
- () => {},
24
- "info"
25
- )
17
+ plugin: require_src.bindingifyPlugin(plugin, {}, {}, new require_src.PluginContextData(), [], () => {}, "info", false)
26
18
  };
27
19
  }));
28
- (0, require_binding.import_binding.registerPlugins)(registryId, plugins);
20
+ require_parse_ast_index.registerPlugins(registryId, plugins);
29
21
  node_worker_threads.parentPort.postMessage({ type: "success" });
30
22
  } catch (error) {
31
23
  node_worker_threads.parentPort.postMessage({
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };