rolldown 1.0.0-beta.15 → 1.0.0-beta.17

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 (44) hide show
  1. package/dist/cli.cjs +8 -8
  2. package/dist/cli.mjs +1042 -1081
  3. package/dist/config.cjs +3 -3
  4. package/dist/config.d.cts +2 -2
  5. package/dist/config.d.mts +2 -2
  6. package/dist/config.mjs +4 -5
  7. package/dist/experimental-index.cjs +7 -31
  8. package/dist/experimental-index.d.cts +2 -2
  9. package/dist/experimental-index.d.mts +2 -2
  10. package/dist/experimental-index.mjs +4 -22
  11. package/dist/experimental-runtime-types.d.ts +52 -0
  12. package/dist/filter-index.d.cts +2 -2
  13. package/dist/filter-index.d.mts +2 -2
  14. package/dist/filter-index.mjs +1 -2
  15. package/dist/index.cjs +2 -2
  16. package/dist/index.d.cts +2 -2
  17. package/dist/index.d.mts +2 -2
  18. package/dist/index.mjs +3 -4
  19. package/dist/parallel-plugin-worker.cjs +3 -4
  20. package/dist/parallel-plugin-worker.mjs +27 -34
  21. package/dist/parallel-plugin.d.cts +2 -2
  22. package/dist/parallel-plugin.d.mts +2 -2
  23. package/dist/parse-ast-index.cjs +1 -1
  24. package/dist/parse-ast-index.d.cts +1 -1
  25. package/dist/parse-ast-index.d.mts +1 -1
  26. package/dist/parse-ast-index.mjs +1 -2
  27. package/dist/shared/{binding-CZdobbZA.d.cts → binding-CWvDTpOw.d.mts} +23 -15
  28. package/dist/shared/{binding-Dze8QVpf.d.mts → binding-um3VI33z.d.cts} +23 -15
  29. package/dist/shared/{define-config-De_1kjGz.d.mts → define-config-Cm86JHb7.d.mts} +73 -12
  30. package/dist/shared/{define-config-BE-fkZNW.d.cts → define-config-POPyhxOq.d.cts} +73 -12
  31. package/dist/shared/{load-config-Bq6nGoUg.cjs → load-config-B4zzmrcW.cjs} +1 -1
  32. package/dist/shared/{load-config-BOcke1T-.mjs → load-config-BlOqMlge.mjs} +14 -19
  33. package/dist/shared/{misc-DGAe2XOW.mjs → misc-BN0nse6C.mjs} +1 -4
  34. package/dist/shared/parse-ast-index-BpqxVgDm.mjs +616 -0
  35. package/dist/shared/parse-ast-index-XFcW-g8N.cjs +738 -0
  36. package/dist/shared/prompt-C5jz26Zn.mjs +852 -0
  37. package/dist/shared/{prompt-8EeOGx1_.cjs → prompt-QNI93ne7.cjs} +2 -2
  38. package/dist/shared/{src-aJubL6dq.cjs → src-C98Q0NLX.cjs} +63 -55
  39. package/dist/shared/{src-DBOqhEP1.mjs → src-CuIbdNSi.mjs} +1146 -1391
  40. package/package.json +22 -22
  41. package/dist/shared/chunk--iN_1bjD.mjs +0 -33
  42. package/dist/shared/parse-ast-index-BAuPesgO.mjs +0 -658
  43. package/dist/shared/parse-ast-index-C53MhHqY.cjs +0 -700
  44. package/dist/shared/prompt-Dc0i9ubg.mjs +0 -854
package/dist/config.cjs CHANGED
@@ -1,7 +1,7 @@
1
- const require_src = require('./shared/src-aJubL6dq.cjs');
2
- require('./shared/parse-ast-index-C53MhHqY.cjs');
1
+ const require_src = require('./shared/src-C98Q0NLX.cjs');
2
+ require('./shared/parse-ast-index-XFcW-g8N.cjs');
3
3
  require('./shared/misc-BKp5iIef.cjs');
4
- const require_load_config = require('./shared/load-config-Bq6nGoUg.cjs');
4
+ const require_load_config = require('./shared/load-config-B4zzmrcW.cjs');
5
5
 
6
6
  //#region src/config.ts
7
7
  const VERSION = require_src.version;
