rolldown 1.0.0-beta.40 → 1.0.0-beta.41

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.
package/dist/cli.mjs CHANGED
@@ -1,8 +1,8 @@
1
- import "./shared/parse-ast-index-C7EYXjEA.mjs";
2
- import { description, getCliSchemaInfo, getInputCliKeys, getOutputCliKeys, onExit, rolldown, validateCliOptions, version, watch } from "./shared/src-BH2eQDD9.mjs";
1
+ import "./shared/parse-ast-index-D2PcAmXE.mjs";
2
+ import { description, getCliSchemaInfo, getInputCliKeys, getOutputCliKeys, onExit, rolldown, validateCliOptions, version, watch } from "./shared/src-DkvlJJsC.mjs";
3
3
  import { arraify } from "./shared/misc-CQeo-AFx.mjs";
4
- import { logger } from "./shared/logger-CiCY7ucm.mjs";
5
- import { loadConfig } from "./shared/load-config-BJ274Wsp.mjs";
4
+ import { logger } from "./shared/logger-ClMekpHZ.mjs";
5
+ import { loadConfig } from "./shared/load-config-DkgIoWHl.mjs";
6
6
  import path from "node:path";
7
7
  import colors from "ansis";
8
8
  import { parseArgs } from "node:util";
@@ -242,7 +242,7 @@ function getClearScreenFunction(options$1) {
242
242
  }
243
243
 
244
244
  //#endregion
