rolldown 1.0.0-beta.1-commit.7c52c94 → 1.0.0-beta.10

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 (153) hide show
  1. package/bin/cli.mjs +2 -0
  2. package/dist/cli.cjs +1748 -0
  3. package/dist/cli.d.cts +1 -0
  4. package/dist/cli.d.mts +1 -0
  5. package/dist/cli.mjs +1745 -0
  6. package/dist/config.cjs +12 -0
  7. package/dist/config.d.cts +12 -0
  8. package/dist/config.d.mts +12 -0
  9. package/dist/config.mjs +10 -0
  10. package/dist/experimental-index.cjs +132 -0
  11. package/dist/experimental-index.d.cts +96 -0
  12. package/dist/experimental-index.d.mts +96 -0
  13. package/dist/experimental-index.mjs +91 -0
  14. package/dist/filter-index.cjs +105 -0
  15. package/dist/filter-index.d.cts +5 -0
  16. package/dist/filter-index.d.mts +5 -0
  17. package/dist/filter-index.mjs +44 -0
  18. package/dist/index.cjs +9 -0
  19. package/dist/index.d.cts +4 -0
  20. package/dist/index.d.mts +4 -0
  21. package/dist/index.mjs +5 -0
  22. package/dist/{cjs/parallel-plugin-worker.cjs → parallel-plugin-worker.cjs} +7 -14
  23. package/dist/parallel-plugin-worker.d.cts +1 -0
  24. package/dist/parallel-plugin-worker.d.mts +1 -0
  25. package/dist/{esm/parallel-plugin-worker.mjs → parallel-plugin-worker.mjs} +5 -11
  26. package/dist/{cjs/parallel-plugin.cjs → parallel-plugin.cjs} +1 -2
  27. package/dist/parallel-plugin.d.cts +15 -0
  28. package/dist/parallel-plugin.d.mts +15 -0
  29. package/dist/{esm/parallel-plugin.mjs → parallel-plugin.mjs} +0 -1
  30. package/dist/parse-ast-index.cjs +4 -0
  31. package/dist/parse-ast-index.d.cts +9 -0
  32. package/dist/parse-ast-index.d.mts +9 -0
  33. package/dist/parse-ast-index.mjs +3 -0
  34. package/dist/shared/binding.d-Bl5Vi4GH.d.mts +1702 -0
  35. package/dist/shared/binding.d-DcFBMcjI.d.cts +1702 -0
  36. package/dist/shared/{chunk-qZFfknuJ.cjs → chunk-DDkG_k5U.cjs} +0 -1
  37. package/dist/shared/define-config.d-B2xOSmbM.d.cts +1082 -0
  38. package/dist/shared/define-config.d-USfUuKiR.d.mts +1082 -0
  39. package/dist/shared/load-config-D6gW8FDa.cjs +125 -0
  40. package/dist/shared/load-config-eyuttVHY.mjs +119 -0
  41. package/dist/shared/misc-BKp5iIef.cjs +67 -0
  42. package/dist/shared/misc-BN0nse6C.mjs +25 -0
  43. package/dist/shared/{binding-fhgdIkpS.cjs → parse-ast-index-BvK1MT-L.cjs} +347 -309
  44. package/dist/shared/{binding-Bl7VQy7c.mjs → parse-ast-index-PSQWLeSo.mjs} +334 -277
  45. package/dist/shared/prompt-8EeOGx1_.cjs +854 -0
  46. package/dist/shared/prompt-C3zHEaSG.mjs +852 -0
  47. package/dist/shared/src-C2v46mL8.cjs +4654 -0
  48. package/dist/shared/src-D-VRn8rI.mjs +4456 -0
  49. package/package.json +62 -61
  50. package/bin/cli.js +0 -2
  51. package/dist/cjs/cli.cjs +0 -769
  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/cli.mjs +0 -766
  56. package/dist/esm/experimental-index.mjs +0 -56
  57. package/dist/esm/index.mjs +0 -4
  58. package/dist/esm/parse-ast-index.mjs +0 -55
  59. package/dist/shared/consola_36c0034f-Cx52UqEq.mjs +0 -832
  60. package/dist/shared/consola_36c0034f-CynBWXXO.cjs +0 -859
  61. package/dist/shared/prompt-B58MxVuU.cjs +0 -762
  62. package/dist/shared/prompt-DjjlOckE.mjs +0 -758
  63. package/dist/shared/src-CPCP99Z9.mjs +0 -2641
  64. package/dist/shared/src-lBcHSsjm.cjs +0 -2822
  65. package/dist/tsconfig.dts.tsbuildinfo +0 -1
  66. package/dist/types/api/build.d.ts +0 -18
  67. package/dist/types/api/experimental.d.ts +0 -7
  68. package/dist/types/api/rolldown/index.d.ts +0 -3
  69. package/dist/types/api/rolldown/rolldown-build.d.ts +0 -12
  70. package/dist/types/api/watch/index.d.ts +0 -3
  71. package/dist/types/api/watch/watch-emitter.d.ts +0 -31
  72. package/dist/types/api/watch/watcher.d.ts +0 -13
  73. package/dist/types/binding.d.ts +0 -1288
  74. package/dist/types/builtin-plugin/alias-plugin.d.ts +0 -10
  75. package/dist/types/builtin-plugin/constructors.d.ts +0 -20
  76. package/dist/types/builtin-plugin/replace-plugin.d.ts +0 -28
  77. package/dist/types/builtin-plugin/transform-plugin.d.ts +0 -9
  78. package/dist/types/builtin-plugin/utils.d.ts +0 -8
  79. package/dist/types/cli/arguments/alias.d.ts +0 -16
  80. package/dist/types/cli/arguments/index.d.ts +0 -15
  81. package/dist/types/cli/arguments/normalize.d.ts +0 -12
  82. package/dist/types/cli/arguments/utils.d.ts +0 -8
  83. package/dist/types/cli/colors.d.ts +0 -11
  84. package/dist/types/cli/commands/bundle.d.ts +0 -3
  85. package/dist/types/cli/commands/help.d.ts +0 -1
  86. package/dist/types/cli/index.d.ts +0 -1
  87. package/dist/types/cli/load-config.d.ts +0 -3
  88. package/dist/types/cli/logger.d.ts +0 -5
  89. package/dist/types/constants/plugin-context.d.ts +0 -7
  90. package/dist/types/constants/plugin.d.ts +0 -45
  91. package/dist/types/experimental-index.d.ts +0 -9
  92. package/dist/types/index.d.ts +0 -28
  93. package/dist/types/log/logHandler.d.ts +0 -4
  94. package/dist/types/log/logger.d.ts +0 -6
  95. package/dist/types/log/logging.d.ts +0 -11
  96. package/dist/types/log/logs.d.ts +0 -18
  97. package/dist/types/options/input-options.d.ts +0 -125
  98. package/dist/types/options/normalized-input-options.d.ts +0 -18
  99. package/dist/types/options/normalized-output-options.d.ts +0 -67
  100. package/dist/types/options/output-options.d.ts +0 -80
  101. package/dist/types/options/watch-options.d.ts +0 -5
  102. package/dist/types/parallel-plugin-worker.d.ts +0 -1
  103. package/dist/types/parallel-plugin.d.ts +0 -1
  104. package/dist/types/parse-ast-index.d.ts +0 -4
  105. package/dist/types/plugin/bindingify-build-hooks.d.ts +0 -10
  106. package/dist/types/plugin/bindingify-hook-filter.d.ts +0 -7
  107. package/dist/types/plugin/bindingify-output-hooks.d.ts +0 -14
  108. package/dist/types/plugin/bindingify-plugin-hook-meta.d.ts +0 -8
  109. package/dist/types/plugin/bindingify-plugin.d.ts +0 -15
  110. package/dist/types/plugin/bindingify-watch-hooks.d.ts +0 -5
  111. package/dist/types/plugin/hook-filter.d.ts +0 -48
  112. package/dist/types/plugin/index.d.ts +0 -126
  113. package/dist/types/plugin/minimal-plugin-context.d.ts +0 -15
  114. package/dist/types/plugin/parallel-plugin-implementation.d.ts +0 -10
  115. package/dist/types/plugin/parallel-plugin.d.ts +0 -9
  116. package/dist/types/plugin/plugin-context-data.d.ts +0 -16
  117. package/dist/types/plugin/plugin-context.d.ts +0 -52
  118. package/dist/types/plugin/plugin-driver.d.ts +0 -8
  119. package/dist/types/plugin/transform-plugin-context.d.ts +0 -17
  120. package/dist/types/types/assert.d.ts +0 -13
  121. package/dist/types/types/config-export.d.ts +0 -5
  122. package/dist/types/types/misc.d.ts +0 -40
  123. package/dist/types/types/module-info.d.ts +0 -15
  124. package/dist/types/types/module-side-effects.d.ts +0 -10
  125. package/dist/types/types/output-bundle.d.ts +0 -4
  126. package/dist/types/types/rolldown-options.d.ts +0 -5
  127. package/dist/types/types/rolldown-output.d.ts +0 -63
  128. package/dist/types/types/schema.d.ts +0 -33
  129. package/dist/types/types/sourcemap.d.ts +0 -13
  130. package/dist/types/types/utils.d.ts +0 -13
  131. package/dist/types/utils/asset-source.d.ts +0 -4
  132. package/dist/types/utils/async-flatten.d.ts +0 -1
  133. package/dist/types/utils/bindingify-input-options.d.ts +0 -7
  134. package/dist/types/utils/bindingify-output-options.d.ts +0 -3
  135. package/dist/types/utils/code-frame.d.ts +0 -1
  136. package/dist/types/utils/compose-js-plugins.d.ts +0 -2
  137. package/dist/types/utils/create-bundler-option.d.ts +0 -11
  138. package/dist/types/utils/create-bundler.d.ts +0 -8
  139. package/dist/types/utils/define-config.d.ts +0 -5
  140. package/dist/types/utils/error.d.ts +0 -2
  141. package/dist/types/utils/initialize-parallel-plugins.d.ts +0 -19
  142. package/dist/types/utils/misc.d.ts +0 -6
  143. package/dist/types/utils/normalize-hook.d.ts +0 -7
  144. package/dist/types/utils/normalize-plugin-option.d.ts +0 -13
  145. package/dist/types/utils/normalize-string-or-regex.d.ts +0 -2
  146. package/dist/types/utils/plugin/index.d.ts +0 -2
  147. package/dist/types/utils/transform-module-info.d.ts +0 -4
  148. package/dist/types/utils/transform-rendered-chunk.d.ts +0 -4
  149. package/dist/types/utils/transform-rendered-module.d.ts +0 -3
  150. package/dist/types/utils/transform-side-effects.d.ts +0 -3
  151. package/dist/types/utils/transform-sourcemap.d.ts +0 -3
  152. package/dist/types/utils/transform-to-rollup-output.d.ts +0 -11
  153. package/dist/types/utils/validator.d.ts +0 -7