package/dist/config.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import "./shared/binding-CZdobbZA.cjs";
2
- import { ConfigExport, defineConfig } from "./shared/define-config-BE-fkZNW.cjs";
1
+ import "./shared/binding-um3VI33z.cjs";
2
+ import { ConfigExport, defineConfig } from "./shared/define-config-POPyhxOq.cjs";
3
3
 
4
4
  //#region src/utils/load-config.d.ts
5
5
  declare function loadConfig(configPath: string): Promise<ConfigExport>;
package/dist/config.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import "./shared/binding-Dze8QVpf.mjs";
2
- import { ConfigExport, defineConfig } from "./shared/define-config-De_1kjGz.mjs";
1
+ import "./shared/binding-CWvDTpOw.mjs";
2
+ import { ConfigExport, defineConfig } from "./shared/define-config-Cm86JHb7.mjs";
3
3
 
4
4
  //#region src/utils/load-config.d.ts
5
5
  declare function loadConfig(configPath: string): Promise<ConfigExport>;
package/dist/config.mjs CHANGED
@@ -1,10 +1,9 @@
1
- import { defineConfig, version } from "./shared/src-DBOqhEP1.mjs";
2
- import "./shared/parse-ast-index-BAuPesgO.mjs";
3
- import "./shared/misc-DGAe2XOW.mjs";
4
- import { init_load_config, loadConfig } from "./shared/load-config-BOcke1T-.mjs";
1
+ import "./shared/parse-ast-index-BpqxVgDm.mjs";
2
+ import { defineConfig, version } from "./shared/src-CuIbdNSi.mjs";
3
+ import "./shared/misc-BN0nse6C.mjs";
4
+ import { loadConfig } from "./shared/load-config-BlOqMlge.mjs";
5
5
 
6
6
  //#region src/config.ts
7
- init_load_config();
8
7
  const VERSION = version;
9
8
 
10
9
  //#endregion
@@ -1,6 +1,6 @@
1
1
  const require_chunk = require('./shared/chunk-DDkG_k5U.cjs');
2
- const require_src = require('./shared/src-aJubL6dq.cjs');
3
- const require_parse_ast_index = require('./shared/parse-ast-index-C53MhHqY.cjs');
2
+ const require_src = require('./shared/src-C98Q0NLX.cjs');
3
+ const require_parse_ast_index = require('./shared/parse-ast-index-XFcW-g8N.cjs');
4
4
  require('./shared/misc-BKp5iIef.cjs');
5
5
  const node_url = require_chunk.__toESM(require("node:url"));
6
6
 
@@ -12,7 +12,7 @@ const node_url = require_chunk.__toESM(require("node:url"));
12
12
  */
