rolldown 1.1.2 → 1.1.3

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 (32) hide show
  1. package/dist/cli.mjs +19 -8
  2. package/dist/config.d.mts +1 -1
  3. package/dist/config.mjs +2 -2
  4. package/dist/experimental-index.d.mts +14 -4
  5. package/dist/experimental-index.mjs +20 -15
  6. package/dist/filter-index.d.mts +1 -1
  7. package/dist/index.d.mts +2 -2
  8. package/dist/index.mjs +4 -4
  9. package/dist/parallel-plugin-worker.mjs +2 -2
  10. package/dist/parallel-plugin.d.mts +1 -1
  11. package/dist/parse-ast-index.d.mts +1 -1
  12. package/dist/parse-ast-index.mjs +1 -1
  13. package/dist/plugins-index.d.mts +3 -3
  14. package/dist/plugins-index.mjs +2 -2
  15. package/dist/shared/{binding-CQbRhfY2.d.mts → binding-B1q9aYT-.d.mts} +0 -26
  16. package/dist/shared/{binding-BxaeY8HI.mjs → binding-Dh6LYCIB.mjs} +26 -26
  17. package/dist/shared/{bindingify-input-options-AEyVBGgK.mjs → bindingify-input-options-CzVhGygm.mjs} +1329 -1330
  18. package/dist/shared/{constructors-BcTE5mZO.mjs → constructors-688OwP2q.mjs} +1 -1
  19. package/dist/shared/{constructors-Cebl5ISm.d.mts → constructors-awZ1VNvg.d.mts} +2 -2
  20. package/dist/shared/{define-config-DP-RZqh9.d.mts → define-config-sxBscJ3M.d.mts} +1 -1
  21. package/dist/shared/{error-T-E9reEy.mjs → error-B68YLzl3.mjs} +1 -1
  22. package/dist/shared/{load-config-ogsRZE88.mjs → load-config-BvPPEM7l.mjs} +1 -1
  23. package/dist/shared/{normalize-string-or-regex-CUtNDnr8.mjs → normalize-string-or-regex-BpXHYeN4.mjs} +1 -1
  24. package/dist/shared/{parse-Dua16Uj5.mjs → parse-CTgsjpo8.mjs} +1 -1
  25. package/dist/shared/{resolve-tsconfig-RM2pJApc.mjs → resolve-tsconfig-BkhP9bkX.mjs} +2 -2
  26. package/dist/shared/{rolldown-DhOK2ys6.mjs → rolldown-Brph2NSU.mjs} +1 -1
  27. package/dist/shared/{rolldown-build-DDMH4mGm.mjs → rolldown-build-DR0wzp0V.mjs} +15 -15
  28. package/dist/shared/{transform-n2APpHoz.d.mts → transform-CEmFsvJW.d.mts} +1 -1
  29. package/dist/shared/{watch-9NPdmmab.mjs → watch-FrHSqg24.mjs} +4 -4
  30. package/dist/utils-index.d.mts +2 -2
  31. package/dist/utils-index.mjs +2 -2
  32. package/package.json +19 -19
package/dist/cli.mjs CHANGED
@@ -1,9 +1,9 @@
1
- import { n as onExit, t as watch } from "./shared/watch-9NPdmmab.mjs";
2
- import { C as version, S as description } from "./shared/bindingify-input-options-AEyVBGgK.mjs";
1
+ import { n as onExit, t as watch } from "./shared/watch-FrHSqg24.mjs";
2
+ import { C as version, S as description } from "./shared/bindingify-input-options-CzVhGygm.mjs";
3
3
  import { t as arraify } from "./shared/misc-CoQm4NHO.mjs";
4
- import { a as getInputCliKeys, i as getCliSchemaInfo, l as styleText, o as getOutputCliKeys, r as logger, s as validateCliOptions } from "./shared/rolldown-build-DDMH4mGm.mjs";
5
- import { t as rolldown } from "./shared/rolldown-DhOK2ys6.mjs";
6
- import { t as loadConfig } from "./shared/load-config-ogsRZE88.mjs";
4
+ import { a as getInputCliKeys, i as getCliSchemaInfo, l as styleText, o as getOutputCliKeys, r as logger, s as validateCliOptions } from "./shared/rolldown-build-DR0wzp0V.mjs";
5
+ import { t as rolldown } from "./shared/rolldown-Brph2NSU.mjs";
6
+ import { t as loadConfig } from "./shared/load-config-BvPPEM7l.mjs";
7
7
  import path from "node:path";
8
8
  import g$1 from "node:process";
9
9
  import { performance } from "node:perf_hooks";
@@ -736,8 +736,7 @@ const options = Object.fromEntries(Object.entries(schemaInfo).filter(([_key, inf
736
736
  };
737
737
  if (config?.abbreviation) result.short = config.abbreviation;
738
738
  if (config?.hint) result.hint = config.hint;
739
- const kebabKey = camelCaseToKebabCase(key);
740
- return [config?.reverse ? `no-${kebabKey}` : kebabKey, result];
739
+ return [config?.reverse ? `no-${key}` : key, result];
741
740
  }));
742
741
  const knownKeys = new Set(Object.keys(schemaInfo));