245
- //#region \0@oxc-project+runtime@0.92.0/helpers/usingCtx.js
245
+ //#region \0@oxc-project+runtime@0.93.0/helpers/usingCtx.js
246
246
  function _usingCtx() {
247
247
  var r = "function" == typeof SuppressedError ? SuppressedError : function(r$1, e$1) {
248
248
  var n$1 = Error();
package/dist/config.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import "./shared/binding-BVXbXhPv.mjs";
2
- import { ConfigExport, defineConfig } from "./shared/define-config-0kfJrpvQ.mjs";
1
+ import "./shared/binding-DOpOtI1J.mjs";
2
+ import { ConfigExport, defineConfig } from "./shared/define-config-BZ_n3PjJ.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,7 +1,7 @@
1
- import "./shared/parse-ast-index-C7EYXjEA.mjs";
2
- import { defineConfig, version } from "./shared/src-BH2eQDD9.mjs";
1
+ import "./shared/parse-ast-index-D2PcAmXE.mjs";
2
+ import { defineConfig, version } from "./shared/src-DkvlJJsC.mjs";
3
3
  import "./shared/misc-CQeo-AFx.mjs";
4
- import { loadConfig } from "./shared/load-config-BJ274Wsp.mjs";
4
+ import { loadConfig } from "./shared/load-config-DkgIoWHl.mjs";
5
5
 
6
6
  //#region src/config.ts
7
7
  const VERSION = version;
@@ -1,5 +1,5 @@
1
- import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingDynamicImportVarsPluginConfig, BindingEsmExternalRequirePluginConfig, BindingHmrUpdate, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingModulePreloadPolyfillPluginConfig, BindingReactRefreshWrapperPluginConfig, BindingReplacePluginConfig, BindingReporterPluginConfig, BindingTransformPluginConfig, BindingViteResolvePluginConfig, BindingWasmHelperPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding-BVXbXhPv.mjs";
2
- import { BuiltinPlugin, InputOptions, OutputOptions, StringOrRegExp, defineParallelPlugin } from "./shared/define-config-0kfJrpvQ.mjs";
1
+ import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingClientHmrUpdate, BindingDynamicImportVarsPluginConfig, BindingEsmExternalRequirePluginConfig, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingModulePreloadPolyfillPluginConfig, BindingReactRefreshWrapperPluginConfig, BindingReplacePluginConfig, BindingReporterPluginConfig, BindingTransformPluginConfig, BindingViteResolvePluginConfig, BindingWasmHelperPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding-DOpOtI1J.mjs";
2
+ import { BuiltinPlugin, InputOptions, OutputOptions, StringOrRegExp, defineParallelPlugin } from "./shared/define-config-BZ_n3PjJ.mjs";
3
3
 
4
4
  //#region src/api/dev/dev-options.d.ts
5
5
  interface DevWatchOptions {
@@ -43,7 +43,7 @@ interface DevWatchOptions {
43
43
  debounceTickRate?: number;
44
44
  }
45
45
  interface DevOptions {
46
- onHmrUpdates?: (updates: BindingHmrUpdate[], changedFiles: string[]) => void | Promise<void>;
46
+ onHmrUpdates?: (updates: BindingClientHmrUpdate[], changedFiles: string[]) => void | Promise<void>;
47
47
  watch?: DevWatchOptions;
48
48
  }
49
49
  //#endregion
@@ -54,12 +54,11 @@ declare class DevEngine {
54
54
  private constructor();
55
55
  run(): Promise<void>;
56
56
  ensureCurrentBuildFinish(): Promise<void>;
57
+ hasLatestBuildOutput(): Promise<boolean>;
57
58
  ensureLatestBuildOutput(): Promise<void>;
58
- /**
59
- * Returns true if a new build is scheduled.
60
- */
61
- scheduleBuildIfStale(): Promise<"scheduled" | "alreadyScheduled" | undefined>;
62
- invalidate(file: string, firstInvalidatedBy?: string): Promise<BindingHmrUpdate>;
59
+ invalidate(file: string, firstInvalidatedBy?: string): Promise<BindingClientHmrUpdate[]>;
60
+ registerModules(clientId: string, modules: string[]): void;
61
+ removeClient(clientId: string): void;
63
62
  }
64
63
  //#endregion
65
64
  //#region src/api/dev/index.d.ts
@@ -144,4 +143,4 @@ type TransformPluginConfig = Omit<BindingTransformPluginConfig, "include" | "exc
144
143
  };
145
144
  declare function transformPlugin(config?: TransformPluginConfig): BuiltinPlugin;
146
145
  //#endregion
147
- export { DevEngine, type DevOptions, type DevWatchOptions, type IsolatedDeclarationsOptions, type IsolatedDeclarationsResult, type NapiResolveOptions as ResolveOptions, type ResolveResult, ResolverFactory, type TransformOptions, type TransformResult, aliasPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dev, dynamicImportVarsPlugin, esmExternalRequirePlugin, importGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, modulePreloadPolyfillPlugin, moduleRunnerTransform, reactRefreshWrapperPlugin, replacePlugin, reporterPlugin, scan, transform, transformPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin };
146
+ export { BindingClientHmrUpdate, DevEngine, type DevOptions, type DevWatchOptions, type IsolatedDeclarationsOptions, type IsolatedDeclarationsResult, type NapiResolveOptions as ResolveOptions, type ResolveResult, ResolverFactory, type TransformOptions, type TransformResult, aliasPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dev, dynamicImportVarsPlugin, esmExternalRequirePlugin, importGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, modulePreloadPolyfillPlugin, moduleRunnerTransform, reactRefreshWrapperPlugin, replacePlugin, reporterPlugin, scan, transform, transformPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin };
@@ -1,7 +1,7 @@
1
- import { BindingDevEngine, ResolverFactory, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/parse-ast-index-C7EYXjEA.mjs";
2
- import { BuiltinPlugin, PluginDriver, RolldownBuild, createBundlerOptions, makeBuiltinPluginCallable, normalizedStringOrRegex } from "./shared/src-BH2eQDD9.mjs";
1
+ import { BindingClientHmrUpdate, BindingDevEngine, ResolverFactory, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/parse-ast-index-D2PcAmXE.mjs";
2
+ import { BuiltinPlugin, PluginDriver, RolldownBuild, createBundlerOptions, makeBuiltinPluginCallable, normalizedStringOrRegex } from "./shared/src-DkvlJJsC.mjs";
3
3
  import "./shared/misc-CQeo-AFx.mjs";
4
- import { logger } from "./shared/logger-CiCY7ucm.mjs";
4
+ import { logger } from "./shared/logger-ClMekpHZ.mjs";
5
5
  import { pathToFileURL } from "node:url";
6
6
 
7
7
  //#region src/api/dev/dev-engine.ts
@@ -40,22 +40,21 @@ var DevEngine = class DevEngine {
40
40
  this.#cachedBuildFinishPromise = promise;
41
41
  return promise;
42
42
  }
43
+ async hasLatestBuildOutput() {
44
+ return this.#inner.hasLatestBuildOutput();
45
+ }
43
46
  async ensureLatestBuildOutput() {
44
47
  await this.#inner.ensureLatestBuildOutput();
45
48
  }
46
- /**
47
- * Returns true if a new build is scheduled.
48
- */
49
- async scheduleBuildIfStale() {
50
- const scheduled = await this.#inner.scheduleBuildIfStale();
51
- if (scheduled) {
52
- scheduled.wait().catch(() => {});
53
- return scheduled.alreadyScheduled() ? "alreadyScheduled" : "scheduled";
54
- }
55
- }
56
49
  async invalidate(file, firstInvalidatedBy) {
57
50
  return this.#inner.invalidate(file, firstInvalidatedBy);
58
51
  }
52
+ registerModules(clientId, modules) {
53
+ this.#inner.registerModules(clientId, modules);
54
+ }
55
+ removeClient(clientId) {
56
+ this.#inner.removeClient(clientId);
57
+ }
59
58
  };
60
59
 
61
60
  //#endregion
@@ -213,4 +212,4 @@ function transformPlugin(config) {
213
212
  }
214
213
 
215
214
  //#endregion
216
- export { DevEngine, ResolverFactory, aliasPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dev, dynamicImportVarsPlugin, esmExternalRequirePlugin, importGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, modulePreloadPolyfillPlugin, moduleRunnerTransform, reactRefreshWrapperPlugin, replacePlugin, reporterPlugin, scan, transform, transformPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin };
215
+ export { BindingClientHmrUpdate, DevEngine, ResolverFactory, aliasPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dev, dynamicImportVarsPlugin, esmExternalRequirePlugin, importGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, modulePreloadPolyfillPlugin, moduleRunnerTransform, reactRefreshWrapperPlugin, replacePlugin, reporterPlugin, scan, transform, transformPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin };
@@ -1,4 +1,9 @@
1
1
  export class DevRuntime {
2
+ /**
3
+ * @param {WebSocket} socket
4
+ */
5
+ constructor(socket: WebSocket);
6
+ socket: WebSocket;
2
7
  /**
3
8
  * @type {Record<string, Module>}
4
9
  */
@@ -50,6 +55,7 @@ export class DevRuntime {
50
55
  __toDynamicImportESM: any;
51
56
  /** @internal */
52
57
  __reExport: any;
58
+ sendModuleRegisteredMessage: (module: string) => void;
53
59
  }
54
60
  declare class Module {
55
61
  /**
@@ -1,4 +1,4 @@
1
- import "./shared/binding-BVXbXhPv.mjs";
2
- import { withFilter } from "./shared/define-config-0kfJrpvQ.mjs";
1
+ import "./shared/binding-DOpOtI1J.mjs";
2
+ import { withFilter } from "./shared/define-config-BZ_n3PjJ.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 };
package/dist/index.d.mts CHANGED
@@ -1,3 +1,3 @@
1
- import { PreRenderedChunk } from "./shared/binding-BVXbXhPv.mjs";
2
- import { AddonFunction, AsyncPluginHooks, BufferEncoding, BuildOptions, ChunkFileNamesFunction, ChunkingContext, 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, OptimizationOptions, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownDirectoryEntry, RolldownFileStats, RolldownFsModule, RolldownOptions, RolldownOptionsFunction, 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-0kfJrpvQ.mjs";
3
- export { AddonFunction, AsyncPluginHooks, BufferEncoding, BuildOptions, ChunkFileNamesFunction, ChunkingContext, 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, OptimizationOptions, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, PreRenderedChunk, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownDirectoryEntry, RolldownFileStats, RolldownFsModule, RolldownOptions, RolldownOptionsFunction, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch };
1
+ import { PreRenderedChunk } from "./shared/binding-DOpOtI1J.mjs";
2
+ import { AddonFunction, AsyncPluginHooks, BufferEncoding, BuildOptions, ChunkFileNamesFunction, ChunkingContext, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GeneratedCodeOptions, GeneratedCodePreset, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OptimizationOptions, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownDirectoryEntry, RolldownFileStats, RolldownFsModule, RolldownOptions, RolldownOptionsFunction, 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-BZ_n3PjJ.mjs";
3
+ export { AddonFunction, AsyncPluginHooks, BufferEncoding, BuildOptions, ChunkFileNamesFunction, ChunkingContext, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GeneratedCodeOptions, GeneratedCodePreset, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OptimizationOptions, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, PreRenderedChunk, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownDirectoryEntry, RolldownFileStats, RolldownFsModule, RolldownOptions, RolldownOptionsFunction, 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,5 +1,5 @@
1
- import "./shared/parse-ast-index-C7EYXjEA.mjs";
2
- import { VERSION, build, defineConfig, rolldown, watch } from "./shared/src-BH2eQDD9.mjs";
1
+ import "./shared/parse-ast-index-D2PcAmXE.mjs";
2
+ import { VERSION, build, defineConfig, rolldown, watch } from "./shared/src-DkvlJJsC.mjs";
3
3
  import "./shared/misc-CQeo-AFx.mjs";
4
4
 
5
5
  export { VERSION, build, defineConfig, rolldown, watch };
@@ -1,5 +1,5 @@
1
- import { registerPlugins } from "./shared/parse-ast-index-C7EYXjEA.mjs";
2
- import { PluginContextData, bindingifyPlugin } from "./shared/src-BH2eQDD9.mjs";
1
+ import { registerPlugins } from "./shared/parse-ast-index-D2PcAmXE.mjs";
2
+ import { PluginContextData, bindingifyPlugin } from "./shared/src-DkvlJJsC.mjs";
3
3
  import "./shared/misc-CQeo-AFx.mjs";
4
4
  import { parentPort, workerData } from "node:worker_threads";
5
5
 
@@ -1,5 +1,5 @@
1
- import "./shared/binding-BVXbXhPv.mjs";
2
- import { MaybePromise, Plugin } from "./shared/define-config-0kfJrpvQ.mjs";
1
+ import "./shared/binding-DOpOtI1J.mjs";
2
+ import { MaybePromise, Plugin } from "./shared/define-config-BZ_n3PjJ.mjs";
3
3
 
4
4
  //#region src/plugin/parallel-plugin-implementation.d.ts
5
5
  type ParallelPluginImplementation = Plugin;
@@ -1,4 +1,4 @@
1
- import { ParseResult, ParserOptions } from "./shared/binding-BVXbXhPv.mjs";
1
+ import { ParseResult, ParserOptions } from "./shared/binding-DOpOtI1J.mjs";
2
2
  import { Program } from "@oxc-project/types";
3
3
 
4
4
  //#region src/parse-ast-index.d.ts
@@ -1,3 +1,3 @@
1
- import { parseAst, parseAstAsync } from "./shared/parse-ast-index-C7EYXjEA.mjs";
1
+ import { parseAst, parseAstAsync } from "./shared/parse-ast-index-D2PcAmXE.mjs";
2
2
 
3
3
  export { parseAst, parseAstAsync };
@@ -1159,12 +1159,10 @@ declare class BindingBundlerImpl {
1159
1159
  close(): Promise<void>;
1160
1160
  get closed(): boolean;
1161
1161
  getWatchFiles(): Promise<Array<string>>;
1162
- generateHmrPatch(changedFiles: Array<string>): Promise<BindingGenerateHmrPatchReturn>;
1163
- hmrInvalidate(caller: string, firstInvalidatedBy?: string | undefined | null): Promise<BindingHmrOutput>;
1164
1162
  }
1165
- declare class BindingHmrOutput {
1166
- get patch(): BindingHmrUpdate | null;
1167
- get errors(): Array<Error | BindingError>;
1163
+ declare class BindingClientHmrUpdate {
1164
+ get clientId(): string;
1165
+ get update(): BindingHmrUpdate;
1168
1166
  }
1169
1167
  declare class BindingOutputAsset {
1170
1168
  get fileName(): string;
@@ -1258,13 +1256,6 @@ interface BindingEsmExternalRequirePluginConfig {
1258
1256
  external: Array<BindingStringOrRegex>;
1259
1257
  skipDuplicateCheck?: boolean;
1260
1258
  }
1261
- type BindingGenerateHmrPatchReturn = {
1262
- type: 'Ok';
1263
- field0: Array<BindingHmrUpdate>;
1264
- } | {
1265
- type: 'Error';
1266
- field0: Array<Error | BindingError>;
1267
- };
1268
1259
  interface BindingHmrBoundaryOutput {
1269
1260
  boundary: string;
1270
1261
  acceptedVia: string;
@@ -1410,4 +1401,4 @@ interface PreRenderedChunk {
1410
1401
  exports: Array<string>;
1411
1402
  }
1412
1403
  //#endregion
1413
- export { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingBundlerImpl, BindingDynamicImportVarsPluginConfig, BindingEsmExternalRequirePluginConfig, BindingHmrUpdate, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingModulePreloadPolyfillPluginConfig, BindingReactRefreshWrapperPluginConfig, BindingRenderedChunk, BindingReplacePluginConfig, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingTransformPluginConfig, BindingViteResolvePluginConfig, BindingWasmHelperPluginConfig, BindingWatcherEvent, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, MinifyOptions, NapiResolveOptions, ParseResult, ParserOptions, PreRenderedChunk, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform };
1404
+ export { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingBundlerImpl, BindingClientHmrUpdate, BindingDynamicImportVarsPluginConfig, BindingEsmExternalRequirePluginConfig, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingModulePreloadPolyfillPluginConfig, BindingReactRefreshWrapperPluginConfig, BindingRenderedChunk, BindingReplacePluginConfig, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingTransformPluginConfig, BindingViteResolvePluginConfig, BindingWasmHelperPluginConfig, BindingWatcherEvent, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, MinifyOptions, NapiResolveOptions, ParseResult, ParserOptions, PreRenderedChunk, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform };
@@ -1,4 +1,4 @@
1
- import { BindingBuiltinPluginName, BindingBundlerImpl, BindingHmrUpdate, BindingHookResolveIdExtraArgs, BindingRenderedChunk, BindingTransformHookExtraArgs, BindingWatcherEvent, MinifyOptions as MinifyOptions$1, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding-BVXbXhPv.mjs";
1
+ import { BindingBuiltinPluginName, BindingBundlerImpl, BindingHookResolveIdExtraArgs, BindingRenderedChunk, BindingTransformHookExtraArgs, BindingWatcherEvent, MinifyOptions as MinifyOptions$1, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding-DOpOtI1J.mjs";
2
2
  import { TopLevelFilterExpression } from "@rolldown/pluginutils";
3
3
  import { Program } from "@oxc-project/types";
4
4
 
@@ -137,6 +137,29 @@ type MaybeArray<T> = T | T[];
137
137
  type StringOrRegExp = string | RegExp;
138
138
  //#endregion
139
139
  //#region src/options/output-options.d.ts
140
+ type GeneratedCodePreset = "es5" | "es2015";
141
+ interface GeneratedCodeOptions {
142
+ /**
143
+ * Whether to use Symbol.toStringTag for namespace objects.
144
+ * @default false
145
+ */
146
+ symbols?: boolean;
147
+ /**
148
+ * Allows choosing one of the presets listed above while overriding some options.
149
+ *
150
+ * ```js
151
+ * export default {
152
+ * output: {
153
+ * generatedCode: {
154
+ * preset: 'es2015',
155
+ * symbols: false
156
+ * }
157
+ * }
158
+ * };
159
+ * ```
160
+ */
161
+ preset?: GeneratedCodePreset;
162
+ }
140
163
  type ModuleFormat = "es" | "cjs" | "esm" | "module" | "commonjs" | "iife" | "umd";
141
164
  type AddonFunction = (chunk: RenderedChunk) => string | Promise<string>;
142
165
  type ChunkFileNamesFunction = (chunkInfo: PreRenderedChunk) => string;
@@ -195,7 +218,7 @@ interface OutputOptions {
195
218
  * // ✅ Preferred: Use string pattern for better performance
196
219
  * sourcemapIgnoreList: "vendor"
197
220
  *
198
- * // ⚠️ Use sparingly: Function calls have high overhead
221
+ * // ! Use sparingly: Function calls have high overhead
199
222
  * sourcemapIgnoreList: (source, sourcemapPath) => {
200
223
  * return source.includes('node_modules') || source.includes('.min.');
201
224
  * }
@@ -230,6 +253,7 @@ interface OutputOptions {
230
253
  minify?: boolean | "dce-only" | MinifyOptions;
231
254
  name?: string;
232
255
  globals?: Record<string, string> | GlobalsFunction;
256
+ generatedCode?: Partial<GeneratedCodeOptions>;
233
257
  externalLiveBindings?: boolean;
234
258
  inlineDynamicImports?: boolean;
235
259
  /**
@@ -520,8 +544,6 @@ declare class RolldownBuild {
520
544
  write(outputOptions?: OutputOptions): Promise<RolldownOutput>;
521
545
  close(): Promise<void>;
522
546
  [Symbol.asyncDispose](): Promise<void>;
523
- generateHmrPatch(changedFiles: string[]): Promise<BindingHmrUpdate[]>;
524
- hmrInvalidate(file: string, firstInvalidatedBy?: string): Promise<BindingHmrUpdate>;
525
547
  get watchFiles(): Promise<string[]>;
526
548
  }
527
549
  //#endregion
@@ -1108,7 +1130,6 @@ type HmrOptions = boolean | {
1108
1130
  host?: string;
1109
1131
  port?: number;
1110
1132
  implement?: string;
1111
- new?: boolean;
1112
1133
  };
1113
1134
  type OptimizationOptions = {
1114
1135
  /**
@@ -1451,4 +1472,4 @@ declare function defineConfig(config: RolldownOptions[]): RolldownOptions[];
1451
1472
  declare function defineConfig(config: RolldownOptionsFunction): RolldownOptionsFunction;
1452
1473
  declare function defineConfig(config: ConfigExport): ConfigExport;
1453
1474
  //#endregion
1454
- export { type AddonFunction, type AsyncPluginHooks, type BufferEncoding, type BuildOptions, BuiltinPlugin, type ChunkFileNamesFunction, type ChunkingContext, type ConfigExport, type CustomPluginOptions, type DefineParallelPluginResult, type EmittedAsset, type EmittedFile, type ExistingRawSourceMap, type ExternalOption, type FunctionPluginHooks, type GeneralHookFilter, type GetModuleInfo, type GlobalsFunction, type HookFilter, type HookFilterExtension, type ImportKind, type InputOption, type InputOptions, type InternalModuleFormat, type LoadResult, type LogLevel, type LogLevelOption, type LogOrStringHandler, type LoggingFunction, MaybePromise, type MinifyOptions, type MinimalPluginContext, type ModuleFormat, type ModuleInfo, type ModuleOptions, type ModuleType, type ModuleTypeFilter, type ModuleTypes, type NormalizedInputOptions, type NormalizedOutputOptions, type ObjectHook, type OptimizationOptions, type OutputAsset, type OutputBundle, type OutputChunk, type OutputOptions, type ParallelPluginHooks, type PartialNull, type PartialResolvedId, type Plugin, type PluginContext, type PluginContextMeta, type PreRenderedAsset, type RenderedChunk, type RenderedModule, type ResolveIdExtraOptions, type ResolveIdResult, type ResolvedId, type RolldownBuild, type RolldownDirectoryEntry, type RolldownFileStats, type RolldownFsModule, type RolldownOptions, type RolldownOptionsFunction, type RolldownOutput, type RolldownPlugin, type RolldownPluginOption, type RolldownWatcher, type RolldownWatcherEvent, type RollupError, type RollupLog, type RollupLogWithString, type SourceDescription, type SourceMap, type SourceMapInput, type SourcemapIgnoreListOption, StringOrRegExp, type TransformPluginContext, type TransformResult, type TreeshakingOptions, VERSION, type WarningHandlerWithDefault, type WatchOptions, type WatcherOptions, build, defineConfig, defineParallelPlugin, rolldown, watch, withFilter };
1475
+ export { type AddonFunction, type AsyncPluginHooks, type BufferEncoding, type BuildOptions, BuiltinPlugin, type ChunkFileNamesFunction, type ChunkingContext, type ConfigExport, type CustomPluginOptions, type DefineParallelPluginResult, type EmittedAsset, type EmittedFile, type ExistingRawSourceMap, type ExternalOption, type FunctionPluginHooks, type GeneralHookFilter, type GeneratedCodeOptions, type GeneratedCodePreset, type GetModuleInfo, type GlobalsFunction, type HookFilter, type HookFilterExtension, type ImportKind, type InputOption, type InputOptions, type InternalModuleFormat, type LoadResult, type LogLevel, type LogLevelOption, type LogOrStringHandler, type LoggingFunction, MaybePromise, type MinifyOptions, type MinimalPluginContext, type ModuleFormat, type ModuleInfo, type ModuleOptions, type ModuleType, type ModuleTypeFilter, type ModuleTypes, type NormalizedInputOptions, type NormalizedOutputOptions, type ObjectHook, type OptimizationOptions, type OutputAsset, type OutputBundle, type OutputChunk, type OutputOptions, type ParallelPluginHooks, type PartialNull, type PartialResolvedId, type Plugin, type PluginContext, type PluginContextMeta, type PreRenderedAsset, type RenderedChunk, type RenderedModule, type ResolveIdExtraOptions, type ResolveIdResult, type ResolvedId, type RolldownBuild, type RolldownDirectoryEntry, type RolldownFileStats, type RolldownFsModule, type RolldownOptions, type RolldownOptionsFunction, type RolldownOutput, type RolldownPlugin, type RolldownPluginOption, type RolldownWatcher, type RolldownWatcherEvent, type RollupError, type RollupLog, type RollupLogWithString, type SourceDescription, type SourceMap, type SourceMapInput, type SourcemapIgnoreListOption, StringOrRegExp, type TransformPluginContext, type TransformResult, type TreeshakingOptions, VERSION, type WarningHandlerWithDefault, type WatchOptions, type WatcherOptions, build, defineConfig, defineParallelPlugin, rolldown, watch, withFilter };
@@ -1,4 +1,4 @@
1
- import { rolldown } from "./src-BH2eQDD9.mjs";
1
+ import { rolldown } from "./src-DkvlJJsC.mjs";
2
2
  import fs from "node:fs";
3
3
  import path from "node:path";
4
4
  import { readdir } from "node:fs/promises";
@@ -944,7 +944,7 @@ function createConsola(options = {}) {
944
944
  defaults: { level },
945
945
  stdout: process.stdout,
946
946
  stderr: process.stderr,
947
- prompt: (...args) => import("./prompt-D2FxOcB5.mjs").then((m) => m.prompt(...args)),
947
+ prompt: (...args) => import("./prompt-R6XhwkxA.mjs").then((m) => m.prompt(...args)),
948
948
  reporters: options.reporters || [options.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()],
949
949
  ...options
950
950
  });
@@ -10197,6 +10197,7 @@ var require_rolldown_binding_wasi = /* @__PURE__ */ __commonJS({ "src/rolldown-b
10197
10197
  module.exports.BindingBundlerImpl = __napiModule.exports.BindingBundlerImpl;
10198
10198
  module.exports.BindingCallableBuiltinPlugin = __napiModule.exports.BindingCallableBuiltinPlugin;
10199
10199
  module.exports.BindingChunkingContext = __napiModule.exports.BindingChunkingContext;
10200
+ module.exports.BindingClientHmrUpdate = __napiModule.exports.BindingClientHmrUpdate;
10200
10201
  module.exports.BindingDevEngine = __napiModule.exports.BindingDevEngine;
10201
10202
  module.exports.BindingHmrOutput = __napiModule.exports.BindingHmrOutput;
10202
10203
  module.exports.BindingMagicString = __napiModule.exports.BindingMagicString;
@@ -10314,7 +10315,7 @@ function requireNative() {
10314
10315
  try {
10315
10316
  const binding = __require("@rolldown/binding-android-arm64");
10316
10317
  const bindingPackageVersion = __require("@rolldown/binding-android-arm64/package.json").version;
10317
- if (bindingPackageVersion !== "1.0.0-beta.40" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.40 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10318
+ if (bindingPackageVersion !== "1.0.0-beta.41" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.41 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10318
10319
  return binding;
10319
10320
  } catch (e) {
10320
10321
  loadErrors.push(e);
@@ -10328,7 +10329,7 @@ function requireNative() {
10328
10329
  try {
10329
10330
  const binding = __require("@rolldown/binding-android-arm-eabi");
10330
10331
  const bindingPackageVersion = __require("@rolldown/binding-android-arm-eabi/package.json").version;
10331
- if (bindingPackageVersion !== "1.0.0-beta.40" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.40 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10332
+ if (bindingPackageVersion !== "1.0.0-beta.41" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.41 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10332
10333
  return binding;
10333
10334
  } catch (e) {
10334
10335
  loadErrors.push(e);
@@ -10343,7 +10344,7 @@ function requireNative() {
10343
10344
  try {
10344
10345
  const binding = __require("@rolldown/binding-win32-x64-msvc");
10345
10346
  const bindingPackageVersion = __require("@rolldown/binding-win32-x64-msvc/package.json").version;
10346
- if (bindingPackageVersion !== "1.0.0-beta.40" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.40 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10347
+ if (bindingPackageVersion !== "1.0.0-beta.41" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.41 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10347
10348
  return binding;
10348
10349
  } catch (e) {
10349
10350
  loadErrors.push(e);
@@ -10357,7 +10358,7 @@ function requireNative() {
10357
10358
  try {
10358
10359
  const binding = __require("@rolldown/binding-win32-ia32-msvc");
10359
10360
  const bindingPackageVersion = __require("@rolldown/binding-win32-ia32-msvc/package.json").version;
10360
- if (bindingPackageVersion !== "1.0.0-beta.40" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.40 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10361
+ if (bindingPackageVersion !== "1.0.0-beta.41" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.41 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10361
10362
  return binding;
10362
10363
  } catch (e) {
10363
10364
  loadErrors.push(e);
@@ -10371,7 +10372,7 @@ function requireNative() {
10371
10372
  try {
10372
10373
  const binding = __require("@rolldown/binding-win32-arm64-msvc");
10373
10374
  const bindingPackageVersion = __require("@rolldown/binding-win32-arm64-msvc/package.json").version;
10374
- if (bindingPackageVersion !== "1.0.0-beta.40" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.40 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10375
+ if (bindingPackageVersion !== "1.0.0-beta.41" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.41 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10375
10376
  return binding;
10376
10377
  } catch (e) {
10377
10378
  loadErrors.push(e);
@@ -10386,7 +10387,7 @@ function requireNative() {
10386
10387
  try {
10387
10388
  const binding = __require("@rolldown/binding-darwin-universal");
10388
10389
  const bindingPackageVersion = __require("@rolldown/binding-darwin-universal/package.json").version;
10389
- if (bindingPackageVersion !== "1.0.0-beta.40" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.40 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10390
+ if (bindingPackageVersion !== "1.0.0-beta.41" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.41 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10390
10391
  return binding;
10391
10392
  } catch (e) {
10392
10393
  loadErrors.push(e);
@@ -10400,7 +10401,7 @@ function requireNative() {
10400
10401
  try {
10401
10402
  const binding = __require("@rolldown/binding-darwin-x64");
10402
10403
  const bindingPackageVersion = __require("@rolldown/binding-darwin-x64/package.json").version;
10403
- if (bindingPackageVersion !== "1.0.0-beta.40" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.40 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10404
+ if (bindingPackageVersion !== "1.0.0-beta.41" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.41 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10404
10405
  return binding;
10405
10406
  } catch (e) {
10406
10407
  loadErrors.push(e);
@@ -10414,7 +10415,7 @@ function requireNative() {
10414
10415
  try {
10415
10416
  const binding = __require("@rolldown/binding-darwin-arm64");
10416
10417
  const bindingPackageVersion = __require("@rolldown/binding-darwin-arm64/package.json").version;
10417
- if (bindingPackageVersion !== "1.0.0-beta.40" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.40 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10418
+ if (bindingPackageVersion !== "1.0.0-beta.41" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.41 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10418
10419
  return binding;
10419
10420
  } catch (e) {
10420
10421
  loadErrors.push(e);
@@ -10429,7 +10430,7 @@ function requireNative() {
10429
10430
  try {
10430
10431
  const binding = __require("@rolldown/binding-freebsd-x64");
10431
10432
  const bindingPackageVersion = __require("@rolldown/binding-freebsd-x64/package.json").version;
10432
- if (bindingPackageVersion !== "1.0.0-beta.40" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.40 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10433
+ if (bindingPackageVersion !== "1.0.0-beta.41" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.41 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10433
10434
  return binding;
10434
10435
  } catch (e) {
10435
10436
  loadErrors.push(e);
@@ -10443,7 +10444,7 @@ function requireNative() {
10443
10444
  try {
10444
10445
  const binding = __require("@rolldown/binding-freebsd-arm64");
10445
10446
  const bindingPackageVersion = __require("@rolldown/binding-freebsd-arm64/package.json").version;
10446
- if (bindingPackageVersion !== "1.0.0-beta.40" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.40 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10447
+ if (bindingPackageVersion !== "1.0.0-beta.41" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.41 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10447
10448
  return binding;
10448
10449
  } catch (e) {
10449
10450
  loadErrors.push(e);
@@ -10458,7 +10459,7 @@ function requireNative() {
10458
10459
  try {
10459
10460
  const binding = __require("@rolldown/binding-linux-x64-musl");
10460
10461
  const bindingPackageVersion = __require("@rolldown/binding-linux-x64-musl/package.json").version;
10461
- if (bindingPackageVersion !== "1.0.0-beta.40" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.40 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10462
+ if (bindingPackageVersion !== "1.0.0-beta.41" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.41 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10462
10463
  return binding;
10463
10464
  } catch (e) {
10464
10465
  loadErrors.push(e);
@@ -10472,7 +10473,7 @@ function requireNative() {
10472
10473
  try {
10473
10474
  const binding = __require("@rolldown/binding-linux-x64-gnu");
10474
10475
  const bindingPackageVersion = __require("@rolldown/binding-linux-x64-gnu/package.json").version;
10475
- if (bindingPackageVersion !== "1.0.0-beta.40" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.40 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10476
+ if (bindingPackageVersion !== "1.0.0-beta.41" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.41 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10476
10477
  return binding;
10477
10478
  } catch (e) {
10478
10479
  loadErrors.push(e);
@@ -10487,7 +10488,7 @@ function requireNative() {
10487
10488
  try {
10488
10489
  const binding = __require("@rolldown/binding-linux-arm64-musl");
10489
10490
  const bindingPackageVersion = __require("@rolldown/binding-linux-arm64-musl/package.json").version;
10490
- if (bindingPackageVersion !== "1.0.0-beta.40" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.40 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10491
+ if (bindingPackageVersion !== "1.0.0-beta.41" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.41 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10491
10492
  return binding;
10492
10493
  } catch (e) {
10493
10494
  loadErrors.push(e);
@@ -10501,7 +10502,7 @@ function requireNative() {
10501
10502
  try {
10502
10503
  const binding = __require("@rolldown/binding-linux-arm64-gnu");
10503
10504
  const bindingPackageVersion = __require("@rolldown/binding-linux-arm64-gnu/package.json").version;
10504
- if (bindingPackageVersion !== "1.0.0-beta.40" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.40 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10505
+ if (bindingPackageVersion !== "1.0.0-beta.41" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.41 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10505
10506
  return binding;
10506
10507
  } catch (e) {
10507
10508
  loadErrors.push(e);
@@ -10516,7 +10517,7 @@ function requireNative() {
10516
10517
  try {
10517
10518
  const binding = __require("@rolldown/binding-linux-arm-musleabihf");
10518
10519
  const bindingPackageVersion = __require("@rolldown/binding-linux-arm-musleabihf/package.json").version;
10519
- if (bindingPackageVersion !== "1.0.0-beta.40" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.40 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10520
+ if (bindingPackageVersion !== "1.0.0-beta.41" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.41 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10520
10521
  return binding;
10521
10522
  } catch (e) {
10522
10523
  loadErrors.push(e);
@@ -10530,7 +10531,7 @@ function requireNative() {
10530
10531
  try {
10531
10532
  const binding = __require("@rolldown/binding-linux-arm-gnueabihf");
10532
10533
  const bindingPackageVersion = __require("@rolldown/binding-linux-arm-gnueabihf/package.json").version;
10533
- if (bindingPackageVersion !== "1.0.0-beta.40" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.40 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10534
+ if (bindingPackageVersion !== "1.0.0-beta.41" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.41 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10534
10535
  return binding;
10535
10536
  } catch (e) {
10536
10537
  loadErrors.push(e);
@@ -10545,7 +10546,7 @@ function requireNative() {
10545
10546
  try {
10546
10547
  const binding = __require("@rolldown/binding-linux-loong64-musl");
10547
10548
  const bindingPackageVersion = __require("@rolldown/binding-linux-loong64-musl/package.json").version;
10548
- if (bindingPackageVersion !== "1.0.0-beta.40" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.40 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10549
+ if (bindingPackageVersion !== "1.0.0-beta.41" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.41 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10549
10550
  return binding;
10550
10551
  } catch (e) {
10551
10552
  loadErrors.push(e);
@@ -10559,7 +10560,7 @@ function requireNative() {
10559
10560
  try {
10560
10561
  const binding = __require("@rolldown/binding-linux-loong64-gnu");
10561
10562
  const bindingPackageVersion = __require("@rolldown/binding-linux-loong64-gnu/package.json").version;
10562
- if (bindingPackageVersion !== "1.0.0-beta.40" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.40 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10563
+ if (bindingPackageVersion !== "1.0.0-beta.41" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.41 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10563
10564
  return binding;
10564
10565
  } catch (e) {
10565
10566
  loadErrors.push(e);
@@ -10574,7 +10575,7 @@ function requireNative() {
10574
10575
  try {
10575
10576
  const binding = __require("@rolldown/binding-linux-riscv64-musl");
10576
10577
  const bindingPackageVersion = __require("@rolldown/binding-linux-riscv64-musl/package.json").version;
10577
- if (bindingPackageVersion !== "1.0.0-beta.40" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.40 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10578
+ if (bindingPackageVersion !== "1.0.0-beta.41" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.41 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10578
10579
  return binding;
10579
10580
  } catch (e) {
10580
10581
  loadErrors.push(e);
@@ -10588,7 +10589,7 @@ function requireNative() {
10588
10589
  try {
10589
10590
  const binding = __require("@rolldown/binding-linux-riscv64-gnu");
10590
10591
  const bindingPackageVersion = __require("@rolldown/binding-linux-riscv64-gnu/package.json").version;
10591
- if (bindingPackageVersion !== "1.0.0-beta.40" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.40 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10592
+ if (bindingPackageVersion !== "1.0.0-beta.41" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.41 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10592
10593
  return binding;
10593
10594
  } catch (e) {
10594
10595
  loadErrors.push(e);
@@ -10603,7 +10604,7 @@ function requireNative() {
10603
10604
  try {
10604
10605
  const binding = __require("@rolldown/binding-linux-ppc64-gnu");
10605
10606
  const bindingPackageVersion = __require("@rolldown/binding-linux-ppc64-gnu/package.json").version;
10606
- if (bindingPackageVersion !== "1.0.0-beta.40" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.40 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10607
+ if (bindingPackageVersion !== "1.0.0-beta.41" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.41 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10607
10608
  return binding;
10608
10609
  } catch (e) {
10609
10610
  loadErrors.push(e);
@@ -10617,7 +10618,7 @@ function requireNative() {
10617
10618
  try {
10618
10619
  const binding = __require("@rolldown/binding-linux-s390x-gnu");
10619
10620
  const bindingPackageVersion = __require("@rolldown/binding-linux-s390x-gnu/package.json").version;
10620
- if (bindingPackageVersion !== "1.0.0-beta.40" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.40 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10621
+ if (bindingPackageVersion !== "1.0.0-beta.41" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.41 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10621
10622
  return binding;
10622
10623
  } catch (e) {
10623
10624
  loadErrors.push(e);
@@ -10632,7 +10633,7 @@ function requireNative() {
10632
10633
  try {
10633
10634
  const binding = __require("@rolldown/binding-openharmony-arm64");
10634
10635
  const bindingPackageVersion = __require("@rolldown/binding-openharmony-arm64/package.json").version;
10635
- if (bindingPackageVersion !== "1.0.0-beta.40" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.40 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10636
+ if (bindingPackageVersion !== "1.0.0-beta.41" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.41 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10636
10637
  return binding;
10637
10638
  } catch (e) {
10638
10639
  loadErrors.push(e);
@@ -10646,7 +10647,7 @@ function requireNative() {
10646
10647
  try {
10647
10648
  const binding = __require("@rolldown/binding-openharmony-x64");
10648
10649
  const bindingPackageVersion = __require("@rolldown/binding-openharmony-x64/package.json").version;
10649
- if (bindingPackageVersion !== "1.0.0-beta.40" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.40 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10650
+ if (bindingPackageVersion !== "1.0.0-beta.41" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.41 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10650
10651
  return binding;
10651
10652
  } catch (e) {
10652
10653
  loadErrors.push(e);
@@ -10660,7 +10661,7 @@ function requireNative() {
10660
10661
  try {
10661
10662
  const binding = __require("@rolldown/binding-openharmony-arm");
10662
10663
  const bindingPackageVersion = __require("@rolldown/binding-openharmony-arm/package.json").version;
10663
- if (bindingPackageVersion !== "1.0.0-beta.40" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.40 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10664
+ if (bindingPackageVersion !== "1.0.0-beta.41" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.41 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
10664
10665
  return binding;
10665
10666
  } catch (e) {
10666
10667
  loadErrors.push(e);
@@ -10705,7 +10706,7 @@ if (!nativeBinding) {
10705
10706
  }) });
10706
10707
  throw new Error(`Failed to load native binding`);
10707
10708
  }
10708
- const { minify, Severity, ParseResult, ExportExportNameKind, ExportImportNameKind, ExportLocalNameKind, ImportNameKind, parseAsync, parseSync, rawTransferSupported, ResolverFactory, EnforceExtension, ModuleType, sync, HelperMode, isolatedDeclaration, moduleRunnerTransform, transform, transformAsync, BindingBundleEndEventData, BindingBundleErrorEventData, BindingBundler, BindingBundlerImpl, BindingCallableBuiltinPlugin, BindingChunkingContext, BindingDevEngine, BindingHmrOutput, BindingMagicString, BindingModuleInfo, BindingNormalizedOptions, BindingOutputAsset, BindingOutputChunk, BindingOutputs, BindingPluginContext, BindingRenderedChunk, BindingRenderedChunkMeta, BindingRenderedModule, BindingTransformPluginContext, BindingWatcher, BindingWatcherChangeData, BindingWatcherEvent, ParallelJsPluginRegistry, ScheduledBuild, TraceSubscriberGuard, BindingAttachDebugInfo, BindingBuiltinPluginName, BindingChunkModuleOrderBy, BindingJsx, BindingLogLevel, BindingPluginOrder, BindingPropertyReadSideEffects, BindingPropertyWriteSideEffects, FilterTokenKind, initTraceSubscriber, registerPlugins, shutdownAsyncRuntime, startAsyncRuntime, JsWatcher } = nativeBinding;
10709
+ const { minify, Severity, ParseResult, ExportExportNameKind, ExportImportNameKind, ExportLocalNameKind, ImportNameKind, parseAsync, parseSync, rawTransferSupported, ResolverFactory, EnforceExtension, ModuleType, sync, HelperMode, isolatedDeclaration, moduleRunnerTransform, transform, transformAsync, BindingBundleEndEventData, BindingBundleErrorEventData, BindingBundler, BindingBundlerImpl, BindingCallableBuiltinPlugin, BindingChunkingContext, BindingClientHmrUpdate, BindingDevEngine, BindingHmrOutput, BindingMagicString, BindingModuleInfo, BindingNormalizedOptions, BindingOutputAsset, BindingOutputChunk, BindingOutputs, BindingPluginContext, BindingRenderedChunk, BindingRenderedChunkMeta, BindingRenderedModule, BindingTransformPluginContext, BindingWatcher, BindingWatcherChangeData, BindingWatcherEvent, ParallelJsPluginRegistry, ScheduledBuild, TraceSubscriberGuard, BindingAttachDebugInfo, BindingBuiltinPluginName, BindingChunkModuleOrderBy, BindingJsx, BindingLogLevel, BindingPluginOrder, BindingPropertyReadSideEffects, BindingPropertyWriteSideEffects, FilterTokenKind, initTraceSubscriber, registerPlugins, shutdownAsyncRuntime, startAsyncRuntime, JsWatcher } = nativeBinding;
10709
10710
 
10710
10711
  //#endregion
10711
10712
  //#region src/utils/code-frame.ts
@@ -10894,7 +10895,7 @@ function augmentCodeLocation(properties, pos, source, id) {
10894
10895
  }
10895
10896
 
10896
10897
  //#endregion
10897
- //#region ../../node_modules/.pnpm/oxc-parser@0.92.0/node_modules/oxc-parser/src-js/wrap.js
10898
+ //#region ../../node_modules/.pnpm/oxc-parser@0.93.0/node_modules/oxc-parser/src-js/wrap.js
10898
10899
  function wrap$1(result) {
10899
10900
  let program, module$1, comments, errors;
10900
10901
  return {
@@ -10971,4 +10972,4 @@ async function parseAstAsync(sourceText, options, filename) {
10971
10972
  }
10972
10973
 
10973
10974
  //#endregion
10974
- export { BindingAttachDebugInfo, BindingBundler, BindingCallableBuiltinPlugin, BindingChunkModuleOrderBy, BindingDevEngine, BindingJsx, BindingLogLevel, BindingPluginOrder, BindingPropertyReadSideEffects, BindingPropertyWriteSideEffects, BindingWatcher, ParallelJsPluginRegistry, ResolverFactory, augmentCodeLocation, error, initTraceSubscriber, isolatedDeclaration, logCycleLoading, logDuplicateJsxConfig, logInputHookInOutputPlugin, logInvalidLogPosition, logMultiplyNotifyOption, logPluginError, moduleRunnerTransform, parseAst, parseAstAsync, registerPlugins, shutdownAsyncRuntime, startAsyncRuntime, transform };
10975
+ export { BindingAttachDebugInfo, BindingBundler, BindingCallableBuiltinPlugin, BindingChunkModuleOrderBy, BindingClientHmrUpdate, BindingDevEngine, BindingJsx, BindingLogLevel, BindingPluginOrder, BindingPropertyReadSideEffects, BindingPropertyWriteSideEffects, BindingWatcher, ParallelJsPluginRegistry, ResolverFactory, augmentCodeLocation, error, initTraceSubscriber, isolatedDeclaration, logCycleLoading, logDuplicateJsxConfig, logInputHookInOutputPlugin, logInvalidLogPosition, logMultiplyNotifyOption, logPluginError, moduleRunnerTransform, parseAst, parseAstAsync, registerPlugins, shutdownAsyncRuntime, startAsyncRuntime, transform };
@@ -401,16 +401,16 @@ function G(t, u$1, F$1) {
401
401
  `).map((e$1) => oD(e$1, u$1, F$1)).join(`
402
402
  `);
403
403
  }
404
- const aD = [
405
- "up",
406
- "down",
407
- "left",
408
- "right",
409
- "space",
410
- "enter",
411
- "cancel"
412
- ], c = {
413
- actions: new Set(aD),
404
+ const c = {
405
+ actions: new Set([
406
+ "up",
407
+ "down",
408
+ "left",
409
+ "right",
410
+ "space",
411
+ "enter",
412
+ "cancel"
413
+ ]),
414
414
  aliases: new Map([
415
415
  ["k", "up"],
416
416
  ["j", "down"],
@@ -1,4 +1,4 @@
1
- import { BindingAttachDebugInfo, BindingBundler, BindingCallableBuiltinPlugin, BindingChunkModuleOrderBy, BindingJsx, BindingLogLevel, BindingPluginOrder, BindingPropertyReadSideEffects, BindingPropertyWriteSideEffects, BindingWatcher, ParallelJsPluginRegistry, augmentCodeLocation, error, initTraceSubscriber, logCycleLoading, logDuplicateJsxConfig, logInputHookInOutputPlugin, logInvalidLogPosition, logMultiplyNotifyOption, logPluginError, parseAst, shutdownAsyncRuntime, startAsyncRuntime } from "./parse-ast-index-C7EYXjEA.mjs";
1
+ import { BindingAttachDebugInfo, BindingBundler, BindingCallableBuiltinPlugin, BindingChunkModuleOrderBy, BindingJsx, BindingLogLevel, BindingPluginOrder, BindingPropertyReadSideEffects, BindingPropertyWriteSideEffects, BindingWatcher, ParallelJsPluginRegistry, augmentCodeLocation, error, initTraceSubscriber, logCycleLoading, logDuplicateJsxConfig, logInputHookInOutputPlugin, logInvalidLogPosition, logMultiplyNotifyOption, logPluginError, parseAst, shutdownAsyncRuntime, startAsyncRuntime } from "./parse-ast-index-D2PcAmXE.mjs";
2
2
  import { arraify, noop, unimplemented, unreachable, unsupported } from "./misc-CQeo-AFx.mjs";
3
3
  import { Worker, isMainThread } from "node:worker_threads";
4
4
  import path from "node:path";
@@ -218,7 +218,7 @@ if (isMainThread) {
218
218
 
219
219
  //#endregion
220
220
  //#region package.json
221
- var version = "1.0.0-beta.40";
221
+ var version = "1.0.0-beta.41";
222
222
  var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
223
223
 
224
224
  //#endregion
@@ -1502,6 +1502,18 @@ function omit(schema, keys) {
1502
1502
  };
1503
1503
  }
1504
1504
  /* @__NO_SIDE_EFFECTS__ */
1505
+ function partial(schema, keys) {
1506
+ const entries2 = {};
1507
+ for (const key in schema.entries) entries2[key] = !keys || keys.includes(key) ? /* @__PURE__ */ optional(schema.entries[key]) : schema.entries[key];
1508
+ return {
1509
+ ...schema,
1510
+ entries: entries2,
1511
+ get "~standard"() {
1512
+ return /* @__PURE__ */ _getStandardProps(this);
1513
+ }
1514
+ };
1515
+ }
1516
+ /* @__NO_SIDE_EFFECTS__ */
1505
1517
  function pipe(...pipe2) {
1506
1518
  return {
1507
1519
  ...pipe2[0],
@@ -1956,6 +1968,11 @@ const AdvancedChunksSchema = strictObject({
1956
1968
  maxModuleSize: optional(number())
1957
1969
  })))
1958
1970
  });
1971
+ const GeneratedCodePresetSchema = union([literal("es5"), literal("es2015")]);
1972
+ const GeneratedCodeOptionsSchema = strictObject({
1973
+ symbols: pipe(optional(boolean()), description("Whether to use Symbol.toStringTag for namespace objects")),
1974
+ preset: GeneratedCodePresetSchema
1975
+ });
1959
1976
  const OutputOptionsSchema = strictObject({
1960
1977
  dir: pipe(optional(string()), description("Output directory, defaults to `dist` if `file` is not set")),
1961
1978
  file: pipe(optional(string()), description("Single output file")),
@@ -2003,6 +2020,7 @@ const OutputOptionsSchema = strictObject({
2003
2020
  ])), description("Minify the bundled file")),
2004
2021
  name: pipe(optional(string()), description("Name for UMD / IIFE format outputs")),
2005
2022
  globals: pipe(optional(union([record(string(), string()), GlobalsFunctionSchema])), description("Global variable of UMD / IIFE dependencies (syntax: `key=value`)")),
2023
+ generatedCode: pipe(optional(partial(GeneratedCodeOptionsSchema)), description("Generated code options")),
2006
2024
  externalLiveBindings: pipe(optional(boolean()), description("external live bindings")),
2007
2025
  inlineDynamicImports: pipe(optional(boolean()), description("Inline dynamic imports")),
2008
2026
  manualChunks: optional(pipe(function_(), args(tuple([string(), object({})])), returns(union([string(), nullish(string())])))),
@@ -3829,7 +3847,7 @@ var ChunkingContextImpl = class {
3829
3847
  //#endregion
3830
3848
  //#region src/utils/bindingify-output-options.ts
3831
3849
  function bindingifyOutputOptions(outputOptions) {
3832
- const { dir, format, exports, hashCharacters, sourcemap, sourcemapBaseUrl, sourcemapDebugIds, sourcemapIgnoreList, sourcemapPathTransform, name, assetFileNames, entryFileNames, chunkFileNames, cssEntryFileNames, cssChunkFileNames, banner, footer, intro, outro, esModule, globals, file, sanitizeFileName, preserveModules, virtualDirname, legalComments, preserveModulesRoot, manualChunks, topLevelVar } = outputOptions;
3850
+ const { dir, format, exports, hashCharacters, sourcemap, sourcemapBaseUrl, sourcemapDebugIds, sourcemapIgnoreList, sourcemapPathTransform, name, assetFileNames, entryFileNames, chunkFileNames, cssEntryFileNames, cssChunkFileNames, banner, footer, intro, outro, esModule, globals, generatedCode, file, sanitizeFileName, preserveModules, virtualDirname, legalComments, preserveModulesRoot, manualChunks, topLevelVar } = outputOptions;
3833
3851
  const advancedChunks = bindingifyAdvancedChunks(outputOptions.advancedChunks, manualChunks);
3834
3852
  return {
3835
3853
  dir,
@@ -3848,6 +3866,7 @@ function bindingifyOutputOptions(outputOptions) {
3848
3866
  outro: bindingifyAddon(outro),
3849
3867
  extend: outputOptions.extend,
3850
3868
  globals,
3869
+ generatedCode,
3851
3870
  esModule,
3852
3871
  name,
3853
3872
  assetFileNames: bindingifyAssetFilenames(assetFileNames),
@@ -4023,18 +4042,6 @@ async function createBundlerOptions(inputOptions, outputOptions, watchMode) {
4023
4042
  }
4024
4043
  }
4025
4044
 
4026
- //#endregion
4027
- //#region src/utils/transform-hmr-patch-output.ts
4028
- function transformHmrPatchOutput(output) {
4029
- handleHmrPatchOutputErrors(output);
4030
- const { patch } = output;
4031
- return patch ?? void 0;
4032
- }
4033
- function handleHmrPatchOutputErrors(output) {
4034
- const rawErrors = output.errors;
4035
- if (rawErrors.length > 0) throw normalizeErrors(rawErrors);
4036
- }
4037
-
4038
4045
  //#endregion
4039
4046
  //#region src/api/rolldown/rolldown-build.ts
4040
4047
  Symbol.asyncDispose ??= Symbol("Symbol.asyncDispose");
@@ -4096,18 +4103,6 @@ var RolldownBuild = class RolldownBuild {
4096
4103
  async [Symbol.asyncDispose]() {
4097
4104
  await this.close();
4098
4105
  }
4099
- async generateHmrPatch(changedFiles) {
4100
- const ret = await this.#bundlerImpl.impl.generateHmrPatch(changedFiles);
4101
- switch (ret.type) {
4102
- case "Ok": return ret.field0;
4103
- case "Error": throw normalizeErrors(ret.field0);
4104
- default: throw new Error("Unknown error");
4105
- }
4106
- }
4107
- async hmrInvalidate(file, firstInvalidatedBy) {
4108
- const output = await this.#bundlerImpl.impl.hmrInvalidate(file, firstInvalidatedBy);
4109
- return transformHmrPatchOutput(output);
4110
- }
4111
4106
  get watchFiles() {
4112
4107
  return this.#bundlerImpl?.impl.getWatchFiles() ?? Promise.resolve([]);
4113
4108
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rolldown",
3
- "version": "1.0.0-beta.40",
3
+ "version": "1.0.0-beta.41",
4
4
  "description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
5
5
  "type": "module",
6
6
  "homepage": "https://rolldown.rs/",
@@ -75,9 +75,9 @@
75
75
  "dtsHeader": "type MaybePromise<T> = T | Promise<T>\ntype Nullable<T> = T | null | undefined\ntype VoidNullable<T = void> = T | null | undefined | void\nexport type BindingStringOrRegex = string | RegExp\n\n"
76
76
  },
77
77
  "dependencies": {
78
- "@oxc-project/types": "=0.92.0",
79
- "ansis": "^4.0.0",
80
- "@rolldown/pluginutils": "1.0.0-beta.40"
78
+ "@oxc-project/types": "=0.93.0",
79
+ "ansis": "=4.2.0",
80
+ "@rolldown/pluginutils": "1.0.0-beta.41"
81
81
  },
82
82
  "devDependencies": {
83
83
  "@napi-rs/cli": "^3.2.0",
@@ -89,7 +89,7 @@
89
89
  "emnapi": "^1.2.0",
90
90
  "execa": "^9.2.0",
91
91
  "glob": "^11.0.0",
92
- "oxc-parser": "=0.92.0",
92
+ "oxc-parser": "=0.93.0",
93
93
  "pathe": "^2.0.3",
94
94
  "remeda": "^2.10.0",
95
95
  "rolldown-plugin-dts": "^0.16.0",
@@ -98,28 +98,28 @@
98
98
  "source-map": "^0.7.4",
99
99
  "tsx": "^4.19.4",
100
100
  "typedoc": "^0.28.0",
101
- "typescript": "^5.7.3",
101
+ "typescript": "^5.8.3",
102
102
  "valibot": "1.1.0",
103
- "rolldown": "1.0.0-beta.40"
103
+ "rolldown": "1.0.0-beta.41"
104
104
  },
105
105
  "engines": {
106
106
  "node": "^20.19.0 || >=22.12.0"
107
107
  },
108
108
  "optionalDependencies": {
109
- "@rolldown/binding-darwin-x64": "1.0.0-beta.40",
110
- "@rolldown/binding-win32-x64-msvc": "1.0.0-beta.40",
111
- "@rolldown/binding-linux-x64-gnu": "1.0.0-beta.40",
112
- "@rolldown/binding-linux-x64-musl": "1.0.0-beta.40",
113
- "@rolldown/binding-freebsd-x64": "1.0.0-beta.40",
114
- "@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.40",
115
- "@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.40",
116
- "@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.40",
117
- "@rolldown/binding-darwin-arm64": "1.0.0-beta.40",
118
- "@rolldown/binding-linux-arm64-musl": "1.0.0-beta.40",
119
- "@rolldown/binding-openharmony-arm64": "1.0.0-beta.40",
120
- "@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.40",
121
- "@rolldown/binding-android-arm64": "1.0.0-beta.40",
122
- "@rolldown/binding-wasm32-wasi": "1.0.0-beta.40"
109
+ "@rolldown/binding-darwin-x64": "1.0.0-beta.41",
110
+ "@rolldown/binding-win32-x64-msvc": "1.0.0-beta.41",
111
+ "@rolldown/binding-linux-x64-gnu": "1.0.0-beta.41",
112
+ "@rolldown/binding-linux-x64-musl": "1.0.0-beta.41",
113
+ "@rolldown/binding-freebsd-x64": "1.0.0-beta.41",
114
+ "@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.41",
115
+ "@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.41",
116
+ "@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.41",
117
+ "@rolldown/binding-darwin-arm64": "1.0.0-beta.41",
118
+ "@rolldown/binding-linux-arm64-musl": "1.0.0-beta.41",
119
+ "@rolldown/binding-openharmony-arm64": "1.0.0-beta.41",
120
+ "@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.41",
121
+ "@rolldown/binding-android-arm64": "1.0.0-beta.41",
122
+ "@rolldown/binding-wasm32-wasi": "1.0.0-beta.41"
123
123
  },
124
124
  "scripts": {
125
125
  "# Scrips for binding #": "_",