@@ -0,0 +1,12 @@
1
+ const require_src = require('./shared/src-C2v46mL8.cjs');
2
+ require('./shared/parse-ast-index-BvK1MT-L.cjs');
3
+ require('./shared/misc-BKp5iIef.cjs');
4
+ const require_load_config = require('./shared/load-config-D6gW8FDa.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,12 @@
1
+ import "./shared/binding.d-DcFBMcjI.cjs";
2
+ import { ConfigExport, defineConfig } from "./shared/define-config.d-B2xOSmbM.cjs";
3
+
4
+ //#region src/utils/load-config.d.ts
5
+ declare function loadConfig(configPath: string): Promise<ConfigExport>;
6
+
7
+ //#endregion
8
+ //#region src/config.d.ts
9
+ declare const VERSION: string;
10
+
11
+ //#endregion
12
+ export { VERSION, defineConfig, loadConfig };
@@ -0,0 +1,12 @@
1
+ import "./shared/binding.d-Bl5Vi4GH.mjs";
2
+ import { ConfigExport, defineConfig$1 as defineConfig } from "./shared/define-config.d-USfUuKiR.mjs";
3
+
4
+ //#region src/utils/load-config.d.ts
5
+ declare function loadConfig(configPath: string): Promise<ConfigExport>;
6
+
7
+ //#endregion
8
+ //#region src/config.d.ts
9
+ declare const VERSION: string;
10
+
11
+ //#endregion
12
+ export { VERSION, defineConfig, loadConfig };
@@ -0,0 +1,10 @@
1
+ import "./shared/parse-ast-index-PSQWLeSo.mjs";
2
+ import { defineConfig, version } from "./shared/src-D-VRn8rI.mjs";
3
+ import "./shared/misc-BN0nse6C.mjs";
4
+ import { loadConfig } from "./shared/load-config-eyuttVHY.mjs";
5
+
6
+ //#region src/config.ts
7
+ const VERSION = version;
8
+
9
+ //#endregion
10
+ export { VERSION, defineConfig, loadConfig };
@@ -0,0 +1,132 @@
1
+ const require_chunk = require('./shared/chunk-DDkG_k5U.cjs');
2
+ const require_src = require('./shared/src-C2v46mL8.cjs');
3
+ const require_parse_ast_index = require('./shared/parse-ast-index-BvK1MT-L.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 { bundler, stopWorkers } = await require_src.createBundler(input, {});
15
+ const output = await bundler.scan();
16
+ require_src.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: (0, node_url.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 require_src.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
+ * __buildDate__: () => JSON.stringify(new Date()),
48
+ * __buildVersion: 15
49
+ * })
50
+ * ```
51
+ * @example
52
+ * // With options
53
+ * ```js
54
+ * replacePlugin({
55
+ * 'process.env.NODE_ENV': JSON.stringify('production'),
56
+ * __buildDate__: () => JSON.stringify(new Date()),
57
+ * __buildVersion: 15
58
+ * }, {
59
+ * preventAssignment: false,
60
+ * })
61
+ * ```
62
+ */
63
+ function replacePlugin(values = {}, options = {}) {
64
+ return new require_src.BuiltinPlugin("builtin:replace", {
65
+ ...options,
66
+ values
67
+ });
68
+ }
69
+
70
+ //#endregion
71
+ //#region src/builtin-plugin/transform-plugin.ts
72
+ function transformPlugin(config) {
73
+ if (config) config = {
74
+ ...config,
75
+ include: require_src.normalizedStringOrRegex(config.include),
76
+ exclude: require_src.normalizedStringOrRegex(config.exclude),
77
+ jsxRefreshInclude: require_src.normalizedStringOrRegex(config.jsxRefreshInclude),
78
+ jsxRefreshExclude: require_src.normalizedStringOrRegex(config.jsxRefreshExclude)
79
+ };
80
+ return new require_src.BuiltinPlugin("builtin:transform", config);
81
+ }
82
+
83
+ //#endregion
84
+ //#region src/experimental-index.ts
85
+ var import_binding = require_chunk.__toESM(require_parse_ast_index.require_binding());
86
+
87
+ //#endregion
88
+ Object.defineProperty(exports, 'ResolverFactory', {
89
+ enumerable: true,
90
+ get: function () {
91
+ return import_binding.ResolverFactory;
92
+ }
93
+ });
94
+ exports.aliasPlugin = aliasPlugin;
95
+ exports.assetPlugin = require_src.assetPlugin;
96
+ exports.buildImportAnalysisPlugin = require_src.buildImportAnalysisPlugin;
97
+ exports.composePlugins = require_src.composeJsPlugins;
98
+ exports.defineParallelPlugin = defineParallelPlugin;
99
+ exports.dynamicImportVarsPlugin = require_src.dynamicImportVarsPlugin;
100
+ exports.importGlobPlugin = require_src.importGlobPlugin;
101
+ Object.defineProperty(exports, 'isolatedDeclaration', {
102
+ enumerable: true,
103
+ get: function () {
104
+ return import_binding.isolatedDeclaration;
105
+ }
106
+ });
107
+ exports.isolatedDeclarationPlugin = require_src.isolatedDeclarationPlugin;
108
+ exports.jsonPlugin = require_src.jsonPlugin;
109
+ exports.loadFallbackPlugin = require_src.loadFallbackPlugin;
110
+ exports.manifestPlugin = require_src.manifestPlugin;
111
+ exports.moduleFederationPlugin = require_src.moduleFederationPlugin;
112
+ exports.modulePreloadPolyfillPlugin = require_src.modulePreloadPolyfillPlugin;
113
+ Object.defineProperty(exports, 'moduleRunnerTransform', {
114
+ enumerable: true,
115
+ get: function () {
116
+ return import_binding.moduleRunnerTransform;
117
+ }
118
+ });
119
+ exports.replacePlugin = replacePlugin;
120
+ exports.reporterPlugin = require_src.reporterPlugin;
121
+ exports.scan = experimental_scan;
122
+ Object.defineProperty(exports, 'transform', {
123
+ enumerable: true,
124
+ get: function () {
125
+ return import_binding.transform;
126
+ }
127
+ });
128
+ exports.transformPlugin = transformPlugin;
129
+ exports.viteResolvePlugin = require_src.viteResolvePlugin;
130
+ exports.wasmFallbackPlugin = require_src.wasmFallbackPlugin;
131
+ exports.wasmHelperPlugin = require_src.wasmHelperPlugin;
132
+ exports.webWorkerPostPlugin = require_src.webWorkerPostPlugin;
@@ -0,0 +1,96 @@
1
+ import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult$1 as TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding.d-DcFBMcjI.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.d-B2xOSmbM.cjs";
3
+
4
+ //#region src/api/experimental.d.ts
5
+ /**
6
+ * This is an experimental API. It's behavior may change in the future.
7
+ *
8
+ * Calling this API will only execute the scan stage of rolldown.
9
+ */
10
+ /**
11
+ * This is an experimental API. It's behavior may change in the future.
12
+ *
13
+ * Calling this API will only execute the scan stage of rolldown.
14
+ */
15
+ declare const experimental_scan: (input: InputOptions) => Promise<void>;
16
+
17
+ //#endregion
18
+ //#region src/utils/compose-js-plugins.d.ts
19
+ declare function composeJsPlugins(plugins: RolldownPlugin[]): RolldownPlugin[];
20
+
21
+ //#endregion
22
+ //#region src/builtin-plugin/alias-plugin.d.ts
23
+ type AliasPluginAlias = {
24
+ find: string | RegExp
25
+ replacement: string
26
+ };
27
+ type AliasPluginConfig = {
28
+ entries: AliasPluginAlias[]
29
+ };
30
+ declare function aliasPlugin(config: AliasPluginConfig): BuiltinPlugin;
31
+
32
+ //#endregion
33
+ //#region src/builtin-plugin/replace-plugin.d.ts
34
+ /**
35
+ * Replaces targeted strings in files while bundling.
36
+ *
37
+ * @example
38
+ * // Basic usage
39
+ * ```js
40
+ * replacePlugin({
41
+ * 'process.env.NODE_ENV': JSON.stringify('production'),
42
+ * __buildDate__: () => JSON.stringify(new Date()),
43
+ * __buildVersion: 15
44
+ * })
45
+ * ```
46
+ * @example
47
+ * // With options
48
+ * ```js
49
+ * replacePlugin({
50
+ * 'process.env.NODE_ENV': JSON.stringify('production'),
51
+ * __buildDate__: () => JSON.stringify(new Date()),
52
+ * __buildVersion: 15
53
+ * }, {
54
+ * preventAssignment: false,
55
+ * })
56
+ * ```
57
+ */
58
+ /**
59
+ * Replaces targeted strings in files while bundling.
60
+ *
61
+ * @example
62
+ * // Basic usage
63
+ * ```js
64
+ * replacePlugin({
65
+ * 'process.env.NODE_ENV': JSON.stringify('production'),
66
+ * __buildDate__: () => JSON.stringify(new Date()),
67
+ * __buildVersion: 15
68
+ * })
69
+ * ```
70
+ * @example
71
+ * // With options
72
+ * ```js
73
+ * replacePlugin({
74
+ * 'process.env.NODE_ENV': JSON.stringify('production'),
75
+ * __buildDate__: () => JSON.stringify(new Date()),
76
+ * __buildVersion: 15
77
+ * }, {
78
+ * preventAssignment: false,
79
+ * })
80
+ * ```
81
+ */
82
+ declare function replacePlugin(values?: BindingReplacePluginConfig["values"], options?: Omit<BindingReplacePluginConfig, "values">): BuiltinPlugin;
83
+
84
+ //#endregion
85
+ //#region src/builtin-plugin/transform-plugin.d.ts
86
+ type TransformPattern = string | RegExp | readonly (RegExp | string)[];
87
+ type TransformPluginConfig = Omit<BindingTransformPluginConfig, "include" | "exclude" | "jsxRefreshInclude" | "jsxRefreshExclude"> & {
88
+ include?: TransformPattern
89
+ exclude?: TransformPattern
90
+ jsxRefreshInclude?: TransformPattern
91
+ jsxRefreshExclude?: TransformPattern
92
+ };
93
+ declare function transformPlugin(config?: TransformPluginConfig): BuiltinPlugin;
94
+
95
+ //#endregion
96
+ 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,96 @@
1
+ import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult$1 as TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding.d-Bl5Vi4GH.mjs";
2
+ import { BuiltinPlugin$1 as BuiltinPlugin, InputOptions, RolldownPlugin, assetPlugin$1 as assetPlugin, buildImportAnalysisPlugin$1 as buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin$1 as dynamicImportVarsPlugin, importGlobPlugin$1 as importGlobPlugin, isolatedDeclarationPlugin$1 as isolatedDeclarationPlugin, jsonPlugin$1 as jsonPlugin, loadFallbackPlugin$1 as loadFallbackPlugin, manifestPlugin$1 as manifestPlugin, moduleFederationPlugin$1 as moduleFederationPlugin, modulePreloadPolyfillPlugin$1 as modulePreloadPolyfillPlugin, reporterPlugin$1 as reporterPlugin, viteResolvePlugin$1 as viteResolvePlugin, wasmFallbackPlugin$1 as wasmFallbackPlugin, wasmHelperPlugin$1 as wasmHelperPlugin, webWorkerPostPlugin$1 as webWorkerPostPlugin } from "./shared/define-config.d-USfUuKiR.mjs";
3
+
4
+ //#region src/api/experimental.d.ts
5
+ /**
6
+ * This is an experimental API. It's behavior may change in the future.
7
+ *
8
+ * Calling this API will only execute the scan stage of rolldown.
9
+ */
10
+ /**
11
+ * This is an experimental API. It's behavior may change in the future.
12
+ *
13
+ * Calling this API will only execute the scan stage of rolldown.
14
+ */
15
+ declare const experimental_scan: (input: InputOptions) => Promise<void>;
16
+
17
+ //#endregion
18
+ //#region src/utils/compose-js-plugins.d.ts
19
+ declare function composeJsPlugins(plugins: RolldownPlugin[]): RolldownPlugin[];
20
+
21
+ //#endregion
22
+ //#region src/builtin-plugin/alias-plugin.d.ts
23
+ type AliasPluginAlias = {
24
+ find: string | RegExp
25
+ replacement: string
26
+ };
27
+ type AliasPluginConfig = {
28
+ entries: AliasPluginAlias[]
29
+ };
30
+ declare function aliasPlugin(config: AliasPluginConfig): BuiltinPlugin;
31
+
32
+ //#endregion
33
+ //#region src/builtin-plugin/replace-plugin.d.ts
34
+ /**
35
+ * Replaces targeted strings in files while bundling.
36
+ *
37
+ * @example
38
+ * // Basic usage
39
+ * ```js
40
+ * replacePlugin({
41
+ * 'process.env.NODE_ENV': JSON.stringify('production'),
42
+ * __buildDate__: () => JSON.stringify(new Date()),
43
+ * __buildVersion: 15
44
+ * })
45
+ * ```
46
+ * @example
47
+ * // With options
48
+ * ```js
49
+ * replacePlugin({
50
+ * 'process.env.NODE_ENV': JSON.stringify('production'),
51
+ * __buildDate__: () => JSON.stringify(new Date()),
52
+ * __buildVersion: 15
53
+ * }, {
54
+ * preventAssignment: false,
55
+ * })
56
+ * ```
57
+ */
58
+ /**
59
+ * Replaces targeted strings in files while bundling.
60
+ *
61
+ * @example
62
+ * // Basic usage
63
+ * ```js
64
+ * replacePlugin({
65
+ * 'process.env.NODE_ENV': JSON.stringify('production'),
66
+ * __buildDate__: () => JSON.stringify(new Date()),
67
+ * __buildVersion: 15
68
+ * })
69
+ * ```
70
+ * @example
71
+ * // With options
72
+ * ```js
73
+ * replacePlugin({
74
+ * 'process.env.NODE_ENV': JSON.stringify('production'),
75
+ * __buildDate__: () => JSON.stringify(new Date()),
76
+ * __buildVersion: 15
77
+ * }, {
78
+ * preventAssignment: false,
79
+ * })
80
+ * ```
81
+ */
82
+ declare function replacePlugin(values?: BindingReplacePluginConfig["values"], options?: Omit<BindingReplacePluginConfig, "values">): BuiltinPlugin;
83
+
84
+ //#endregion
85
+ //#region src/builtin-plugin/transform-plugin.d.ts
86
+ type TransformPattern = string | RegExp | readonly (RegExp | string)[];
87
+ type TransformPluginConfig = Omit<BindingTransformPluginConfig, "include" | "exclude" | "jsxRefreshInclude" | "jsxRefreshExclude"> & {
88
+ include?: TransformPattern
89
+ exclude?: TransformPattern
90
+ jsxRefreshInclude?: TransformPattern
91
+ jsxRefreshExclude?: TransformPattern
92
+ };
93
+ declare function transformPlugin(config?: TransformPluginConfig): BuiltinPlugin;
94
+
95
+ //#endregion
96
+ 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,91 @@
1
+ import { __toESM, require_binding } from "./shared/parse-ast-index-PSQWLeSo.mjs";
2
+ import { BuiltinPlugin, assetPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/src-D-VRn8rI.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 { bundler, stopWorkers } = await createBundler(input, {});
14
+ const output = await bundler.scan();
15
+ handleOutputErrors(output);
16
+ await stopWorkers?.();
17
+ };
18
+
19
+ //#endregion
20
+ //#region src/plugin/parallel-plugin.ts
21
+ function defineParallelPlugin(pluginPath) {
22
+ return (options) => {
23
+ return { _parallel: {
24
+ fileUrl: pathToFileURL(pluginPath).href,
25
+ options
26
+ } };
27
+ };
28
+ }
29
+
30
+ //#endregion
31
+ //#region src/builtin-plugin/alias-plugin.ts
32
+ function aliasPlugin(config) {
33
+ return new BuiltinPlugin("builtin:alias", config);
34
+ }
35
+
36
+ //#endregion
37
+ //#region src/builtin-plugin/replace-plugin.ts
38
+ /**
39
+ * Replaces targeted strings in files while bundling.
40
+ *
41
+ * @example
42
+ * // Basic usage
43
+ * ```js
44
+ * replacePlugin({
45
+ * 'process.env.NODE_ENV': JSON.stringify('production'),
46
+ * __buildDate__: () => JSON.stringify(new Date()),
47
+ * __buildVersion: 15
48
+ * })
49
+ * ```
50
+ * @example
51
+ * // With options
52
+ * ```js
53
+ * replacePlugin({
54
+ * 'process.env.NODE_ENV': JSON.stringify('production'),
55
+ * __buildDate__: () => JSON.stringify(new Date()),
56
+ * __buildVersion: 15
57
+ * }, {
58
+ * preventAssignment: false,
59
+ * })
60
+ * ```
61
+ */
62
+ function replacePlugin(values = {}, options = {}) {
63
+ return new 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: normalizedStringOrRegex(config.include),
75
+ exclude: normalizedStringOrRegex(config.exclude),
76
+ jsxRefreshInclude: normalizedStringOrRegex(config.jsxRefreshInclude),
77
+ jsxRefreshExclude: normalizedStringOrRegex(config.jsxRefreshExclude)
78
+ };
79
+ return new BuiltinPlugin("builtin:transform", config);
80
+ }
81
+
82
+ //#endregion
83
+ //#region src/experimental-index.ts
84
+ var import_binding = __toESM(require_binding());
85
+
86
+ //#endregion
87
+ var ResolverFactory = import_binding.ResolverFactory;
88
+ var isolatedDeclaration = import_binding.isolatedDeclaration;
89
+ var moduleRunnerTransform = import_binding.moduleRunnerTransform;
90
+ var transform = import_binding.transform;
91
+ 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,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,5 @@
1
+ import "./shared/binding.d-DcFBMcjI.cjs";
2
+ import { withFilter } from "./shared/define-config.d-B2xOSmbM.cjs";
3
+ import { and, code, exclude, id, include, moduleType, not, or, queries, query } from "@rolldown/pluginutils";
4
+
5
+ export { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter };
@@ -0,0 +1,5 @@
1
+ import "./shared/binding.d-Bl5Vi4GH.mjs";
2
+ import { withFilter } from "./shared/define-config.d-USfUuKiR.mjs";
3
+ import { and, code, exclude, id, include, moduleType, not, or, queries, query } from "@rolldown/pluginutils";
4
+
5
+ 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-C2v46mL8.cjs');
2
+ require('./shared/parse-ast-index-BvK1MT-L.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,4 @@
1
+ import { PreRenderedChunk } from "./shared/binding.d-DcFBMcjI.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.d-B2xOSmbM.cjs";
3
+
4
+ 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,4 @@
1
+ import { PreRenderedChunk } from "./shared/binding.d-Bl5Vi4GH.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$1 as VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build$1 as build, defineConfig$1 as defineConfig, rolldown$1 as rolldown, watch$1 as watch } from "./shared/define-config.d-USfUuKiR.mjs";
3
+
4
+ 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-PSQWLeSo.mjs";
2
+ import { VERSION, build, defineConfig, rolldown, watch } from "./shared/src-D-VRn8rI.mjs";
3
+ import "./shared/misc-BN0nse6C.mjs";
4
+
5
+ export { VERSION, build, defineConfig, rolldown, watch };