743
742
  for (const key of Object.keys(schemaInfo)) {
@@ -746,6 +745,18 @@ for (const key of Object.keys(schemaInfo)) {
746
745
  }
747
746
  const shortAliases = /* @__PURE__ */ new Set();
748
747
  for (const config of Object.values(alias)) if (config?.abbreviation) shortAliases.add(config.abbreviation);
748
+ function kebabToCamelCase(input) {
749
+ return input.replaceAll(/([a-z])-([a-z])/g, (_, p1, p2) => {
750
+ return p1 + p2.toUpperCase();
751
+ });
752
+ }
753
+ function camelizeNestedKeys(value) {
754
+ const result = {};
755
+ for (const [key, nestedValue] of Object.entries(value)) if (Array.isArray(nestedValue)) result[kebabToCamelCase(key)] = nestedValue;
756
+ else if (nestedValue && typeof nestedValue === "object") result[kebabToCamelCase(key)] = camelizeNestedKeys(nestedValue);
757
+ else result[kebabToCamelCase(key)] = nestedValue;
758
+ return result;
759
+ }
749
760
  function parseCliArguments() {
750
761
  const cli = cac("rolldown");
751
762
  for (const [key, info] of Object.entries(schemaInfo)) {
@@ -790,6 +801,7 @@ function parseCliArguments() {
790
801
  const single = unknownKeys.length === 1;
791
802
  logger.warn(`Option \`${unknownKeys.join(",")}\` ${single ? "is" : "are"} unrecognized. We will ignore ${single ? "this" : "those"} option${single ? "" : "s"}.`);
792
803
  }
804
+ parsedOptions = camelizeNestedKeys(parsedOptions);
793
805
  const rawArgs = { ...parsedOptions };
794
806
  for (const key of unknownKeys) delete parsedOptions[key];
795
807
  for (const [key, value] of Object.entries(parsedOptions)) {
@@ -1121,7 +1133,6 @@ function generateHelpText() {
1121
1133
  return a.localeCompare(b);
1122
1134
  }).map(([option, { type, short, hint, description }]) => {
1123
1135
  let optionStr = ` --${option} `;
1124
- option = camelCaseToKebabCase(option);
1125
1136
  if (short) optionStr += `-${short}, `;
1126
1137
  if (type === "string") optionStr += `<${hint ?? option}>`;
1127
1138
  if (description && description.length > 0) description = description[0].toUpperCase() + description.slice(1);
package/dist/config.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { I as VERSION, r as defineConfig, t as ConfigExport } from "./shared/define-config-DP-RZqh9.mjs";
1
+ import { I as VERSION, r as defineConfig, t as ConfigExport } from "./shared/define-config-sxBscJ3M.mjs";
2
2
 
3
3
  //#region src/utils/load-config.d.ts
4
4
  /**
package/dist/config.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { x as VERSION } from "./shared/bindingify-input-options-AEyVBGgK.mjs";
1
+ import { x as VERSION } from "./shared/bindingify-input-options-CzVhGygm.mjs";
2
2
  import { t as defineConfig } from "./shared/define-config-Demdg3_4.mjs";
3
- import { t as loadConfig } from "./shared/load-config-ogsRZE88.mjs";
3
+ import { t as loadConfig } from "./shared/load-config-BvPPEM7l.mjs";
4
4
  export { VERSION, defineConfig, loadConfig };
@@ -1,7 +1,7 @@
1
- import { B as ResolveResult, C as BindingViteManifestPluginConfig, G as isolatedDeclaration, I as NapiResolveOptions, K as isolatedDeclarationSync, M as IsolatedDeclarationsResult, O as BindingViteTransformPluginConfig, V as ResolverFactory, _ as BindingTsconfigRawOptions, f as BindingRebuildStrategy, g as BindingTsconfigCompilerOptions, i as BindingClientHmrUpdate, j as IsolatedDeclarationsOptions, n as BindingBundleAnalyzerPluginConfig, q as moduleRunnerTransform, r as BindingBundleState } from "./shared/binding-CQbRhfY2.mjs";
2
- import { Jt as RolldownOutput, P as BuiltinPlugin, Ut as StringOrRegExp, Xt as freeExternalMemory, Z as defineParallelPlugin, ct as NormalizedOutputOptions, l as InputOptions, zt as OutputOptions } from "./shared/define-config-DP-RZqh9.mjs";
3
- import { a as MinifyOptions$1, c as minifySync$1, d as parse$1, f as parseSync$1, i as transformSync$1, l as ParseResult$1, m as resolveTsconfig, n as TransformResult$1, o as MinifyResult$1, p as TsconfigCache$1, r as transform$1, s as minify$1, t as TransformOptions$1, u as ParserOptions$1 } from "./shared/transform-n2APpHoz.mjs";
4
- import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWebWorkerPostPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-Cebl5ISm.mjs";
1
+ import { B as ResolveResult, C as BindingViteManifestPluginConfig, G as isolatedDeclaration, I as NapiResolveOptions, K as isolatedDeclarationSync, M as IsolatedDeclarationsResult, O as BindingViteTransformPluginConfig, V as ResolverFactory, _ as BindingTsconfigRawOptions, f as BindingRebuildStrategy, g as BindingTsconfigCompilerOptions, i as BindingClientHmrUpdate, j as IsolatedDeclarationsOptions, n as BindingBundleAnalyzerPluginConfig, q as moduleRunnerTransform, r as BindingBundleState } from "./shared/binding-B1q9aYT-.mjs";
2
+ import { Jt as RolldownOutput, P as BuiltinPlugin, Ut as StringOrRegExp, Xt as freeExternalMemory, Z as defineParallelPlugin, ct as NormalizedOutputOptions, l as InputOptions, zt as OutputOptions } from "./shared/define-config-sxBscJ3M.mjs";
3
+ import { a as MinifyOptions$1, c as minifySync$1, d as parse$1, f as parseSync$1, i as transformSync$1, l as ParseResult$1, m as resolveTsconfig, n as TransformResult$1, o as MinifyResult$1, p as TsconfigCache$1, r as transform$1, s as minify$1, t as TransformOptions$1, u as ParserOptions$1 } from "./shared/transform-CEmFsvJW.mjs";
4
+ import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWebWorkerPostPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-awZ1VNvg.mjs";
5
5
 
6
6
  //#region src/api/dev/dev-options.d.ts
7
7
  type DevOnHmrUpdates = (result: Error | {
@@ -9,6 +9,7 @@ type DevOnHmrUpdates = (result: Error | {
9
9
  changedFiles: string[];
10
10
  }) => void | Promise<void>;
11
11
  type DevOnOutput = (result: Error | RolldownOutput) => void | Promise<void>;
12
+ type DevOnAdditionalAssets = (output: RolldownOutput) => void | Promise<void>;
12
13
  interface DevWatchOptions {
13
14
  /**
14
15
  * If `true`, files are not written to disk.
@@ -69,6 +70,15 @@ interface DevOptions {
69
70
  onHmrUpdates?: DevOnHmrUpdates;
70
71
  onOutput?: DevOnOutput;
71
72
  /**
73
+ * Called with assets emitted while generating an HMR patch or compiling a
74
+ * lazy entry (e.g. an image newly imported by the changed/lazy module).
75
+ *
76
+ * These never go through {@link onOutput}, so a consumer that serves built
77
+ * files (e.g. Vite's bundled dev server) must register this to receive them
78
+ * and write them to its in-memory file store before the client requests them.
79
+ */
80
+ onAdditionalAssets?: DevOnAdditionalAssets;
81
+ /**
72
82
  * Strategy for triggering rebuilds after HMR updates.
73
83
  * - `'always'`: Always trigger a rebuild after HMR updates
74
84
  * - `'auto'`: Trigger rebuild only if HMR updates contain full reload updates
@@ -1,11 +1,11 @@
1
- import { n as __toESM, t as require_binding } from "./shared/binding-BxaeY8HI.mjs";
2
- import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-CUtNDnr8.mjs";
3
- import { o as transformToRollupOutput } from "./shared/bindingify-input-options-AEyVBGgK.mjs";
4
- import { c as validateOption, n as createBundlerOptions, t as RolldownBuild, u as PluginDriver } from "./shared/rolldown-build-DDMH4mGm.mjs";
5
- import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-T-E9reEy.mjs";
6
- import { n as parseSync$1, t as parse$1 } from "./shared/parse-Dua16Uj5.mjs";
7
- import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWebWorkerPostPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-BcTE5mZO.mjs";
8
- import { a as minify$1, i as transformSync$1, n as resolveTsconfig, o as minifySync$1, r as transform$1, t as TsconfigCache$1 } from "./shared/resolve-tsconfig-RM2pJApc.mjs";
1
+ import { n as __toESM, t as require_binding } from "./shared/binding-Dh6LYCIB.mjs";
2
+ import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-BpXHYeN4.mjs";
3
+ import { o as transformToRollupOutput } from "./shared/bindingify-input-options-CzVhGygm.mjs";
4
+ import { c as validateOption, n as createBundlerOptions, t as RolldownBuild, u as PluginDriver } from "./shared/rolldown-build-DR0wzp0V.mjs";
5
+ import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-B68YLzl3.mjs";
6
+ import { n as parseSync$1, t as parse$1 } from "./shared/parse-CTgsjpo8.mjs";
7
+ import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWebWorkerPostPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-688OwP2q.mjs";
8
+ import { a as minify$1, i as transformSync$1, n as resolveTsconfig, o as minifySync$1, r as transform$1, t as TsconfigCache$1 } from "./shared/resolve-tsconfig-BkhP9bkX.mjs";
9
9
  import { pathToFileURL } from "node:url";
10
10
  //#region src/api/dev/dev-engine.ts
11
11
  var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
@@ -29,15 +29,20 @@ var DevEngine = class DevEngine {
29
29
  });
30
30
  } : void 0;
31
31
  const userOnOutput = devOptions.onOutput;
32
+ const bindingOnOutput = userOnOutput ? function(rawResult) {
33
+ const result = normalizeBindingResult(rawResult);
34
+ if (result instanceof Error) {
35
+ userOnOutput(result);
36
+ return;
37
+ }
38
+ userOnOutput(transformToRollupOutput(result));
39
+ } : void 0;
40
+ const userOnAdditionalAssets = devOptions.onAdditionalAssets;
32
41
  const bindingDevOptions = {
33
42
  onHmrUpdates: bindingOnHmrUpdates,
34
- onOutput: userOnOutput ? function(rawResult) {
35
- const result = normalizeBindingResult(rawResult);
36
- if (result instanceof Error) {
37
- userOnOutput(result);
38
- return;
39
- }
40
- userOnOutput(transformToRollupOutput(result));
43
+ onOutput: bindingOnOutput,
44
+ onAdditionalAssets: userOnAdditionalAssets ? function(output) {
45
+ userOnAdditionalAssets(transformToRollupOutput(output));
41
46
  } : void 0,
42
47
  rebuildStrategy: devOptions.rebuildStrategy ? devOptions.rebuildStrategy === "always" ? import_binding.BindingRebuildStrategy.Always : devOptions.rebuildStrategy === "auto" ? import_binding.BindingRebuildStrategy.Auto : import_binding.BindingRebuildStrategy.Never : void 0,
43
48
  watch: devOptions.watch && {
@@ -1,4 +1,4 @@
1
- import { N as withFilter } from "./shared/define-config-DP-RZqh9.mjs";
1
+ import { N as withFilter } from "./shared/define-config-sxBscJ3M.mjs";
2
2
 
3
3
  //#region ../../node_modules/.pnpm/@rolldown+pluginutils@1.0.1/node_modules/@rolldown/pluginutils/dist/filter/index.d.mts
4
4
  //#region src/filter/composable-filters.d.ts
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
1
  import { a as RolldownLog, i as RolldownError, n as LogLevelOption, o as RolldownLogWithString, r as LogOrStringHandler, t as LogLevel } from "./shared/logging-BSNejiLS.mjs";
2
- import { z as PreRenderedChunk } from "./shared/binding-CQbRhfY2.mjs";
3
- import { $ as PluginContextMeta, A as RolldownPluginOption, At as CodeSplittingGroup, B as OutputBundle, Bt as PreRenderedAsset, C as ParallelPluginHooks, Ct as build, D as ResolveIdResult, Dt as BuiltinModuleTag, E as ResolveIdExtraOptions, Et as AdvancedChunksOptions, F as RUNTIME_MODULE_ID, Ft as GeneratedCodePreset, G as EmittedFile, Gt as OutputChunk, H as TransformPluginContext, Ht as PartialNull, I as VERSION, It as GlobalsFunction, J as PluginContext, Jt as RolldownOutput, K as EmittedPrebuiltChunk, Kt as RenderedChunk, L as BundleError, Lt as MinifyOptions, M as TransformResult, Mt as CodeSplittingOptions, Nt as CommentsOptions, O as ResolvedId, Ot as ChunkFileNamesFunction, Pt as GeneratedCodeOptions, Q as MinimalPluginContext, Qt as SourcemapIgnoreListOption, R as ExistingRawSourceMap, Rt as ModuleFormat, S as ObjectHook, St as BuildOptions, T as Plugin, Tt as AdvancedChunksGroup, U as EmittedAsset, V as TreeshakingOptions, W as EmittedChunk, Wt as OutputAsset, X as DefineParallelPluginResult, Y as PluginContextResolveOptions, Yt as SourceMap, Zt as ModuleInfo, _ as HookFilterExtension, _t as RolldownWatcherEvent, a as ChunkOptimizationOptions, at as RolldownFileStats, b as ModuleOptions, bt as rolldown, c as InputOption, ct as NormalizedOutputOptions, d as OptimizationOptions, dt as ChecksOptions, et as GeneralHookFilter, f as WatcherFileWatcherOptions, ft as LoggingFunction, g as FunctionPluginHooks, gt as RolldownWatcher, h as CustomPluginOptions, ht as watch, i as RolldownOptions, it as RolldownDirectoryEntry, j as SourceDescription, jt as CodeSplittingNameFunction, k as RolldownPlugin, kt as ChunkingContext, l as InputOptions, lt as NormalizedInputOptions, m as AsyncPluginHooks, mt as RolldownMagicString, n as RolldownOptionsFunction, nt as ModuleTypeFilter, o as ExternalOption, ot as RolldownFsModule, p as WatcherOptions, pt as WarningHandlerWithDefault, q as GetModuleInfo, qt as RenderedModule, r as defineConfig, rt as BufferEncoding, s as ExternalOptionFunction, st as InternalModuleFormat, t as ConfigExport, tt as HookFilter, u as ModuleTypes, ut as TransformOptions, v as ImportKind, vt as RolldownWatcherWatcherEventMap, w as PartialResolvedId, wt as AddonFunction, x as ModuleType, xt as RolldownBuild, y as LoadResult, yt as WatchOptions, z as SourceMapInput, zt as OutputOptions } from "./shared/define-config-DP-RZqh9.mjs";
2
+ import { z as PreRenderedChunk } from "./shared/binding-B1q9aYT-.mjs";
3
+ import { $ as PluginContextMeta, A as RolldownPluginOption, At as CodeSplittingGroup, B as OutputBundle, Bt as PreRenderedAsset, C as ParallelPluginHooks, Ct as build, D as ResolveIdResult, Dt as BuiltinModuleTag, E as ResolveIdExtraOptions, Et as AdvancedChunksOptions, F as RUNTIME_MODULE_ID, Ft as GeneratedCodePreset, G as EmittedFile, Gt as OutputChunk, H as TransformPluginContext, Ht as PartialNull, I as VERSION, It as GlobalsFunction, J as PluginContext, Jt as RolldownOutput, K as EmittedPrebuiltChunk, Kt as RenderedChunk, L as BundleError, Lt as MinifyOptions, M as TransformResult, Mt as CodeSplittingOptions, Nt as CommentsOptions, O as ResolvedId, Ot as ChunkFileNamesFunction, Pt as GeneratedCodeOptions, Q as MinimalPluginContext, Qt as SourcemapIgnoreListOption, R as ExistingRawSourceMap, Rt as ModuleFormat, S as ObjectHook, St as BuildOptions, T as Plugin, Tt as AdvancedChunksGroup, U as EmittedAsset, V as TreeshakingOptions, W as EmittedChunk, Wt as OutputAsset, X as DefineParallelPluginResult, Y as PluginContextResolveOptions, Yt as SourceMap, Zt as ModuleInfo, _ as HookFilterExtension, _t as RolldownWatcherEvent, a as ChunkOptimizationOptions, at as RolldownFileStats, b as ModuleOptions, bt as rolldown, c as InputOption, ct as NormalizedOutputOptions, d as OptimizationOptions, dt as ChecksOptions, et as GeneralHookFilter, f as WatcherFileWatcherOptions, ft as LoggingFunction, g as FunctionPluginHooks, gt as RolldownWatcher, h as CustomPluginOptions, ht as watch, i as RolldownOptions, it as RolldownDirectoryEntry, j as SourceDescription, jt as CodeSplittingNameFunction, k as RolldownPlugin, kt as ChunkingContext, l as InputOptions, lt as NormalizedInputOptions, m as AsyncPluginHooks, mt as RolldownMagicString, n as RolldownOptionsFunction, nt as ModuleTypeFilter, o as ExternalOption, ot as RolldownFsModule, p as WatcherOptions, pt as WarningHandlerWithDefault, q as GetModuleInfo, qt as RenderedModule, r as defineConfig, rt as BufferEncoding, s as ExternalOptionFunction, st as InternalModuleFormat, t as ConfigExport, tt as HookFilter, u as ModuleTypes, ut as TransformOptions, v as ImportKind, vt as RolldownWatcherWatcherEventMap, w as PartialResolvedId, wt as AddonFunction, x as ModuleType, xt as RolldownBuild, y as LoadResult, yt as WatchOptions, z as SourceMapInput, zt as OutputOptions } from "./shared/define-config-sxBscJ3M.mjs";
4
4
  export { type AddonFunction, type AdvancedChunksGroup, type AdvancedChunksOptions, type AsyncPluginHooks, type BufferEncoding, type BuildOptions, type BuiltinModuleTag, type BundleError, type ChecksOptions, type ChunkFileNamesFunction, type ChunkOptimizationOptions, type ChunkingContext, type CodeSplittingGroup, type CodeSplittingNameFunction, type CodeSplittingOptions, type CommentsOptions, type ConfigExport, type CustomPluginOptions, type DefineParallelPluginResult, type EmittedAsset, type EmittedChunk, type EmittedFile, type EmittedPrebuiltChunk, type ExistingRawSourceMap, type ExternalOption, type ExternalOptionFunction, 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, 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 PluginContextResolveOptions, type PreRenderedAsset, type PreRenderedChunk, RUNTIME_MODULE_ID, type RenderedChunk, type RenderedModule, type ResolveIdExtraOptions, type ResolveIdResult, type ResolvedId, type RolldownBuild, type RolldownDirectoryEntry, type RolldownError, type RolldownError as RollupError, type RolldownFileStats, type RolldownFsModule, type RolldownLog, type RolldownLog as RollupLog, type RolldownLogWithString, type RolldownLogWithString as RollupLogWithString, RolldownMagicString, type RolldownOptions, type RolldownOptionsFunction, type RolldownOutput, type RolldownPlugin, type RolldownPluginOption, type RolldownWatcher, type RolldownWatcherEvent, type RolldownWatcherWatcherEventMap, type SourceDescription, type SourceMap, type SourceMapInput, type SourcemapIgnoreListOption, type TransformOptions, type TransformPluginContext, type TransformResult, type TreeshakingOptions, VERSION, type WarningHandlerWithDefault, type WatchOptions, type WatcherFileWatcherOptions, type WatcherOptions, build, defineConfig, rolldown, watch };
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
- import { n as __toESM, t as require_binding } from "./shared/binding-BxaeY8HI.mjs";
2
- import { n as onExit, t as watch } from "./shared/watch-9NPdmmab.mjs";
3
- import { a as RolldownMagicString, b as RUNTIME_MODULE_ID, x as VERSION } from "./shared/bindingify-input-options-AEyVBGgK.mjs";
4
- import { t as rolldown } from "./shared/rolldown-DhOK2ys6.mjs";
1
+ import { n as __toESM, t as require_binding } from "./shared/binding-Dh6LYCIB.mjs";
2
+ import { n as onExit, t as watch } from "./shared/watch-FrHSqg24.mjs";
3
+ import { b as RUNTIME_MODULE_ID, r as RolldownMagicString, x as VERSION } from "./shared/bindingify-input-options-CzVhGygm.mjs";
4
+ import { t as rolldown } from "./shared/rolldown-Brph2NSU.mjs";
5
5
  import { t as defineConfig } from "./shared/define-config-Demdg3_4.mjs";
6
6
  import { isMainThread } from "node:worker_threads";
7
7
  //#region src/setup.ts
@@ -1,5 +1,5 @@
1
- import { n as __toESM, t as require_binding } from "./shared/binding-BxaeY8HI.mjs";
2
- import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-AEyVBGgK.mjs";
1
+ import { n as __toESM, t as require_binding } from "./shared/binding-Dh6LYCIB.mjs";
2
+ import { i as PluginContextData, n as bindingifyPlugin } from "./shared/bindingify-input-options-CzVhGygm.mjs";
3
3
  import { parentPort, workerData } from "node:worker_threads";
4
4
  //#region src/parallel-plugin-worker.ts
5
5
  var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
@@ -1,4 +1,4 @@
1
- import { T as Plugin, Vt as MaybePromise } from "./shared/define-config-DP-RZqh9.mjs";
1
+ import { T as Plugin, Vt as MaybePromise } from "./shared/define-config-sxBscJ3M.mjs";
2
2
 
3
3
  //#region src/plugin/parallel-plugin-implementation.d.ts
4
4
  type ParallelPluginImplementation = Plugin;
@@ -1,4 +1,4 @@
1
- import { L as ParseResult$1, R as ParserOptions$1 } from "./shared/binding-CQbRhfY2.mjs";
1
+ import { L as ParseResult$1, R as ParserOptions$1 } from "./shared/binding-B1q9aYT-.mjs";
2
2
  import { Program } from "@oxc-project/types";
3
3
 
4
4
  //#region src/parse-ast-index.d.ts
@@ -1,5 +1,5 @@
1
1
  import { l as locate, n as error, s as logParseError, t as augmentCodeLocation, u as getCodeFrame } from "./shared/logs-aMKUxRpj.mjs";
2
- import { n as parseSync, t as parse } from "./shared/parse-Dua16Uj5.mjs";
2
+ import { n as parseSync, t as parse } from "./shared/parse-CTgsjpo8.mjs";
3
3
  //#region src/parse-ast-index.ts
4
4
  function wrap(result, filename, sourceText) {
5
5
  if (result.errors.length > 0) return normalizeParseError(filename, sourceText, result.errors);
@@ -1,6 +1,6 @@
1
- import { m as BindingReplacePluginConfig } from "./shared/binding-CQbRhfY2.mjs";
2
- import { P as BuiltinPlugin } from "./shared/define-config-DP-RZqh9.mjs";
3
- import { t as esmExternalRequirePlugin } from "./shared/constructors-Cebl5ISm.mjs";
1
+ import { m as BindingReplacePluginConfig } from "./shared/binding-B1q9aYT-.mjs";
2
+ import { P as BuiltinPlugin } from "./shared/define-config-sxBscJ3M.mjs";
3
+ import { t as esmExternalRequirePlugin } from "./shared/constructors-awZ1VNvg.mjs";
4
4
 
5
5
  //#region src/builtin-plugin/replace-plugin.d.ts
6
6
  /**
@@ -1,5 +1,5 @@
1
- import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./shared/normalize-string-or-regex-CUtNDnr8.mjs";
2
- import { t as esmExternalRequirePlugin } from "./shared/constructors-BcTE5mZO.mjs";
1
+ import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./shared/normalize-string-or-regex-BpXHYeN4.mjs";
2
+ import { t as esmExternalRequirePlugin } from "./shared/constructors-688OwP2q.mjs";
3
3
  //#region src/builtin-plugin/replace-plugin.ts
4
4
  /**
5
5
  * Replaces targeted strings in files while bundling.
@@ -1701,13 +1701,6 @@ interface BindingMagicStringOptions {
1701
1701
  indentExclusionRanges?: Array<Array<number>> | Array<number>;
1702
1702
  ignoreList?: boolean;
1703
1703
  }
1704
- interface BindingModulePreloadOptions {
1705
- polyfill: boolean;
1706
- resolveDependencies?: (filename: string, deps: string[], context: {
1707
- hostId: string;
1708
- hostType: 'html' | 'js';
1709
- }) => string[];
1710
- }
1711
1704
  interface BindingModules {
1712
1705
  values: Array<BindingRenderedModule>;
1713
1706
  keys: Array<string>;
@@ -1736,16 +1729,6 @@ declare enum BindingRebuildStrategy {
1736
1729
  Auto = 1,
1737
1730
  Never = 2
1738
1731
  }
1739
- interface BindingRenderBuiltUrlConfig {
1740
- ssr: boolean;
1741
- type: 'asset' | 'public';
1742
- hostId: string;
1743
- hostType: 'js' | 'css' | 'html';
1744
- }
1745
- interface BindingRenderBuiltUrlRet {
1746
- relative?: boolean;
1747
- runtime?: string;
1748
- }
1749
1732
  interface BindingReplacePluginConfig {
1750
1733
  values: Record<string, string>;
1751
1734
  delimiters?: [string, string];
@@ -1834,14 +1817,6 @@ interface BindingViteBuildImportAnalysisPluginConfig {
1834
1817
  optimizeModulePreloadRelativePaths: boolean;
1835
1818
  renderBuiltUrl: boolean;
1836
1819
  isRelativeBase: boolean;
1837
- v2?: BindingViteBuildImportAnalysisPluginV2Config;
1838
- }
1839
- interface BindingViteBuildImportAnalysisPluginV2Config {
1840
- isSsr: boolean;
1841
- urlBase: string;
1842
- decodedBase: string;
1843
- modulePreload: false | BindingModulePreloadOptions;
1844
- renderBuiltUrl?: (filename: string, type: BindingRenderBuiltUrlConfig) => undefined | string | BindingRenderBuiltUrlRet;
1845
1820
  }
1846
1821
  interface BindingViteDynamicImportVarsPluginConfig {
1847
1822
  sourcemap?: boolean;
@@ -1863,7 +1838,6 @@ type BindingViteJsonPluginStringify = boolean | string;
1863
1838
  interface BindingViteManifestPluginConfig {
1864
1839
  root: string;
1865
1840
  outPath: string;
1866
- isEnableV2?: boolean;
1867
1841
  isLegacy?: (args: BindingNormalizedOptions) => boolean;
1868
1842
  cssEntries: () => Record<string, string>;
1869
1843
  }
@@ -103,7 +103,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
103
103
  try {
104
104
  const binding = __require("@rolldown/binding-android-arm64");
105
105
  const bindingPackageVersion = __require("@rolldown/binding-android-arm64/package.json").version;
106
- if (bindingPackageVersion !== "1.1.2" && 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.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
106
+ if (bindingPackageVersion !== "1.1.3" && 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.1.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
107
107
  return binding;
108
108
  } catch (e) {
109
109
  loadErrors.push(e);
@@ -117,7 +117,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
117
117
  try {
118
118
  const binding = __require("@rolldown/binding-android-arm-eabi");
119
119
  const bindingPackageVersion = __require("@rolldown/binding-android-arm-eabi/package.json").version;
120
- if (bindingPackageVersion !== "1.1.2" && 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.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
120
+ if (bindingPackageVersion !== "1.1.3" && 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.1.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
121
121
  return binding;
122
122
  } catch (e) {
123
123
  loadErrors.push(e);
@@ -132,7 +132,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
132
132
  try {
133
133
  const binding = __require("@rolldown/binding-win32-x64-gnu");
134
134
  const bindingPackageVersion = __require("@rolldown/binding-win32-x64-gnu/package.json").version;
135
- if (bindingPackageVersion !== "1.1.2" && 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.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
135
+ if (bindingPackageVersion !== "1.1.3" && 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.1.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
136
136
  return binding;
137
137
  } catch (e) {
138
138
  loadErrors.push(e);
@@ -146,7 +146,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
146
146
  try {
147
147
  const binding = __require("@rolldown/binding-win32-x64-msvc");
148
148
  const bindingPackageVersion = __require("@rolldown/binding-win32-x64-msvc/package.json").version;
149
- if (bindingPackageVersion !== "1.1.2" && 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.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
149
+ if (bindingPackageVersion !== "1.1.3" && 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.1.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
150
150
  return binding;
151
151
  } catch (e) {
152
152
  loadErrors.push(e);
@@ -161,7 +161,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
161
161
  try {
162
162
  const binding = __require("@rolldown/binding-win32-ia32-msvc");
163
163
  const bindingPackageVersion = __require("@rolldown/binding-win32-ia32-msvc/package.json").version;
164
- if (bindingPackageVersion !== "1.1.2" && 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.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
164
+ if (bindingPackageVersion !== "1.1.3" && 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.1.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
165
165
  return binding;
166
166
  } catch (e) {
167
167
  loadErrors.push(e);
@@ -175,7 +175,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
175
175
  try {
176
176
  const binding = __require("@rolldown/binding-win32-arm64-msvc");
177
177
  const bindingPackageVersion = __require("@rolldown/binding-win32-arm64-msvc/package.json").version;
178
- if (bindingPackageVersion !== "1.1.2" && 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.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
178
+ if (bindingPackageVersion !== "1.1.3" && 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.1.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
179
179
  return binding;
180
180
  } catch (e) {
181
181
  loadErrors.push(e);
@@ -190,7 +190,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
190
190
  try {
191
191
  const binding = __require("@rolldown/binding-darwin-universal");
192
192
  const bindingPackageVersion = __require("@rolldown/binding-darwin-universal/package.json").version;
193
- if (bindingPackageVersion !== "1.1.2" && 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.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
193
+ if (bindingPackageVersion !== "1.1.3" && 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.1.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
194
194
  return binding;
195
195
  } catch (e) {
196
196
  loadErrors.push(e);
@@ -204,7 +204,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
204
204
  try {
205
205
  const binding = __require("@rolldown/binding-darwin-x64");
206
206
  const bindingPackageVersion = __require("@rolldown/binding-darwin-x64/package.json").version;
207
- if (bindingPackageVersion !== "1.1.2" && 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.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
207
+ if (bindingPackageVersion !== "1.1.3" && 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.1.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
208
208
  return binding;
209
209
  } catch (e) {
210
210
  loadErrors.push(e);
@@ -218,7 +218,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
218
218
  try {
219
219
  const binding = __require("@rolldown/binding-darwin-arm64");
220
220
  const bindingPackageVersion = __require("@rolldown/binding-darwin-arm64/package.json").version;
221
- if (bindingPackageVersion !== "1.1.2" && 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.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
221
+ if (bindingPackageVersion !== "1.1.3" && 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.1.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
222
222
  return binding;
223
223
  } catch (e) {
224
224
  loadErrors.push(e);
@@ -233,7 +233,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
233
233
  try {
234
234
  const binding = __require("@rolldown/binding-freebsd-x64");
235
235
  const bindingPackageVersion = __require("@rolldown/binding-freebsd-x64/package.json").version;
236
- if (bindingPackageVersion !== "1.1.2" && 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.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
236
+ if (bindingPackageVersion !== "1.1.3" && 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.1.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
237
237
  return binding;
238
238
  } catch (e) {
239
239
  loadErrors.push(e);
@@ -247,7 +247,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
247
247
  try {
248
248
  const binding = __require("@rolldown/binding-freebsd-arm64");
249
249
  const bindingPackageVersion = __require("@rolldown/binding-freebsd-arm64/package.json").version;
250
- if (bindingPackageVersion !== "1.1.2" && 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.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
250
+ if (bindingPackageVersion !== "1.1.3" && 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.1.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
251
251
  return binding;
252
252
  } catch (e) {
253
253
  loadErrors.push(e);
@@ -262,7 +262,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
262
262
  try {
263
263
  const binding = __require("@rolldown/binding-linux-x64-musl");
264
264
  const bindingPackageVersion = __require("@rolldown/binding-linux-x64-musl/package.json").version;
265
- if (bindingPackageVersion !== "1.1.2" && 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.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
265
+ if (bindingPackageVersion !== "1.1.3" && 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.1.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
266
266
  return binding;
267
267
  } catch (e) {
268
268
  loadErrors.push(e);
@@ -276,7 +276,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
276
276
  try {
277
277
  const binding = __require("@rolldown/binding-linux-x64-gnu");
278
278
  const bindingPackageVersion = __require("@rolldown/binding-linux-x64-gnu/package.json").version;
279
- if (bindingPackageVersion !== "1.1.2" && 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.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
279
+ if (bindingPackageVersion !== "1.1.3" && 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.1.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
280
280
  return binding;
281
281
  } catch (e) {
282
282
  loadErrors.push(e);
@@ -291,7 +291,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
291
291
  try {
292
292
  const binding = __require("@rolldown/binding-linux-arm64-musl");
293
293
  const bindingPackageVersion = __require("@rolldown/binding-linux-arm64-musl/package.json").version;
294
- if (bindingPackageVersion !== "1.1.2" && 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.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
294
+ if (bindingPackageVersion !== "1.1.3" && 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.1.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
295
295
  return binding;
296
296
  } catch (e) {
297
297
  loadErrors.push(e);
@@ -305,7 +305,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
305
305
  try {
306
306
  const binding = __require("@rolldown/binding-linux-arm64-gnu");
307
307
  const bindingPackageVersion = __require("@rolldown/binding-linux-arm64-gnu/package.json").version;
308
- if (bindingPackageVersion !== "1.1.2" && 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.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
308
+ if (bindingPackageVersion !== "1.1.3" && 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.1.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
309
309
  return binding;
310
310
  } catch (e) {
311
311
  loadErrors.push(e);
@@ -320,7 +320,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
320
320
  try {
321
321
  const binding = __require("@rolldown/binding-linux-arm-musleabihf");
322
322
  const bindingPackageVersion = __require("@rolldown/binding-linux-arm-musleabihf/package.json").version;
323
- if (bindingPackageVersion !== "1.1.2" && 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.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
323
+ if (bindingPackageVersion !== "1.1.3" && 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.1.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
324
324
  return binding;
325
325
  } catch (e) {
326
326
  loadErrors.push(e);
@@ -334,7 +334,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
334
334
  try {
335
335
  const binding = __require("@rolldown/binding-linux-arm-gnueabihf");
336
336
  const bindingPackageVersion = __require("@rolldown/binding-linux-arm-gnueabihf/package.json").version;
337
- if (bindingPackageVersion !== "1.1.2" && 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.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
337
+ if (bindingPackageVersion !== "1.1.3" && 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.1.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
338
338
  return binding;
339
339
  } catch (e) {
340
340
  loadErrors.push(e);
@@ -349,7 +349,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
349
349
  try {
350
350
  const binding = __require("@rolldown/binding-linux-loong64-musl");
351
351
  const bindingPackageVersion = __require("@rolldown/binding-linux-loong64-musl/package.json").version;
352
- if (bindingPackageVersion !== "1.1.2" && 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.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
352
+ if (bindingPackageVersion !== "1.1.3" && 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.1.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
353
353
  return binding;
354
354
  } catch (e) {
355
355
  loadErrors.push(e);
@@ -363,7 +363,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
363
363
  try {
364
364
  const binding = __require("@rolldown/binding-linux-loong64-gnu");
365
365
  const bindingPackageVersion = __require("@rolldown/binding-linux-loong64-gnu/package.json").version;
366
- if (bindingPackageVersion !== "1.1.2" && 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.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
366
+ if (bindingPackageVersion !== "1.1.3" && 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.1.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
367
367
  return binding;
368
368
  } catch (e) {
369
369
  loadErrors.push(e);
@@ -378,7 +378,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
378
378
  try {
379
379
  const binding = __require("@rolldown/binding-linux-riscv64-musl");
380
380
  const bindingPackageVersion = __require("@rolldown/binding-linux-riscv64-musl/package.json").version;
381
- if (bindingPackageVersion !== "1.1.2" && 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.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
381
+ if (bindingPackageVersion !== "1.1.3" && 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.1.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
382
382
  return binding;
383
383
  } catch (e) {
384
384
  loadErrors.push(e);
@@ -392,7 +392,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
392
392
  try {
393
393
  const binding = __require("@rolldown/binding-linux-riscv64-gnu");
394
394
  const bindingPackageVersion = __require("@rolldown/binding-linux-riscv64-gnu/package.json").version;
395
- if (bindingPackageVersion !== "1.1.2" && 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.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
395
+ if (bindingPackageVersion !== "1.1.3" && 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.1.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
396
396
  return binding;
397
397
  } catch (e) {
398
398
  loadErrors.push(e);
@@ -407,7 +407,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
407
407
  try {
408
408
  const binding = __require("@rolldown/binding-linux-ppc64-gnu");
409
409
  const bindingPackageVersion = __require("@rolldown/binding-linux-ppc64-gnu/package.json").version;
410
- if (bindingPackageVersion !== "1.1.2" && 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.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
410
+ if (bindingPackageVersion !== "1.1.3" && 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.1.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
411
411
  return binding;
412
412
  } catch (e) {
413
413
  loadErrors.push(e);
@@ -421,7 +421,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
421
421
  try {
422
422
  const binding = __require("@rolldown/binding-linux-s390x-gnu");
423
423
  const bindingPackageVersion = __require("@rolldown/binding-linux-s390x-gnu/package.json").version;
424
- if (bindingPackageVersion !== "1.1.2" && 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.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
424
+ if (bindingPackageVersion !== "1.1.3" && 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.1.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
425
425
  return binding;
426
426
  } catch (e) {
427
427
  loadErrors.push(e);
@@ -436,7 +436,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
436
436
  try {
437
437
  const binding = __require("@rolldown/binding-openharmony-arm64");
438
438
  const bindingPackageVersion = __require("@rolldown/binding-openharmony-arm64/package.json").version;
439
- if (bindingPackageVersion !== "1.1.2" && 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.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
439
+ if (bindingPackageVersion !== "1.1.3" && 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.1.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
440
440
  return binding;
441
441
  } catch (e) {
442
442
  loadErrors.push(e);
@@ -450,7 +450,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
450
450
  try {
451
451
  const binding = __require("@rolldown/binding-openharmony-x64");
452
452
  const bindingPackageVersion = __require("@rolldown/binding-openharmony-x64/package.json").version;
453
- if (bindingPackageVersion !== "1.1.2" && 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.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
453
+ if (bindingPackageVersion !== "1.1.3" && 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.1.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
454
454
  return binding;
455
455
  } catch (e) {
456
456
  loadErrors.push(e);
@@ -464,7 +464,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
464
464
  try {
465
465
  const binding = __require("@rolldown/binding-openharmony-arm");
466
466
  const bindingPackageVersion = __require("@rolldown/binding-openharmony-arm/package.json").version;
467
- if (bindingPackageVersion !== "1.1.2" && 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.1.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
467
+ if (bindingPackageVersion !== "1.1.3" && 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.1.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
468
468
  return binding;
469
469
  } catch (e) {
470
470
  loadErrors.push(e);