13
13
  const experimental_scan = async (input) => {
14
14
  const inputOptions = await require_src.PluginDriver.callOptionsHook(input);
15
- const { bundler, stopWorkers } = await require_src.createBundler(inputOptions, {});
15
+ const { impl: bundler, stopWorkers } = await require_src.createBundlerImpl(new require_parse_ast_index.BindingBundler(), inputOptions, {});
16
16
  const output = await bundler.scan();
17
17
  require_src.handleOutputErrors(output);
18
18
  await stopWorkers?.();
@@ -82,16 +82,7 @@ function transformPlugin(config) {
82
82
  }
83
83
 
84
84
  //#endregion
85
- //#region src/experimental-index.ts
86
- var import_binding = require_chunk.__toESM(require_parse_ast_index.require_binding());
87
-
88
- //#endregion
89
- Object.defineProperty(exports, 'ResolverFactory', {
90
- enumerable: true,
91
- get: function () {
92
- return import_binding.ResolverFactory;
93
- }
94
- });
85
+ exports.ResolverFactory = require_parse_ast_index.ResolverFactory;
95
86
  exports.aliasPlugin = aliasPlugin;
96
87
  exports.assetPlugin = require_src.assetPlugin;
97
88
  exports.buildImportAnalysisPlugin = require_src.buildImportAnalysisPlugin;
@@ -99,33 +90,18 @@ exports.composePlugins = require_src.composeJsPlugins;
99
90
  exports.defineParallelPlugin = defineParallelPlugin;
100
91
  exports.dynamicImportVarsPlugin = require_src.dynamicImportVarsPlugin;
101
92
  exports.importGlobPlugin = require_src.importGlobPlugin;
102
- Object.defineProperty(exports, 'isolatedDeclaration', {
103
- enumerable: true,
104
- get: function () {
105
- return import_binding.isolatedDeclaration;
106
- }
107
- });
93
+ exports.isolatedDeclaration = require_parse_ast_index.isolatedDeclaration;
108
94
  exports.isolatedDeclarationPlugin = require_src.isolatedDeclarationPlugin;
109
95
  exports.jsonPlugin = require_src.jsonPlugin;
110
96
  exports.loadFallbackPlugin = require_src.loadFallbackPlugin;
111
97
  exports.manifestPlugin = require_src.manifestPlugin;
112
98
  exports.moduleFederationPlugin = require_src.moduleFederationPlugin;
113
99
  exports.modulePreloadPolyfillPlugin = require_src.modulePreloadPolyfillPlugin;
114
- Object.defineProperty(exports, 'moduleRunnerTransform', {
115
- enumerable: true,
116
- get: function () {
117
- return import_binding.moduleRunnerTransform;
118
- }
119
- });
100
+ exports.moduleRunnerTransform = require_parse_ast_index.moduleRunnerTransform;
120
101
  exports.replacePlugin = replacePlugin;
121
102
  exports.reporterPlugin = require_src.reporterPlugin;
122
103
  exports.scan = experimental_scan;
123
- Object.defineProperty(exports, 'transform', {
124
- enumerable: true,
125
- get: function () {
126
- return import_binding.transform;
127
- }
128
- });
104
+ exports.transform = require_parse_ast_index.transform;
129
105
  exports.transformPlugin = transformPlugin;
130
106
  exports.viteResolvePlugin = require_src.viteResolvePlugin;
131
107
  exports.wasmFallbackPlugin = require_src.wasmFallbackPlugin;
@@ -1,5 +1,5 @@
1
- import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding-CZdobbZA.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-BE-fkZNW.cjs";
1
+ import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding-um3VI33z.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-POPyhxOq.cjs";
3
3
 
4
4
  //#region src/api/experimental.d.ts
5
5
 
@@ -1,5 +1,5 @@
1
- import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding-Dze8QVpf.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-De_1kjGz.mjs";
1
+ import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding-CWvDTpOw.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-Cm86JHb7.mjs";
3
3
 
4
4
  //#region src/api/experimental.d.ts
5
5
 
@@ -1,13 +1,9 @@
1
- import { __toESM } from "./shared/chunk--iN_1bjD.mjs";
2
- import { BuiltinPlugin, PluginDriver, assetPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, init_compose_js_plugins, init_constructors, init_create_bundler, init_normalize_string_or_regex, init_plugin_driver, init_transform_to_rollup_output, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/src-DBOqhEP1.mjs";
3
- import { require_binding } from "./shared/parse-ast-index-BAuPesgO.mjs";
4
- import "./shared/misc-DGAe2XOW.mjs";
1
+ import { BindingBundler, ResolverFactory, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/parse-ast-index-BpqxVgDm.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-CuIbdNSi.mjs";
3
+ import "./shared/misc-BN0nse6C.mjs";
5
4
  import { pathToFileURL } from "node:url";
6
5
 
7
6
  //#region src/api/experimental.ts
8
- init_plugin_driver();
9
- init_create_bundler();
10
- init_transform_to_rollup_output();
11
7
  /**
12
8
  * This is an experimental API. It's behavior may change in the future.
13
9
  *
@@ -15,7 +11,7 @@ init_transform_to_rollup_output();
15
11
  */
16
12
  const experimental_scan = async (input) => {
17
13
  const inputOptions = await PluginDriver.callOptionsHook(input);
18
- const { bundler, stopWorkers } = await createBundler(inputOptions, {});
14
+ const { impl: bundler, stopWorkers } = await createBundlerImpl(new BindingBundler(), inputOptions, {});
19
15
  const output = await bundler.scan();
20
16
  handleOutputErrors(output);
21
17
  await stopWorkers?.();
@@ -34,14 +30,12 @@ function defineParallelPlugin(pluginPath) {
34
30
 
35
31
  //#endregion
36
32
  //#region src/builtin-plugin/alias-plugin.ts
37
- init_constructors();
38
33
  function aliasPlugin(config) {
39
34
  return new BuiltinPlugin("builtin:alias", config);
40
35
  }
41
36
 
42
37
  //#endregion
43
38
  //#region src/builtin-plugin/replace-plugin.ts
44
- init_constructors();
45
39
  /**
46
40
  * Replaces targeted strings in files while bundling.
47
41
  *
@@ -75,8 +69,6 @@ function replacePlugin(values = {}, options = {}) {
75
69
 
76
70
  //#endregion
77
71
  //#region src/builtin-plugin/transform-plugin.ts
78
- init_constructors();
79
- init_normalize_string_or_regex();
80
72
  function transformPlugin(config) {
81
73
  if (config) config = {
82
74
  ...config,
@@ -89,14 +81,4 @@ function transformPlugin(config) {
89
81
  }
90
82
 
91
83
  //#endregion
92
- //#region src/experimental-index.ts
93
- var import_binding = __toESM(require_binding());
94
- init_compose_js_plugins();
95
- init_constructors();
96
-
97
- //#endregion
98
- var ResolverFactory = import_binding.ResolverFactory;
99
- var isolatedDeclaration = import_binding.isolatedDeclaration;
100
- var moduleRunnerTransform = import_binding.moduleRunnerTransform;
101
- var transform = import_binding.transform;
102
84
  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
+ }
@@ -1,4 +1,4 @@
1
- import "./shared/binding-CZdobbZA.cjs";
2
- import { withFilter } from "./shared/define-config-BE-fkZNW.cjs";
1
+ import "./shared/binding-um3VI33z.cjs";
2
+ import { withFilter } from "./shared/define-config-POPyhxOq.cjs";
3
3
  import { and, code, exclude, id, include, moduleType, not, or, queries, query } from "@rolldown/pluginutils";
4
4
  export { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter };
@@ -1,4 +1,4 @@
1
- import "./shared/binding-Dze8QVpf.mjs";
2
- import { withFilter } from "./shared/define-config-De_1kjGz.mjs";
1
+ import "./shared/binding-CWvDTpOw.mjs";
2
+ import { withFilter } from "./shared/define-config-Cm86JHb7.mjs";
3
3
  import { and, code, exclude, id, include, moduleType, not, or, queries, query } from "@rolldown/pluginutils";
4
4
  export { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter };
@@ -1,8 +1,7 @@
1
- import { arraify, init_misc, isPromiseLike } from "./shared/misc-DGAe2XOW.mjs";
1
+ import { arraify, isPromiseLike } from "./shared/misc-BN0nse6C.mjs";
2
2
  import { and, code, exclude, id, include, moduleType, not, or, queries, query } from "@rolldown/pluginutils";
3
3
 
4
4
  //#region src/plugin/with-filter.ts
5
- init_misc();
6
5
  function withFilterImpl(pluginOption, filterObjectList) {
7
6
  if (isPromiseLike(pluginOption)) return pluginOption.then((p) => withFilter(p, filterObjectList));
8
7
  if (pluginOption == false || pluginOption == null) return pluginOption;
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
- const require_src = require('./shared/src-aJubL6dq.cjs');
2
- require('./shared/parse-ast-index-C53MhHqY.cjs');
1
+ const require_src = require('./shared/src-C98Q0NLX.cjs');
2
+ require('./shared/parse-ast-index-XFcW-g8N.cjs');
3
3
  require('./shared/misc-BKp5iIef.cjs');
4
4
 
5
5
  exports.VERSION = require_src.VERSION;
package/dist/index.d.cts CHANGED
@@ -1,3 +1,3 @@
1
- import { PreRenderedChunk } from "./shared/binding-CZdobbZA.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-BE-fkZNW.cjs";
1
+ import { PreRenderedChunk } from "./shared/binding-um3VI33z.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-POPyhxOq.cjs";
3
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.d.mts CHANGED
@@ -1,3 +1,3 @@
1
- import { PreRenderedChunk } from "./shared/binding-Dze8QVpf.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-De_1kjGz.mjs";
1
+ import { PreRenderedChunk } from "./shared/binding-CWvDTpOw.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-Cm86JHb7.mjs";
3
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 CHANGED
@@ -1,6 +1,5 @@
1
- import { VERSION, build, defineConfig, init_src, rolldown, watch } from "./shared/src-DBOqhEP1.mjs";
2
- import "./shared/parse-ast-index-BAuPesgO.mjs";
3
- import "./shared/misc-DGAe2XOW.mjs";
1
+ import "./shared/parse-ast-index-BpqxVgDm.mjs";
2
+ import { VERSION, build, defineConfig, rolldown, watch } from "./shared/src-CuIbdNSi.mjs";
3
+ import "./shared/misc-BN0nse6C.mjs";
4
4
 
5
- init_src();
6
5
  export { VERSION, build, defineConfig, rolldown, watch };
@@ -1,11 +1,10 @@
1
1
  const require_chunk = require('./shared/chunk-DDkG_k5U.cjs');
2
- const require_src = require('./shared/src-aJubL6dq.cjs');
3
- const require_parse_ast_index = require('./shared/parse-ast-index-C53MhHqY.cjs');
2
+ const require_src = require('./shared/src-C98Q0NLX.cjs');
3
+ const require_parse_ast_index = require('./shared/parse-ast-index-XFcW-g8N.cjs');
4
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
8
- var import_binding = require_chunk.__toESM(require_parse_ast_index.require_binding());
9
8
  const { registryId, pluginInfos, threadNumber } = node_worker_threads.workerData;
10
9
  (async () => {
11
10
  try {
@@ -18,7 +17,7 @@ const { registryId, pluginInfos, threadNumber } = node_worker_threads.workerData
18
17
  plugin: require_src.bindingifyPlugin(plugin, {}, {}, new require_src.PluginContextData(), [], () => {}, "info", false)
19
18
  };
20
19
  }));
21
- (0, import_binding.registerPlugins)(registryId, plugins);
20
+ require_parse_ast_index.registerPlugins(registryId, plugins);
22
21
  node_worker_threads.parentPort.postMessage({ type: "success" });
23
22
  } catch (error) {
24
23
  node_worker_threads.parentPort.postMessage({
@@ -1,38 +1,31 @@
1
- import { __commonJS, __toESM } from "./shared/chunk--iN_1bjD.mjs";
2
- import { PluginContextData, bindingifyPlugin, init_bindingify_plugin, init_plugin_context_data } from "./shared/src-DBOqhEP1.mjs";
3
- import { require_binding } from "./shared/parse-ast-index-BAuPesgO.mjs";
4
- import "./shared/misc-DGAe2XOW.mjs";
1
+ import { registerPlugins } from "./shared/parse-ast-index-BpqxVgDm.mjs";
2
+ import { PluginContextData, bindingifyPlugin } from "./shared/src-CuIbdNSi.mjs";
3
+ import "./shared/misc-BN0nse6C.mjs";
5
4
  import { parentPort, workerData } from "node:worker_threads";
6
5
 
7
6
  //#region src/parallel-plugin-worker.ts
8
- var require_parallel_plugin_worker = __commonJS({ "src/parallel-plugin-worker.ts"() {
9
- var import_binding = __toESM(require_binding());
10
- init_bindingify_plugin();
11
- init_plugin_context_data();
12
- const { registryId, pluginInfos, threadNumber } = workerData;
13
- (async () => {
14
- try {
15
- const plugins = await Promise.all(pluginInfos.map(async (pluginInfo) => {
16
- const pluginModule = await import(pluginInfo.fileUrl);
17
- const definePluginImpl = pluginModule.default;
18
- const plugin = await definePluginImpl(pluginInfo.options, { threadNumber });
19
- return {
20
- index: pluginInfo.index,
21
- plugin: bindingifyPlugin(plugin, {}, {}, new PluginContextData(), [], () => {}, "info", false)
22
- };
23
- }));
24
- (0, import_binding.registerPlugins)(registryId, plugins);
25
- parentPort.postMessage({ type: "success" });
26
- } catch (error) {
27
- parentPort.postMessage({
28
- type: "error",
29
- error
30
- });
31
- } finally {
32
- parentPort.unref();
33
- }
34
- })();
35
- } });
7
+ const { registryId, pluginInfos, threadNumber } = workerData;
8
+ (async () => {
9
+ try {
10
+ const plugins = await Promise.all(pluginInfos.map(async (pluginInfo) => {
11
+ const pluginModule = await import(pluginInfo.fileUrl);
12
+ const definePluginImpl = pluginModule.default;
13
+ const plugin = await definePluginImpl(pluginInfo.options, { threadNumber });
14
+ return {
15
+ index: pluginInfo.index,
16
+ plugin: bindingifyPlugin(plugin, {}, {}, new PluginContextData(), [], () => {}, "info", false)
17
+ };
18
+ }));
19
+ registerPlugins(registryId, plugins);
20
+ parentPort.postMessage({ type: "success" });
21
+ } catch (error) {
22
+ parentPort.postMessage({
23
+ type: "error",
24
+ error
25
+ });
26
+ } finally {
27
+ parentPort.unref();
28
+ }
29
+ })();
36
30
 
37
- //#endregion
38
- export default require_parallel_plugin_worker();
31
+ //#endregion
@@ -1,5 +1,5 @@
1
- import "./shared/binding-CZdobbZA.cjs";
2
- import { MaybePromise, Plugin } from "./shared/define-config-BE-fkZNW.cjs";
1
+ import "./shared/binding-um3VI33z.cjs";
2
+ import { MaybePromise, Plugin } from "./shared/define-config-POPyhxOq.cjs";
3
3
 
4
4
  //#region src/plugin/parallel-plugin-implementation.d.ts
5
5
  type ParallelPluginImplementation = Plugin;
@@ -1,5 +1,5 @@
1
- import "./shared/binding-Dze8QVpf.mjs";
2
- import { MaybePromise, Plugin } from "./shared/define-config-De_1kjGz.mjs";
1
+ import "./shared/binding-CWvDTpOw.mjs";
2
+ import { MaybePromise, Plugin } from "./shared/define-config-Cm86JHb7.mjs";
3
3
 
4
4
  //#region src/plugin/parallel-plugin-implementation.d.ts
5
5
  type ParallelPluginImplementation = Plugin;
@@ -1,4 +1,4 @@
1
- const require_parse_ast_index = require('./shared/parse-ast-index-C53MhHqY.cjs');
1
+ const require_parse_ast_index = require('./shared/parse-ast-index-XFcW-g8N.cjs');
2
2
 
3
3
  exports.parseAst = require_parse_ast_index.parseAst;
4
4
  exports.parseAstAsync = require_parse_ast_index.parseAstAsync;
@@ -1,4 +1,4 @@
1
- import { ParseResult, ParserOptions } from "./shared/binding-CZdobbZA.cjs";
1
+ import { ParseResult, ParserOptions } from "./shared/binding-um3VI33z.cjs";
2
2
  import { Program } from "@oxc-project/types";
3
3
 
4
4
  //#region src/parse-ast-index.d.ts
@@ -1,4 +1,4 @@
1
- import { ParseResult, ParserOptions } from "./shared/binding-Dze8QVpf.mjs";
1
+ import { ParseResult, ParserOptions } from "./shared/binding-CWvDTpOw.mjs";
2
2
  import { Program } from "@oxc-project/types";
3
3
 
4
4
  //#region src/parse-ast-index.d.ts
@@ -1,4 +1,3 @@
1
- import { init_parse_ast_index, parseAst, parseAstAsync } from "./shared/parse-ast-index-BAuPesgO.mjs";
1
+ import { parseAst, parseAstAsync } from "./shared/parse-ast-index-BpqxVgDm.mjs";
2
2
 
3
- init_parse_ast_index();
4
3
  export { parseAst, parseAstAsync };
@@ -952,12 +952,23 @@ interface TypeScriptOptions {
952
952
  declare class BindingBundleEndEventData {
953
953
  output: string;
954
954
  duration: number;
955
- get result(): Bundler;
955
+ get result(): BindingBundlerImpl;
956
956
  }
957
957
  declare class BindingBundleErrorEventData {
958
- get result(): Bundler;
958
+ get result(): BindingBundlerImpl;
959
959
  get error(): Array<Error | BindingError>;
960
960
  }
961
+ declare class BindingBundlerImpl {
962
+ constructor(option: BindingBundlerOptions);
963
+ write(): Promise<BindingOutputs>;
964
+ generate(): Promise<BindingOutputs>;
965
+ scan(): Promise<BindingOutputs>;
966
+ close(): Promise<void>;
967
+ get closed(): boolean;
968
+ getWatchFiles(): Promise<Array<string>>;
969
+ generateHmrPatch(changedFiles: Array<string>): Promise<BindingHmrOutput>;
970
+ hmrInvalidate(file: string, firstInvalidatedBy?: string | undefined | null): Promise<BindingHmrOutput>;
971
+ }
961
972
  declare class BindingError {
962
973
  kind: string;
963
974
  message: string;
@@ -1006,6 +1017,9 @@ declare class BindingNormalizedOptions {
1006
1017
  get minify(): false | BindingMinifyOptions;
1007
1018
  get polyfillRequire(): boolean;
1008
1019
  get legalComments(): 'none' | 'inline';
1020
+ get preserveModules(): boolean;
1021
+ get preserveModulesRoot(): string | undefined;
1022
+ get virtualDirname(): string;
1009
1023
  }
1010
1024
  declare class BindingOutputAsset {
1011
1025
  get fileName(): string;
@@ -1080,17 +1094,6 @@ declare class BindingWatcherEvent {
1080
1094
  bundleEventKind(): string;
1081
1095
  bundleErrorData(): BindingBundleErrorEventData;
1082
1096
  }
1083
- declare class Bundler {
1084
- constructor(option: BindingBundlerOptions);
1085
- write(): Promise<BindingOutputs>;
1086
- generate(): Promise<BindingOutputs>;
1087
- scan(): Promise<BindingOutputs>;
1088
- close(): Promise<void>;
1089
- get closed(): boolean;
1090
- getWatchFiles(): Promise<Array<string>>;
1091
- generateHmrPatch(changedFiles: Array<string>): Promise<BindingHmrOutput>;
1092
- hmrInvalidate(file: string, firstInvalidatedBy?: string | undefined | null): Promise<BindingHmrOutput>;
1093
- }
1094
1097
  declare class ParallelJsPluginRegistry {
1095
1098
  id: number;
1096
1099
  workerCount: number;
@@ -1117,6 +1120,11 @@ interface BindingAssetPluginConfig {
1117
1120
  interface BindingAssetSource {
1118
1121
  inner: string | Uint8Array;
1119
1122
  }
1123
+ declare enum BindingAttachDebugInfo {
1124
+ None = 0,
1125
+ Simple = 1,
1126
+ Full = 2,
1127
+ }
1120
1128
  interface BindingBuildImportAnalysisPluginConfig {
1121
1129
  preloadCode: string;
1122
1130
  insertPreload: boolean;
@@ -1184,7 +1192,7 @@ interface BindingExperimentalOptions {
1184
1192
  viteMode?: boolean;
1185
1193
  resolveNewUrlToAsset?: boolean;
1186
1194
  hmr?: BindingExperimentalHmrOptions;
1187
- attachDebugInfo?: boolean;
1195
+ attachDebugInfo?: BindingAttachDebugInfo;
1188
1196
  }
1189
1197
  interface BindingFilterToken {
1190
1198
  kind: FilterTokenKind;
@@ -1645,4 +1653,4 @@ interface PreRenderedChunk {
1645
1653
  exports: Array<string>;
1646
1654
  }
1647
1655
  //#endregion
1648
- export { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig, BindingHmrOutput, BindingHmrOutputPatch, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReplacePluginConfig, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingTransformPluginConfig, BindingViteResolvePluginConfig, BindingWatcherEvent, Bundler, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ParseResult, ParserOptions, PreRenderedChunk, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform };
1656
+ export { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingBundlerImpl, BindingDynamicImportVarsPluginConfig, BindingHmrOutputPatch, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReplacePluginConfig, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingTransformPluginConfig, BindingViteResolvePluginConfig, BindingWatcherEvent, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ParseResult, ParserOptions, PreRenderedChunk, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform };
@@ -952,12 +952,23 @@ interface TypeScriptOptions {
952
952
  declare class BindingBundleEndEventData {
953
953
  output: string;
954
954
  duration: number;
955
- get result(): Bundler;
955
+ get result(): BindingBundlerImpl;
956
956
  }
957
957
  declare class BindingBundleErrorEventData {
958
- get result(): Bundler;
958
+ get result(): BindingBundlerImpl;
959
959
  get error(): Array<Error | BindingError>;
960
960
  }
961
+ declare class BindingBundlerImpl {
962
+ constructor(option: BindingBundlerOptions);
963
+ write(): Promise<BindingOutputs>;
964
+ generate(): Promise<BindingOutputs>;
965
+ scan(): Promise<BindingOutputs>;
966
+ close(): Promise<void>;
967
+ get closed(): boolean;
968
+ getWatchFiles(): Promise<Array<string>>;
969
+ generateHmrPatch(changedFiles: Array<string>): Promise<BindingHmrOutput>;
970
+ hmrInvalidate(file: string, firstInvalidatedBy?: string | undefined | null): Promise<BindingHmrOutput>;
971
+ }
961
972
  declare class BindingError {
962
973
  kind: string;
963
974
  message: string;
@@ -1006,6 +1017,9 @@ declare class BindingNormalizedOptions {
1006
1017
  get minify(): false | BindingMinifyOptions;
1007
1018
  get polyfillRequire(): boolean;
1008
1019
  get legalComments(): 'none' | 'inline';
1020
+ get preserveModules(): boolean;
1021
+ get preserveModulesRoot(): string | undefined;
1022
+ get virtualDirname(): string;
1009
1023
  }
1010
1024
  declare class BindingOutputAsset {
1011
1025
  get fileName(): string;
@@ -1080,17 +1094,6 @@ declare class BindingWatcherEvent {
1080
1094
  bundleEventKind(): string;
1081
1095
  bundleErrorData(): BindingBundleErrorEventData;
1082
1096
  }
1083
- declare class Bundler {
1084
- constructor(option: BindingBundlerOptions);
1085
- write(): Promise<BindingOutputs>;
1086
- generate(): Promise<BindingOutputs>;
1087
- scan(): Promise<BindingOutputs>;
1088
- close(): Promise<void>;
1089
- get closed(): boolean;
1090
- getWatchFiles(): Promise<Array<string>>;
1091
- generateHmrPatch(changedFiles: Array<string>): Promise<BindingHmrOutput>;
1092
- hmrInvalidate(file: string, firstInvalidatedBy?: string | undefined | null): Promise<BindingHmrOutput>;
1093
- }
1094
1097
  declare class ParallelJsPluginRegistry {
1095
1098
  id: number;
1096
1099
  workerCount: number;
@@ -1117,6 +1120,11 @@ interface BindingAssetPluginConfig {
1117
1120
  interface BindingAssetSource {
1118
1121
  inner: string | Uint8Array;
1119
1122
  }
1123
+ declare enum BindingAttachDebugInfo {
1124
+ None = 0,
1125
+ Simple = 1,
1126
+ Full = 2,
1127
+ }
1120
1128
  interface BindingBuildImportAnalysisPluginConfig {
1121
1129
  preloadCode: string;
1122
1130
  insertPreload: boolean;
@@ -1184,7 +1192,7 @@ interface BindingExperimentalOptions {
1184
1192
  viteMode?: boolean;
1185
1193
  resolveNewUrlToAsset?: boolean;
1186
1194
  hmr?: BindingExperimentalHmrOptions;
1187
- attachDebugInfo?: boolean;
1195
+ attachDebugInfo?: BindingAttachDebugInfo;
1188
1196
  }
1189
1197
  interface BindingFilterToken {
1190
1198
  kind: FilterTokenKind;
@@ -1645,4 +1653,4 @@ interface PreRenderedChunk {
1645
1653
  exports: Array<string>;
1646
1654
  }
1647
1655
  //#endregion
1648
- export { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig, BindingHmrOutput, BindingHmrOutputPatch, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReplacePluginConfig, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingTransformPluginConfig, BindingViteResolvePluginConfig, BindingWatcherEvent, Bundler, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ParseResult, ParserOptions, PreRenderedChunk, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform };
1656
+ export { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingBundlerImpl, BindingDynamicImportVarsPluginConfig, BindingHmrOutputPatch, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReplacePluginConfig, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingTransformPluginConfig, BindingViteResolvePluginConfig, BindingWatcherEvent, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ParseResult, ParserOptions, PreRenderedChunk, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform };