rolldown 1.1.0 → 1.1.2

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 (34) hide show
  1. package/dist/cli.mjs +11 -11
  2. package/dist/config.d.mts +1 -1
  3. package/dist/config.mjs +2 -2
  4. package/dist/experimental-index.d.mts +5 -5
  5. package/dist/experimental-index.mjs +9 -9
  6. package/dist/filter-index.d.mts +8 -9
  7. package/dist/filter-index.mjs +1 -7
  8. package/dist/index.d.mts +2 -2
  9. package/dist/index.mjs +4 -4
  10. package/dist/parallel-plugin-worker.mjs +2 -2
  11. package/dist/parallel-plugin.d.mts +1 -1
  12. package/dist/parse-ast-index.d.mts +1 -1
  13. package/dist/parse-ast-index.mjs +1 -1
  14. package/dist/plugins-index.d.mts +3 -3
  15. package/dist/plugins-index.mjs +2 -2
  16. package/dist/shared/{binding-qVClobNT.mjs → binding-BxaeY8HI.mjs} +39 -34
  17. package/dist/shared/{binding-BaCZTfMx.d.mts → binding-CQbRhfY2.d.mts} +69 -24
  18. package/dist/shared/{bindingify-input-options-vF3wMbS6.mjs → bindingify-input-options-AEyVBGgK.mjs} +8 -8
  19. package/dist/shared/{constructors-DoUTwYMk.mjs → constructors-BcTE5mZO.mjs} +2 -5
  20. package/dist/shared/{constructors-D8COwUl3.d.mts → constructors-Cebl5ISm.d.mts} +3 -4
  21. package/dist/shared/{define-config-GlCPZt1X.d.mts → define-config-DP-RZqh9.d.mts} +1 -1
  22. package/dist/shared/{error-CMKNSs0f.mjs → error-T-E9reEy.mjs} +1 -1
  23. package/dist/shared/{load-config-CEemA_7Z.mjs → load-config-ogsRZE88.mjs} +1 -1
  24. package/dist/shared/{normalize-string-or-regex-BX9p5aGJ.mjs → normalize-string-or-regex-CUtNDnr8.mjs} +1 -1
  25. package/dist/shared/{parse-xLFgir3l.mjs → parse-Dua16Uj5.mjs} +2 -2
  26. package/dist/shared/{prompt-DYnaB1Nb.mjs → prompt-B1Yc1NPt.mjs} +5 -5
  27. package/dist/shared/{resolve-tsconfig-C-MQ8HXt.mjs → resolve-tsconfig-RM2pJApc.mjs} +2 -2
  28. package/dist/shared/{rolldown-_pvqn7ql.mjs → rolldown-DhOK2ys6.mjs} +1 -1
  29. package/dist/shared/{rolldown-build-Btfj7AD8.mjs → rolldown-build-DDMH4mGm.mjs} +12 -8
  30. package/dist/shared/{transform-7xCUVrpL.d.mts → transform-n2APpHoz.d.mts} +1 -1
  31. package/dist/shared/{watch-DWNzY4-Y.mjs → watch-9NPdmmab.mjs} +4 -4
  32. package/dist/utils-index.d.mts +3 -3
  33. package/dist/utils-index.mjs +6 -6
  34. package/package.json +23 -23
package/dist/cli.mjs CHANGED
@@ -1,11 +1,11 @@
1
- import { n as onExit, t as watch } from "./shared/watch-DWNzY4-Y.mjs";
2
- import { C as version, S as description } from "./shared/bindingify-input-options-vF3wMbS6.mjs";
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";
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-Btfj7AD8.mjs";
5
- import { t as rolldown } from "./shared/rolldown-_pvqn7ql.mjs";
6
- import { t as loadConfig } from "./shared/load-config-CEemA_7Z.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";
7
7
  import path from "node:path";
8
- import process$1 from "node:process";
8
+ import g$1 from "node:process";
9
9
  import { performance } from "node:perf_hooks";
10
10
  //#region ../../node_modules/.pnpm/cac@7.0.0/node_modules/cac/dist/index.js
11
11
  function toArr(any) {
@@ -679,7 +679,7 @@ function camelCaseToKebabCase(str) {
679
679
  }
680
680
  //#endregion
681
681
  //#region src/cli/arguments/normalize.ts
682
- const reservedKeys = new Set([
682
+ const reservedKeys = /* @__PURE__ */ new Set([
683
683
  "help",
684
684
  "version",
685
685
  "config",
@@ -847,7 +847,7 @@ function getClearScreenFunction(options) {
847
847
  };
848
848
  }
849
849
  //#endregion
850
- //#region \0@oxc-project+runtime@0.134.0/helpers/esm/usingCtx.js
850
+ //#region \0@oxc-project+runtime@0.137.0/helpers/esm/usingCtx.js
851
851
  function _usingCtx() {
852
852
  var r = "function" == typeof SuppressedError ? SuppressedError : function(r, e) {
853
853
  var n = Error();
@@ -1155,14 +1155,14 @@ function checkNodeVersion(nodeVersion) {
1155
1155
  }
1156
1156
  //#endregion
1157
1157
  //#region src/cli/index.ts
1158
- if (!checkNodeVersion(process$1.versions.node)) logger.warn(`You are using Node.js ${process$1.versions.node}. Rolldown requires Node.js version 20.19+ or 22.12+. Please upgrade your Node.js version.`);
1158
+ if (!checkNodeVersion(g$1.versions.node)) logger.warn(`You are using Node.js ${g$1.versions.node}. Rolldown requires Node.js version 20.19+ or 22.12+. Please upgrade your Node.js version.`);
1159
1159
  async function main() {
1160
1160
  const { rawArgs, ...cliOptions } = parseCliArguments();
1161
1161
  if (cliOptions.environment) {
1162
1162
  const environment = Array.isArray(cliOptions.environment) ? cliOptions.environment : [cliOptions.environment];
1163
1163
  for (const argument of environment) for (const pair of argument.split(",")) {
1164
1164
  const [key, ...value] = pair.split(":");
1165
- process$1.env[key] = value.length === 0 ? String(true) : value.join(":");
1165
+ g$1.env[key] = value.length === 0 ? String(true) : value.join(":");
1166
1166
  }
1167
1167
  }
1168
1168
  if (cliOptions.help) {
@@ -1185,7 +1185,7 @@ async function main() {
1185
1185
  }
1186
1186
  main().catch((err) => {
1187
1187
  logger.error(err);
1188
- process$1.exit(1);
1188
+ g$1.exit(1);
1189
1189
  });
1190
1190
  //#endregion
1191
1191
  export {};
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-GlCPZt1X.mjs";
1
+ import { I as VERSION, r as defineConfig, t as ConfigExport } from "./shared/define-config-DP-RZqh9.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-vF3wMbS6.mjs";
1
+ import { x as VERSION } from "./shared/bindingify-input-options-AEyVBGgK.mjs";
2
2
  import { t as defineConfig } from "./shared/define-config-Demdg3_4.mjs";
3
- import { t as loadConfig } from "./shared/load-config-CEemA_7Z.mjs";
3
+ import { t as loadConfig } from "./shared/load-config-ogsRZE88.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-BaCZTfMx.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-GlCPZt1X.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-7xCUVrpL.mjs";
4
- import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, m as viteWebWorkerPostPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWasmFallbackPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-D8COwUl3.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-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";
5
5
 
6
6
  //#region src/api/dev/dev-options.d.ts
7
7
  type DevOnHmrUpdates = (result: Error | {
@@ -267,4 +267,4 @@ type TsconfigRawOptions = BindingTsconfigRawOptions;
267
267
  /** @deprecated Use from `rolldown/utils` instead. */
268
268
  type TsconfigCompilerOptions = BindingTsconfigCompilerOptions;
269
269
  //#endregion
270
- export { type BindingClientHmrUpdate, BindingRebuildStrategy, DevEngine, type DevOptions, type DevWatchOptions, type IsolatedDeclarationsOptions, type IsolatedDeclarationsResult, MinifyOptions, MinifyResult, ParseResult, ParserOptions, type NapiResolveOptions as ResolveOptions, type ResolveResult, ResolverFactory, TransformOptions, TransformResult, TsconfigCache, TsconfigCompilerOptions, TsconfigRawOptions, bundleAnalyzerPlugin, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, oxcRuntimePlugin, parse, parseSync, resolveTsconfig, scan, transform, transformSync, viteAliasPlugin, viteBuildImportAnalysisPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWasmFallbackPlugin, viteWebWorkerPostPlugin };
270
+ export { type BindingClientHmrUpdate, BindingRebuildStrategy, DevEngine, type DevOptions, type DevWatchOptions, type IsolatedDeclarationsOptions, type IsolatedDeclarationsResult, MinifyOptions, MinifyResult, ParseResult, ParserOptions, type NapiResolveOptions as ResolveOptions, type ResolveResult, ResolverFactory, TransformOptions, TransformResult, TsconfigCache, TsconfigCompilerOptions, TsconfigRawOptions, bundleAnalyzerPlugin, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, oxcRuntimePlugin, parse, parseSync, resolveTsconfig, scan, transform, transformSync, viteAliasPlugin, viteBuildImportAnalysisPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWebWorkerPostPlugin };
@@ -1,11 +1,11 @@
1
- import { n as __toESM, t as require_binding } from "./shared/binding-qVClobNT.mjs";
2
- import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-BX9p5aGJ.mjs";
3
- import { o as transformToRollupOutput } from "./shared/bindingify-input-options-vF3wMbS6.mjs";
4
- import { c as validateOption, n as createBundlerOptions, t as RolldownBuild, u as PluginDriver } from "./shared/rolldown-build-Btfj7AD8.mjs";
5
- import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-CMKNSs0f.mjs";
6
- import { n as parseSync$1, t as parse$1 } from "./shared/parse-xLFgir3l.mjs";
7
- import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, m as viteWebWorkerPostPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWasmFallbackPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-DoUTwYMk.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-C-MQ8HXt.mjs";
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";
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);
@@ -322,4 +322,4 @@ var ResolverFactory = import_binding.ResolverFactory;
322
322
  var isolatedDeclaration = import_binding.isolatedDeclaration;
323
323
  var isolatedDeclarationSync = import_binding.isolatedDeclarationSync;
324
324
  var moduleRunnerTransform = import_binding.moduleRunnerTransform;
325
- export { BindingRebuildStrategy, DevEngine, ResolverFactory, TsconfigCache, bundleAnalyzerPlugin, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, oxcRuntimePlugin, parse, parseSync, resolveTsconfig, scan, transform, transformSync, viteAliasPlugin, viteBuildImportAnalysisPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWasmFallbackPlugin, viteWebWorkerPostPlugin };
325
+ export { BindingRebuildStrategy, DevEngine, ResolverFactory, TsconfigCache, bundleAnalyzerPlugin, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, oxcRuntimePlugin, parse, parseSync, resolveTsconfig, scan, transform, transformSync, viteAliasPlugin, viteBuildImportAnalysisPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWebWorkerPostPlugin };
@@ -1,6 +1,7 @@
1
- import { N as withFilter } from "./shared/define-config-GlCPZt1X.mjs";
1
+ import { N as withFilter } from "./shared/define-config-DP-RZqh9.mjs";
2
2
 
3
- //#region ../../node_modules/.pnpm/@rolldown+pluginutils@1.0.0/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.d.ts
3
+ //#region ../../node_modules/.pnpm/@rolldown+pluginutils@1.0.1/node_modules/@rolldown/pluginutils/dist/filter/index.d.mts
4
+ //#region src/filter/composable-filters.d.ts
4
5
  type StringOrRegExp = string | RegExp;
5
6
  type PluginModuleType = 'js' | 'jsx' | 'ts' | 'tsx' | 'json' | 'text' | 'base64' | 'dataurl' | 'binary' | 'empty' | (string & {});
6
7
  type FilterExpressionKind = FilterExpression['kind'];
@@ -89,9 +90,8 @@ interface InterpreterCtx {
89
90
  urlSearchParamsCache?: URLSearchParams;
90
91
  }
91
92
  declare function interpreterImpl(expr: TopLevelFilterExpression[], code?: string, id?: string, moduleType?: PluginModuleType, importerId?: string, ctx?: InterpreterCtx): boolean;
92
- declare function exprInterpreter(expr: FilterExpression, code?: string, id?: string, moduleType?: PluginModuleType, importerId?: string, ctx?: InterpreterCtx): boolean;
93
- //#endregion
94
- //#region ../../node_modules/.pnpm/@rolldown+pluginutils@1.0.0/node_modules/@rolldown/pluginutils/dist/filter/filter-vite-plugins.d.ts
93
+ declare function exprInterpreter(expr: FilterExpression, code?: string, id?: string, moduleType?: PluginModuleType, importerId?: string, ctx?: InterpreterCtx): boolean; //#endregion
94
+ //#region src/filter/filter-vite-plugins.d.ts
95
95
  /**
96
96
  * Filters out Vite plugins that have `apply: 'serve'` set.
97
97
  *
@@ -119,9 +119,8 @@ declare function exprInterpreter(expr: FilterExpression, code?: string, id?: str
119
119
  * });
120
120
  * ```
121
121
  */
122
- declare function filterVitePlugins<T = any>(plugins: T | T[] | null | undefined | false): T[];
123
- //#endregion
124
- //#region ../../node_modules/.pnpm/@rolldown+pluginutils@1.0.0/node_modules/@rolldown/pluginutils/dist/filter/simple-filters.d.ts
122
+ declare function filterVitePlugins<T = any>(plugins: T | T[] | null | undefined | false): T[]; //#endregion
123
+ //#region src/filter/simple-filters.d.ts
125
124
  /**
126
125
  * Constructs a RegExp that matches the exact string specified.
127
126
  *
@@ -191,6 +190,6 @@ type WidenString<T> = T extends string ? string : T;
191
190
  */
192
191
  declare function makeIdFiltersToMatchWithQuery<T extends string | RegExp>(input: T): WidenString<T>;
193
192
  declare function makeIdFiltersToMatchWithQuery<T extends string | RegExp>(input: readonly T[]): WidenString<T>[];
194
- declare function makeIdFiltersToMatchWithQuery(input: string | RegExp | readonly (string | RegExp)[]): string | RegExp | (string | RegExp)[];
193
+ declare function makeIdFiltersToMatchWithQuery(input: string | RegExp | readonly (string | RegExp)[]): string | RegExp | (string | RegExp)[]; //#endregion
195
194
  //#endregion
196
195
  export { FilterExpression, FilterExpressionKind, QueryFilterObject, TopLevelFilterExpression, and, code, exactRegex, exclude, exprInterpreter, filterVitePlugins, id, importerId, include, interpreter, interpreterImpl, makeIdFiltersToMatchWithQuery, moduleType, not, or, prefixRegex, queries, query, withFilter };
@@ -1,5 +1,5 @@
1
1
  import { n as isPromiseLike, t as arraify } from "./shared/misc-CoQm4NHO.mjs";
2
- //#region ../../node_modules/.pnpm/@rolldown+pluginutils@1.0.0/node_modules/@rolldown/pluginutils/dist/utils.js
2
+ //#region ../../node_modules/.pnpm/@rolldown+pluginutils@1.0.1/node_modules/@rolldown/pluginutils/dist/filter-B_mD-HGz.mjs
3
3
  const postfixRE = /[?#].*$/;
4
4
  function cleanUrl(url) {
5
5
  return url.replace(postfixRE, "");
@@ -11,8 +11,6 @@ function extractQueryWithoutFragment(url) {
11
11
  if (fragmentIndex === -1) return url.substring(questionMarkIndex);
12
12
  else return url.substring(questionMarkIndex, fragmentIndex);
13
13
  }
14
- //#endregion
15
- //#region ../../node_modules/.pnpm/@rolldown+pluginutils@1.0.0/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.js
16
14
  var And = class {
17
15
  kind;
18
16
  args;
@@ -201,8 +199,6 @@ function exprInterpreter(expr, code, id, moduleType, importerId, ctx = {}) {
201
199
  default: throw new Error(`Expression ${JSON.stringify(expr)} is not expected.`);
202
200
  }
203
201
  }
204
- //#endregion
205
- //#region ../../node_modules/.pnpm/@rolldown+pluginutils@1.0.0/node_modules/@rolldown/pluginutils/dist/filter/filter-vite-plugins.js
206
202
  /**
207
203
  * Filters out Vite plugins that have `apply: 'serve'` set.
208
204
  *
@@ -257,8 +253,6 @@ function filterVitePlugins(plugins) {
257
253
  }
258
254
  return result;
259
255
  }
260
- //#endregion
261
- //#region ../../node_modules/.pnpm/@rolldown+pluginutils@1.0.0/node_modules/@rolldown/pluginutils/dist/filter/simple-filters.js
262
256
  /**
263
257
  * Constructs a RegExp that matches the exact string specified.
264
258
  *
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-BaCZTfMx.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-GlCPZt1X.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";
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-qVClobNT.mjs";
2
- import { n as onExit, t as watch } from "./shared/watch-DWNzY4-Y.mjs";
3
- import { a as RolldownMagicString, b as RUNTIME_MODULE_ID, x as VERSION } from "./shared/bindingify-input-options-vF3wMbS6.mjs";
4
- import { t as rolldown } from "./shared/rolldown-_pvqn7ql.mjs";
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";
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-qVClobNT.mjs";
2
- import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-vF3wMbS6.mjs";
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";
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-GlCPZt1X.mjs";
1
+ import { T as Plugin, Vt as MaybePromise } from "./shared/define-config-DP-RZqh9.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-BaCZTfMx.mjs";
1
+ import { L as ParseResult$1, R as ParserOptions$1 } from "./shared/binding-CQbRhfY2.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-xLFgir3l.mjs";
2
+ import { n as parseSync, t as parse } from "./shared/parse-Dua16Uj5.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-BaCZTfMx.mjs";
2
- import { P as BuiltinPlugin } from "./shared/define-config-GlCPZt1X.mjs";
3
- import { t as esmExternalRequirePlugin } from "./shared/constructors-D8COwUl3.mjs";
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";
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-BX9p5aGJ.mjs";
2
- import { t as esmExternalRequirePlugin } from "./shared/constructors-DoUTwYMk.mjs";
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";
3
3
  //#region src/builtin-plugin/replace-plugin.ts
4
4
  /**
5
5
  * Replaces targeted strings in files while bundling.
@@ -21,7 +21,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
21
21
  value: mod,
22
22
  enumerable: true
23
23
  }) : target, mod));
24
- var __require = /* @__PURE__ */ createRequire(import.meta.url);
24
+ var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
25
25
  //#endregion
26
26
  //#region src/webcontainer-fallback.cjs
27
27
  var require_webcontainer_fallback = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -48,7 +48,7 @@ var require_webcontainer_fallback = /* @__PURE__ */ __commonJSMin(((exports, mod
48
48
  //#endregion
49
49
  //#region src/binding.cjs
50
50
  var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
51
- const { readFileSync } = __require("node:fs");
51
+ const { readFileSync } = __require("fs");
52
52
  let nativeBinding = null;
53
53
  const loadErrors = [];
54
54
  const isMusl = () => {
@@ -70,7 +70,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
70
70
  };
71
71
  const isMuslFromReport = () => {
72
72
  let report = null;
73
- if (typeof process.report?.getReport === "function") {
73
+ if (process.report && typeof process.report.getReport === "function") {
74
74
  process.report.excludeNetwork = true;
75
75
  report = process.report.getReport();
76
76
  }
@@ -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.0" && 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.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
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.`);
107
107
  return binding;
108
108
  } catch (e) {
109
109
  loadErrors.push(e);
@@ -117,13 +117,13 @@ 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.0" && 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.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
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.`);
121
121
  return binding;
122
122
  } catch (e) {
123
123
  loadErrors.push(e);
124
124
  }
125
125
  } else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported architecture on Android ${process.arch}`));
126
- else if (process.platform === "win32") if (process.arch === "x64") if (process.config?.variables?.shlib_suffix === "dll.a" || process.config?.variables?.node_target_type === "shared_library") {
126
+ else if (process.platform === "win32") if (process.arch === "x64") if (process.config && process.config.variables && process.config.variables.shlib_suffix === "dll.a" || process.config && process.config.variables && process.config.variables.node_target_type === "shared_library") {
127
127
  try {
128
128
  return __require("./rolldown-binding.win32-x64-gnu.node");
129
129
  } catch (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.0" && 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.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
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.`);
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.0" && 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.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
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.`);
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.0" && 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.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
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.`);
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.0" && 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.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
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.`);
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.0" && 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.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
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.`);
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.0" && 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.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
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.`);
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.0" && 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.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
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.`);
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.0" && 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.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
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.`);
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.0" && 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.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
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.`);
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.0" && 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.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
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.`);
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.0" && 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.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
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.`);
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.0" && 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.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
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.`);
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.0" && 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.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
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.`);
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.0" && 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.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
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.`);
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.0" && 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.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
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.`);
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.0" && 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.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
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.`);
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.0" && 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.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
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.`);
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.0" && 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.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
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.`);
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.0" && 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.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
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.`);
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.0" && 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.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
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.`);
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.0" && 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.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
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.`);
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.0" && 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.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
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.`);
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.0" && 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.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
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.`);
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.0" && 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.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
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.`);
468
468
  return binding;
469
469
  } catch (e) {
470
470
  loadErrors.push(e);
@@ -505,10 +505,14 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
505
505
  loadErrors.push(err);
506
506
  }
507
507
  if (!nativeBinding) {
508
- if (loadErrors.length > 0) throw new Error("Cannot find native binding. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.", { cause: loadErrors.reduce((err, cur) => {
509
- cur.cause = err;
510
- return cur;
511
- }) });
508
+ if (loadErrors.length > 0) {
509
+ const error = /* @__PURE__ */ new Error("Cannot find native binding. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.");
510
+ error.cause = loadErrors.reduce((err, cur) => {
511
+ cur.cause = err;
512
+ return cur;
513
+ });
514
+ throw error;
515
+ }
512
516
  throw new Error(`Failed to load native binding`);
513
517
  }
514
518
  module.exports = nativeBinding;
@@ -565,6 +569,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
565
569
  module.exports.BindingAttachDebugInfo = nativeBinding.BindingAttachDebugInfo;
566
570
  module.exports.BindingBuiltinPluginName = nativeBinding.BindingBuiltinPluginName;
567
571
  module.exports.BindingChunkModuleOrderBy = nativeBinding.BindingChunkModuleOrderBy;
572
+ module.exports.BindingErrorStage = nativeBinding.BindingErrorStage;
568
573
  module.exports.BindingLogLevel = nativeBinding.BindingLogLevel;
569
574
  module.exports.BindingPluginOrder = nativeBinding.BindingPluginOrder;
570
575
  module.exports.BindingPropertyReadSideEffects = nativeBinding.BindingPropertyReadSideEffects;
@@ -37,7 +37,7 @@ interface CompressOptions {
37
37
  *
38
38
  * @default 'esnext'
39
39
  *
40
- * @see [esbuild#target](https://esbuild.github.io/api/#target)
40
+ * @see [oxc#target](https://oxc.rs/docs/guide/usage/transformer/lowering#target)
41
41
  */
42
42
  target?: string | Array<string>;
43
43
  /**
@@ -1028,7 +1028,10 @@ interface StyledComponentsOptions {
1028
1028
  * Transpiles styled-components tagged template literals to a smaller representation
1029
1029
  * than what Babel normally creates, helping to reduce bundle size.
1030
1030
  *
1031
- * @default true
1031
+ * Disabled by default because Oxc does not down-level template literals, so this
1032
+ * transform only increases output size.
1033
+ *
1034
+ * @default false
1032
1035
  */
1033
1036
  transpileTemplateLiterals?: boolean;
1034
1037
  /**
@@ -1078,6 +1081,13 @@ interface StyledComponentsOptions {
1078
1081
  /**
1079
1082
  * Options for transforming a JavaScript or TypeScript file.
1080
1083
  *
1084
+ * Options are listed in evaluation order: the source is parsed (`lang`,
1085
+ * `sourceType`), declarations are emitted (`typescript.declaration`), then
1086
+ * transforms run (`typescript`, `decorator`, `plugins`,
1087
+ * `jsx`, `target`), followed by the `inject` and `define` plugins, and
1088
+ * finally codegen (`sourcemap`). `helpers` configures the runtime helpers
1089
+ * the transforms emit.
1090
+ *
1081
1091
  * @see {@link transform}
1082
1092
  */
1083
1093
  interface TransformOptions {
@@ -1090,23 +1100,23 @@ interface TransformOptions {
1090
1100
  * options.
1091
1101
  */
1092
1102
  cwd?: string;
1093
- /**
1094
- * Enable source map generation.
1095
- *
1096
- * When `true`, the `sourceMap` field of transform result objects will be populated.
1097
- *
1098
- * @default false
1099
- *
1100
- * @see {@link SourceMap}
1101
- */
1102
- sourcemap?: boolean;
1103
1103
  /** Set assumptions in order to produce smaller output. */
1104
1104
  assumptions?: CompilerAssumptions;
1105
1105
  /**
1106
1106
  * Configure how TypeScript is transformed.
1107
+ *
1108
+ * `typescript.declaration` is evaluated before all transforms.
1109
+ *
1107
1110
  * @see {@link https://oxc.rs/docs/guide/usage/transformer/typescript}
1108
1111
  */
1109
1112
  typescript?: TypeScriptOptions;
1113
+ /** Decorator plugin */
1114
+ decorator?: DecoratorOptions;
1115
+ /**
1116
+ * Third-party plugins to use.
1117
+ * @see {@link https://oxc.rs/docs/guide/usage/transformer/plugins}
1118
+ */
1119
+ plugins?: PluginsOptions;
1110
1120
  /**
1111
1121
  * Configure how TSX and JSX are transformed.
1112
1122
  * @see {@link https://oxc.rs/docs/guide/usage/transformer/jsx}
@@ -1129,23 +1139,32 @@ interface TransformOptions {
1129
1139
  target?: string | Array<string>;
1130
1140
  /** Behaviour for runtime helpers. */
1131
1141
  helpers?: Helpers;
1132
- /**
1133
- * Define Plugin
1134
- * @see {@link https://oxc.rs/docs/guide/usage/transformer/global-variable-replacement#define}
1135
- */
1136
- define?: Record<string, string>;
1137
1142
  /**
1138
1143
  * Inject Plugin
1144
+ *
1145
+ * Runs after all transforms.
1146
+ *
1139
1147
  * @see {@link https://oxc.rs/docs/guide/usage/transformer/global-variable-replacement#inject}
1140
1148
  */
1141
1149
  inject?: Record<string, string | [string, string]>;
1142
- /** Decorator plugin */
1143
- decorator?: DecoratorOptions;
1144
1150
  /**
1145
- * Third-party plugins to use.
1146
- * @see {@link https://oxc.rs/docs/guide/usage/transformer/plugins}
1151
+ * Define Plugin
1152
+ *
1153
+ * Runs after the inject plugin.
1154
+ *
1155
+ * @see {@link https://oxc.rs/docs/guide/usage/transformer/global-variable-replacement#define}
1147
1156
  */
1148
- plugins?: PluginsOptions;
1157
+ define?: Record<string, string>;
1158
+ /**
1159
+ * Enable source map generation.
1160
+ *
1161
+ * When `true`, the `sourceMap` field of transform result objects will be populated.
1162
+ *
1163
+ * @default false
1164
+ *
1165
+ * @see {@link SourceMap}
1166
+ */
1167
+ sourcemap?: boolean;
1149
1168
  }
1150
1169
  interface TypeScriptOptions {
1151
1170
  jsxPragma?: string;
@@ -1439,7 +1458,7 @@ declare class TsconfigCache {
1439
1458
  /** Get the number of cached entries. */
1440
1459
  size(): number;
1441
1460
  }
1442
- type BindingBuiltinPluginName = 'builtin:bundle-analyzer' | 'builtin:esm-external-require' | 'builtin:isolated-declaration' | 'builtin:replace' | 'builtin:vite-alias' | 'builtin:vite-build-import-analysis' | 'builtin:vite-dynamic-import-vars' | 'builtin:vite-import-glob' | 'builtin:vite-json' | 'builtin:vite-load-fallback' | 'builtin:vite-manifest' | 'builtin:vite-module-preload-polyfill' | 'builtin:vite-react-refresh-wrapper' | 'builtin:vite-reporter' | 'builtin:vite-resolve' | 'builtin:vite-transform' | 'builtin:vite-wasm-fallback' | 'builtin:vite-web-worker-post' | 'builtin:oxc-runtime';
1461
+ type BindingBuiltinPluginName = 'builtin:bundle-analyzer' | 'builtin:esm-external-require' | 'builtin:isolated-declaration' | 'builtin:replace' | 'builtin:vite-alias' | 'builtin:vite-build-import-analysis' | 'builtin:vite-dynamic-import-vars' | 'builtin:vite-import-glob' | 'builtin:vite-json' | 'builtin:vite-load-fallback' | 'builtin:vite-manifest' | 'builtin:vite-module-preload-polyfill' | 'builtin:vite-react-refresh-wrapper' | 'builtin:vite-reporter' | 'builtin:vite-resolve' | 'builtin:vite-transform' | 'builtin:vite-web-worker-post' | 'builtin:oxc-runtime';
1443
1462
  interface BindingBundleAnalyzerPluginConfig {
1444
1463
  /** Output filename for the bundle analysis data (default: "analyze-data.json") */
1445
1464
  fileName?: string;
@@ -1447,7 +1466,16 @@ interface BindingBundleAnalyzerPluginConfig {
1447
1466
  format?: 'json' | 'md';
1448
1467
  }
1449
1468
  interface BindingBundleState {
1450
- lastFullBuildFailed: boolean;
1469
+ lastBuildErrored: boolean;
1470
+ /**
1471
+ * The stage of the last incremental failure, when `last_build_errored`
1472
+ * is true and the engine is in an incremental-failure state. Absent on
1473
+ * success and for an initial full-build failure (use
1474
+ * `last_build_errored` to detect that). The consumer can force a full
1475
+ * rebuild on the next page load when this is `Hmr`. See
1476
+ * `internal-docs/dev-engine/implementation.md` §12.
1477
+ */
1478
+ lastErrorStage?: BindingErrorStage;
1451
1479
  hasStaleOutput: boolean;
1452
1480
  }
1453
1481
  interface BindingClientHmrUpdate {
@@ -1609,6 +1637,16 @@ type BindingError = {
1609
1637
  type: 'NativeError';
1610
1638
  field0: NativeError;
1611
1639
  };
1640
+ /**
1641
+ * Which stage of an incremental dev build produced the last error.
1642
+ *
1643
+ * Mirrors `rolldown_dev::ErrorStage`. Surfaced on
1644
+ * [`crate::binding_dev_engine::BindingBundleState`] so the consumer can
1645
+ * treat an `Hmr`-stage failure as recoverable by forcing a full rebuild
1646
+ * on the next page load (HMR generation may itself be buggy). See
1647
+ * `internal-docs/dev-engine/implementation.md` §12.
1648
+ */
1649
+ type BindingErrorStage = 'Hmr' | 'Rebuild';
1612
1650
  interface BindingEsmExternalRequirePluginConfig {
1613
1651
  external: Array<BindingStringOrRegex>;
1614
1652
  skipDuplicateCheck?: boolean;
@@ -1756,6 +1794,13 @@ interface BindingTsconfigCompilerOptions {
1756
1794
  experimentalDecorators?: boolean;
1757
1795
  /** Enables decorator metadata emission. */
1758
1796
  emitDecoratorMetadata?: boolean;
1797
+ /** Enables all strict type-checking options. Used as the fallback for `strictNullChecks`. */
1798
+ strict?: boolean;
1799
+ /**
1800
+ * Enables strict null checks. Controls whether `null`/`undefined` are elided from
1801
+ * nullable-union `design:type` decorator metadata.
1802
+ */
1803
+ strictNullChecks?: boolean;
1759
1804
  /** Preserves module structure of imports/exports. */
1760
1805
  verbatimModuleSyntax?: boolean;
1761
1806
  /** Configures how class fields are emitted. */
@@ -1,14 +1,14 @@
1
- import { n as __toESM, t as require_binding } from "./binding-qVClobNT.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-BxaeY8HI.mjs";
2
2
  import { a as logInvalidLogPosition, c as logPluginError, n as error, r as logCycleLoading, t as augmentCodeLocation } from "./logs-aMKUxRpj.mjs";
3
- import { i as bindingifyManifestPlugin, n as BuiltinPlugin, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-BX9p5aGJ.mjs";
3
+ import { i as bindingifyManifestPlugin, n as BuiltinPlugin, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-CUtNDnr8.mjs";
4
4
  import { a as unreachable, o as unsupported, r as noop, t as arraify } from "./misc-CoQm4NHO.mjs";
5
- import { a as bindingifySourcemap, i as unwrapBindingResult, t as aggregateBindingErrorsIntoJsError } from "./error-CMKNSs0f.mjs";
5
+ import { a as bindingifySourcemap, i as unwrapBindingResult, t as aggregateBindingErrorsIntoJsError } from "./error-T-E9reEy.mjs";
6
6
  import { parseAst } from "../parse-ast-index.mjs";
7
7
  import path from "node:path";
8
8
  import * as filter from "@rolldown/pluginutils";
9
9
  import fsp from "node:fs/promises";
10
10
  //#region package.json
11
- var version = "1.1.0";
11
+ var version = "1.1.2";
12
12
  var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
13
13
  //#endregion
14
14
  //#region src/constants/version.ts
@@ -219,7 +219,7 @@ function bindingAssetSource(source) {
219
219
  return { inner: source };
220
220
  }
221
221
  //#endregion
222
- //#region \0@oxc-project+runtime@0.134.0/helpers/esm/decorate.js
222
+ //#region \0@oxc-project+runtime@0.137.0/helpers/esm/decorate.js
223
223
  function __decorate(decorators, target, key, desc) {
224
224
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
225
225
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -674,7 +674,7 @@ function normalizeTransformHookSourcemap(id, originalCode, rawMap) {
674
674
  return map;
675
675
  }
676
676
  //#endregion
677
- //#region ../../node_modules/.pnpm/remeda@2.34.1/node_modules/remeda/dist/lazyDataLastImpl-DtF3cihj.js
677
+ //#region ../../node_modules/.pnpm/remeda@2.39.0/node_modules/remeda/dist/lazyDataLastImpl--3B10z3s.js
678
678
  function e(e, t, n) {
679
679
  let r = (n) => e(n, ...t);
680
680
  return n === void 0 ? r : Object.assign(r, {
@@ -683,7 +683,7 @@ function e(e, t, n) {
683
683
  });
684
684
  }
685
685
  //#endregion
686
- //#region ../../node_modules/.pnpm/remeda@2.34.1/node_modules/remeda/dist/purry.js
686
+ //#region ../../node_modules/.pnpm/remeda@2.39.0/node_modules/remeda/dist/purry.js
687
687
  function t$1(t, n, r) {
688
688
  let i = t.length - n.length;
689
689
  if (i === 0) return t(...n);
@@ -691,7 +691,7 @@ function t$1(t, n, r) {
691
691
  throw Error(`Wrong number of arguments`);
692
692
  }
693
693
  //#endregion
694
- //#region ../../node_modules/.pnpm/remeda@2.34.1/node_modules/remeda/dist/partition.js
694
+ //#region ../../node_modules/.pnpm/remeda@2.39.0/node_modules/remeda/dist/partition.js
695
695
  function t(...t) {
696
696
  return t$1(n, t);
697
697
  }
@@ -1,4 +1,4 @@
1
- import { a as makeBuiltinPluginCallable, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-BX9p5aGJ.mjs";
1
+ import { a as makeBuiltinPluginCallable, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-CUtNDnr8.mjs";
2
2
  //#region src/builtin-plugin/constructors.ts
3
3
  function viteModulePreloadPolyfillPlugin(config) {
4
4
  return new BuiltinPlugin("builtin:vite-module-preload-polyfill", config);
@@ -16,9 +16,6 @@ function viteImportGlobPlugin(config) {
16
16
  function viteReporterPlugin(config) {
17
17
  return new BuiltinPlugin("builtin:vite-reporter", config);
18
18
  }
19
- function viteWasmFallbackPlugin() {
20
- return makeBuiltinPluginCallable(new BuiltinPlugin("builtin:vite-wasm-fallback"));
21
- }
22
19
  function viteLoadFallbackPlugin() {
23
20
  return new BuiltinPlugin("builtin:vite-load-fallback");
24
21
  }
@@ -65,4 +62,4 @@ function viteReactRefreshWrapperPlugin(config) {
65
62
  return makeBuiltinPluginCallable(new BuiltinPlugin("builtin:vite-react-refresh-wrapper", config));
66
63
  }
67
64
  //#endregion
68
- export { viteDynamicImportVarsPlugin as a, viteLoadFallbackPlugin as c, viteReporterPlugin as d, viteResolvePlugin as f, viteBuildImportAnalysisPlugin as i, viteModulePreloadPolyfillPlugin as l, viteWebWorkerPostPlugin as m, isolatedDeclarationPlugin as n, viteImportGlobPlugin as o, viteWasmFallbackPlugin as p, oxcRuntimePlugin as r, viteJsonPlugin as s, esmExternalRequirePlugin as t, viteReactRefreshWrapperPlugin as u };
65
+ export { viteDynamicImportVarsPlugin as a, viteLoadFallbackPlugin as c, viteReporterPlugin as d, viteResolvePlugin as f, viteBuildImportAnalysisPlugin as i, viteModulePreloadPolyfillPlugin as l, isolatedDeclarationPlugin as n, viteImportGlobPlugin as o, viteWebWorkerPostPlugin as p, oxcRuntimePlugin as r, viteJsonPlugin as s, esmExternalRequirePlugin as t, viteReactRefreshWrapperPlugin as u };
@@ -1,5 +1,5 @@
1
- import { D as BindingViteResolvePluginConfig, E as BindingViteReporterPluginConfig, S as BindingViteJsonPluginConfig, T as BindingViteReactRefreshWrapperPluginConfig, b as BindingViteDynamicImportVarsPluginConfig, l as BindingIsolatedDeclarationPluginConfig, s as BindingEsmExternalRequirePluginConfig, w as BindingViteModulePreloadPolyfillPluginConfig, x as BindingViteImportGlobPluginConfig, y as BindingViteBuildImportAnalysisPluginConfig } from "./binding-BaCZTfMx.mjs";
2
- import { P as BuiltinPlugin, Ut as StringOrRegExp } from "./define-config-GlCPZt1X.mjs";
1
+ import { D as BindingViteResolvePluginConfig, E as BindingViteReporterPluginConfig, S as BindingViteJsonPluginConfig, T as BindingViteReactRefreshWrapperPluginConfig, b as BindingViteDynamicImportVarsPluginConfig, l as BindingIsolatedDeclarationPluginConfig, s as BindingEsmExternalRequirePluginConfig, w as BindingViteModulePreloadPolyfillPluginConfig, x as BindingViteImportGlobPluginConfig, y as BindingViteBuildImportAnalysisPluginConfig } from "./binding-CQbRhfY2.mjs";
2
+ import { P as BuiltinPlugin, Ut as StringOrRegExp } from "./define-config-DP-RZqh9.mjs";
3
3
 
4
4
  //#region src/builtin-plugin/constructors.d.ts
5
5
  declare function viteModulePreloadPolyfillPlugin(config?: BindingViteModulePreloadPolyfillPluginConfig): BuiltinPlugin;
@@ -10,7 +10,6 @@ type DynamicImportVarsPluginConfig = Omit<BindingViteDynamicImportVarsPluginConf
10
10
  declare function viteDynamicImportVarsPlugin(config?: DynamicImportVarsPluginConfig): BuiltinPlugin;
11
11
  declare function viteImportGlobPlugin(config?: BindingViteImportGlobPluginConfig): BuiltinPlugin;
12
12
  declare function viteReporterPlugin(config: BindingViteReporterPluginConfig): BuiltinPlugin;
13
- declare function viteWasmFallbackPlugin(): BuiltinPlugin;
14
13
  declare function viteLoadFallbackPlugin(): BuiltinPlugin;
15
14
  declare function viteJsonPlugin(config: BindingViteJsonPluginConfig): BuiltinPlugin;
16
15
  declare function viteBuildImportAnalysisPlugin(config: BindingViteBuildImportAnalysisPluginConfig): BuiltinPlugin;
@@ -34,4 +33,4 @@ type ViteReactRefreshWrapperPluginConfig = Omit<BindingViteReactRefreshWrapperPl
34
33
  declare function oxcRuntimePlugin(): BuiltinPlugin;
35
34
  declare function viteReactRefreshWrapperPlugin(config: ViteReactRefreshWrapperPluginConfig): BuiltinPlugin;
36
35
  //#endregion
37
- export { viteDynamicImportVarsPlugin as a, viteLoadFallbackPlugin as c, viteReporterPlugin as d, viteResolvePlugin as f, viteBuildImportAnalysisPlugin as i, viteModulePreloadPolyfillPlugin as l, viteWebWorkerPostPlugin as m, isolatedDeclarationPlugin as n, viteImportGlobPlugin as o, viteWasmFallbackPlugin as p, oxcRuntimePlugin as r, viteJsonPlugin as s, esmExternalRequirePlugin as t, viteReactRefreshWrapperPlugin as u };
36
+ export { viteDynamicImportVarsPlugin as a, viteLoadFallbackPlugin as c, viteReporterPlugin as d, viteResolvePlugin as f, viteBuildImportAnalysisPlugin as i, viteModulePreloadPolyfillPlugin as l, isolatedDeclarationPlugin as n, viteImportGlobPlugin as o, viteWebWorkerPostPlugin as p, oxcRuntimePlugin as r, viteJsonPlugin as s, esmExternalRequirePlugin as t, viteReactRefreshWrapperPlugin as u };
@@ -1,5 +1,5 @@
1
1
  import { a as RolldownLog, i as RolldownError, n as LogLevelOption, o as RolldownLogWithString, r as LogOrStringHandler, t as LogLevel } from "./logging-BSNejiLS.mjs";
2
- import { A as ExternalMemoryStatus, N as JsxOptions, P as MinifyOptions$1, R as ParserOptions, U as TransformOptions$1, c as BindingHookResolveIdExtraArgs, d as BindingPluginContextResolveOptions, h as BindingTransformHookExtraArgs, k as BindingWatcherBundler, p as BindingRenderedChunk, t as BindingBuiltinPluginName, u as BindingMagicString, z as PreRenderedChunk } from "./binding-BaCZTfMx.mjs";
2
+ import { A as ExternalMemoryStatus, N as JsxOptions, P as MinifyOptions$1, R as ParserOptions, U as TransformOptions$1, c as BindingHookResolveIdExtraArgs, d as BindingPluginContextResolveOptions, h as BindingTransformHookExtraArgs, k as BindingWatcherBundler, p as BindingRenderedChunk, t as BindingBuiltinPluginName, u as BindingMagicString, z as PreRenderedChunk } from "./binding-CQbRhfY2.mjs";
3
3
  import { TopLevelFilterExpression } from "@rolldown/pluginutils";
4
4
  import { Program } from "@oxc-project/types";
5
5
 
@@ -1,4 +1,4 @@
1
- import { t as require_binding } from "./binding-qVClobNT.mjs";
1
+ import { t as require_binding } from "./binding-BxaeY8HI.mjs";
2
2
  //#region src/types/sourcemap.ts
3
3
  function bindingifySourcemap(map) {
4
4
  if (map == null) return;
@@ -1,4 +1,4 @@
1
- import { t as rolldown } from "./rolldown-_pvqn7ql.mjs";
1
+ import { t as rolldown } from "./rolldown-DhOK2ys6.mjs";
2
2
  import fs from "node:fs";
3
3
  import path from "node:path";
4
4
  import { readdir } from "node:fs/promises";
@@ -1,4 +1,4 @@
1
- import { n as __toESM, t as require_binding } from "./binding-qVClobNT.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-BxaeY8HI.mjs";
2
2
  import { c as logPluginError, n as error } from "./logs-aMKUxRpj.mjs";
3
3
  //#region src/builtin-plugin/utils.ts
4
4
  var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
@@ -1,5 +1,5 @@
1
- import { n as __toESM, t as require_binding } from "./binding-qVClobNT.mjs";
2
- //#region ../../node_modules/.pnpm/oxc-parser@0.134.0/node_modules/oxc-parser/src-js/wrap.js
1
+ import { n as __toESM, t as require_binding } from "./binding-BxaeY8HI.mjs";
2
+ //#region ../../node_modules/.pnpm/oxc-parser@0.137.0/node_modules/oxc-parser/src-js/wrap.js
3
3
  var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
4
4
  function wrap(result) {
5
5
  let program, module, comments, errors;
@@ -1,4 +1,4 @@
1
- import process$1, { stdin, stdout } from "node:process";
1
+ import g$1, { stdin, stdout } from "node:process";
2
2
  import { WriteStream } from "node:tty";
3
3
  import f from "node:readline";
4
4
  //#region ../../node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/chunks/prompt.mjs
@@ -331,7 +331,7 @@ function sD() {
331
331
  }
332
332
  }), r;
333
333
  }
334
- const iD = sD(), v = new Set(["\x1B", "›"]), CD = 39, w$1 = "\x07", W$1 = "[", rD = "]", R = "m", y = `${rD}8;;`, V$1 = (t) => `${v.values().next().value}${W$1}${t}${R}`, z = (t) => `${v.values().next().value}${y}${t}${w$1}`, ED = (t) => t.split(" ").map((u) => A$1(u)), _ = (t, u, F) => {
334
+ const iD = sD(), v = /* @__PURE__ */ new Set(["\x1B", "›"]), CD = 39, w$1 = "\x07", W$1 = "[", rD = "]", R = "m", y = `${rD}8;;`, V$1 = (t) => `${v.values().next().value}${W$1}${t}${R}`, z = (t) => `${v.values().next().value}${y}${t}${w$1}`, ED = (t) => t.split(" ").map((u) => A$1(u)), _ = (t, u, F) => {
335
335
  const e = [...u];
336
336
  let s = false, i = false, D = A$1(T$1(t[t.length - 1]));
337
337
  for (const [C, o] of e.entries()) {
@@ -399,7 +399,7 @@ function G(t, u, F) {
399
399
  `);
400
400
  }
401
401
  const c = {
402
- actions: new Set([
402
+ actions: /* @__PURE__ */ new Set([
403
403
  "up",
404
404
  "down",
405
405
  "left",
@@ -408,7 +408,7 @@ const c = {
408
408
  "enter",
409
409
  "cancel"
410
410
  ]),
411
- aliases: new Map([
411
+ aliases: /* @__PURE__ */ new Map([
412
412
  ["k", "up"],
413
413
  ["j", "down"],
414
414
  ["h", "left"],
@@ -646,7 +646,7 @@ var PD = class extends x {
646
646
  }
647
647
  };
648
648
  function ce() {
649
- return process$1.platform !== "win32" ? process$1.env.TERM !== "linux" : !!process$1.env.CI || !!process$1.env.WT_SESSION || !!process$1.env.TERMINUS_SUBLIME || process$1.env.ConEmuTask === "{cmd::Cmder}" || process$1.env.TERM_PROGRAM === "Terminus-Sublime" || process$1.env.TERM_PROGRAM === "vscode" || process$1.env.TERM === "xterm-256color" || process$1.env.TERM === "alacritty" || process$1.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
649
+ return g$1.platform !== "win32" ? g$1.env.TERM !== "linux" : !!g$1.env.CI || !!g$1.env.WT_SESSION || !!g$1.env.TERMINUS_SUBLIME || g$1.env.ConEmuTask === "{cmd::Cmder}" || g$1.env.TERM_PROGRAM === "Terminus-Sublime" || g$1.env.TERM_PROGRAM === "vscode" || g$1.env.TERM === "xterm-256color" || g$1.env.TERM === "alacritty" || g$1.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
650
650
  }
651
651
  const V = ce(), u = (t, n) => V ? t : n, le = u("❯", ">"), L = u("■", "x"), W = u("▲", "x"), C = u("✔", "√"), o = u(""), d = u(""), k = u("●", ">"), P = u("○", " "), A = u("◻", "[•]"), T = u("◼", "[+]"), F = u("◻", "[ ]"), w = (t) => {
652
652
  switch (t) {
@@ -1,5 +1,5 @@
1
- import { n as __toESM, t as require_binding } from "./binding-qVClobNT.mjs";
2
- import { a as bindingifySourcemap, n as normalizeBindingError } from "./error-CMKNSs0f.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-BxaeY8HI.mjs";
2
+ import { a as bindingifySourcemap, n as normalizeBindingError } from "./error-T-E9reEy.mjs";
3
3
  //#region src/utils/minify.ts
4
4
  var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { c as validateOption, t as RolldownBuild, u as PluginDriver } from "./rolldown-build-Btfj7AD8.mjs";
1
+ import { c as validateOption, t as RolldownBuild, u as PluginDriver } from "./rolldown-build-DDMH4mGm.mjs";
2
2
  //#region src/api/rolldown/index.ts
3
3
  /**
4
4
  * The API compatible with Rollup's `rollup` function.
@@ -1,13 +1,13 @@
1
- import { n as __toESM, t as require_binding } from "./binding-qVClobNT.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-BxaeY8HI.mjs";
2
2
  import { i as logInputHookInOutputPlugin, n as error } from "./logs-aMKUxRpj.mjs";
3
- import { n as BuiltinPlugin } from "./normalize-string-or-regex-BX9p5aGJ.mjs";
4
- import { c as __decorate, d as PlainObjectLike, f as MinimalPluginContextImpl, h as LOG_LEVEL_DEBUG, i as transformModuleInfo, l as transformAssetSource, m as normalizeLog, o as transformToRollupOutput, p as normalizeHook, s as transformRenderedChunk, t as bindingifyInputOptions, u as lazyProp, v as LOG_LEVEL_WARN, x as VERSION, y as logLevelPriority } from "./bindingify-input-options-vF3wMbS6.mjs";
3
+ import { n as BuiltinPlugin } from "./normalize-string-or-regex-CUtNDnr8.mjs";
4
+ import { c as __decorate, d as PlainObjectLike, f as MinimalPluginContextImpl, h as LOG_LEVEL_DEBUG, i as transformModuleInfo, l as transformAssetSource, m as normalizeLog, o as transformToRollupOutput, p as normalizeHook, s as transformRenderedChunk, t as bindingifyInputOptions, u as lazyProp, v as LOG_LEVEL_WARN, x as VERSION, y as logLevelPriority } from "./bindingify-input-options-AEyVBGgK.mjs";
5
5
  import { i as unimplemented } from "./misc-CoQm4NHO.mjs";
6
- import { i as unwrapBindingResult } from "./error-CMKNSs0f.mjs";
6
+ import { i as unwrapBindingResult } from "./error-T-E9reEy.mjs";
7
7
  import { Worker } from "node:worker_threads";
8
8
  import path, { sep } from "node:path";
9
9
  import { formatWithOptions, styleText } from "node:util";
10
- import process$1 from "node:process";
10
+ import g$1 from "node:process";
11
11
  import * as tty from "node:tty";
12
12
  import os from "node:os";
13
13
  //#region src/log/logger.ts
@@ -2780,9 +2780,9 @@ function stringWidth$1(string, options = {}) {
2780
2780
  return width;
2781
2781
  }
2782
2782
  function isUnicodeSupported() {
2783
- const { env } = process$1;
2783
+ const { env } = g$1;
2784
2784
  const { TERM, TERM_PROGRAM } = env;
2785
- if (process$1.platform !== "win32") return TERM !== "linux";
2785
+ if (g$1.platform !== "win32") return TERM !== "linux";
2786
2786
  return Boolean(env.WT_SESSION) || Boolean(env.TERMINUS_SUBLIME) || env.ConEmuTask === "{cmd::Cmder}" || TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
2787
2787
  }
2788
2788
  const TYPE_COLOR_MAP = {
@@ -2869,7 +2869,7 @@ function createConsola(options = {}) {
2869
2869
  defaults: { level },
2870
2870
  stdout: process.stdout,
2871
2871
  stderr: process.stderr,
2872
- prompt: (...args) => import("./prompt-DYnaB1Nb.mjs").then((m) => m.prompt(...args)),
2872
+ prompt: (...args) => import("./prompt-B1Yc1NPt.mjs").then((m) => m.prompt(...args)),
2873
2873
  reporters: options.reporters || [options.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()],
2874
2874
  ...options
2875
2875
  });
@@ -3039,6 +3039,10 @@ function bindingifyCodeSplitting(codeSplitting, inlineDynamicImportsOption, adva
3039
3039
  else if (manualChunks != null) effectiveChunksOption = { groups: [{ name(moduleId, ctx) {
3040
3040
  return manualChunks(moduleId, { getModuleInfo: (id) => ctx.getModuleInfo(id) });
3041
3041
  } }] };
3042
+ if (inlineDynamicImports === true && effectiveChunksOption != null) {
3043
+ logger.warn("`advancedChunks` option is ignored because `inlineDynamicImports: true` disables code splitting.");
3044
+ effectiveChunksOption = void 0;
3045
+ }
3042
3046
  let advancedChunksResult;
3043
3047
  if (effectiveChunksOption != null) {
3044
3048
  const { groups, ...restOptions } = effectiveChunksOption;
@@ -1,5 +1,5 @@
1
1
  import { a as RolldownLog } from "./logging-BSNejiLS.mjs";
2
- import { F as MinifyResult$1, H as SourceMap, L as ParseResult$1, P as MinifyOptions$1, R as ParserOptions$1, W as TsconfigCache$1, a as BindingEnhancedTransformOptions, o as BindingEnhancedTransformResult, v as BindingTsconfigResult } from "./binding-BaCZTfMx.mjs";
2
+ import { F as MinifyResult$1, H as SourceMap, L as ParseResult$1, P as MinifyOptions$1, R as ParserOptions$1, W as TsconfigCache$1, a as BindingEnhancedTransformOptions, o as BindingEnhancedTransformResult, v as BindingTsconfigResult } from "./binding-CQbRhfY2.mjs";
3
3
 
4
4
  //#region src/utils/resolve-tsconfig.d.ts
5
5
  /**
@@ -1,9 +1,9 @@
1
- import { n as __toESM, t as require_binding } from "./binding-qVClobNT.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-BxaeY8HI.mjs";
2
2
  import { o as logMultipleWatcherOption } from "./logs-aMKUxRpj.mjs";
3
- import { v as LOG_LEVEL_WARN } from "./bindingify-input-options-vF3wMbS6.mjs";
3
+ import { v as LOG_LEVEL_WARN } from "./bindingify-input-options-AEyVBGgK.mjs";
4
4
  import { t as arraify } from "./misc-CoQm4NHO.mjs";
5
- import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-Btfj7AD8.mjs";
6
- import { t as aggregateBindingErrorsIntoJsError } from "./error-CMKNSs0f.mjs";
5
+ import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-DDMH4mGm.mjs";
6
+ import { t as aggregateBindingErrorsIntoJsError } from "./error-T-E9reEy.mjs";
7
7
  //#region ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
8
8
  /**
9
9
  * This is not the set of all possible signals.
@@ -1,9 +1,9 @@
1
- import { _ as BindingTsconfigRawOptions, g as BindingTsconfigCompilerOptions } from "./shared/binding-BaCZTfMx.mjs";
2
- import { a as MinifyOptions, c as minifySync, d as parse, f as parseSync, i as transformSync, l as ParseResult, n as TransformResult, o as MinifyResult, p as TsconfigCache, r as transform, s as minify, t as TransformOptions, u as ParserOptions } from "./shared/transform-7xCUVrpL.mjs";
1
+ import { _ as BindingTsconfigRawOptions, g as BindingTsconfigCompilerOptions } from "./shared/binding-CQbRhfY2.mjs";
2
+ import { a as MinifyOptions, c as minifySync, d as parse, f as parseSync, i as transformSync, l as ParseResult, n as TransformResult, o as MinifyResult, p as TsconfigCache, r as transform, s as minify, t as TransformOptions, u as ParserOptions } from "./shared/transform-n2APpHoz.mjs";
3
3
  import * as ESTree from "@oxc-project/types";
4
4
  import { Program } from "@oxc-project/types";
5
5
 
6
- //#region ../../node_modules/.pnpm/oxc-parser@0.134.0/node_modules/oxc-parser/src-js/generated/visit/visitor.d.ts
6
+ //#region ../../node_modules/.pnpm/oxc-parser@0.137.0/node_modules/oxc-parser/src-js/generated/visit/visitor.d.ts
7
7
  interface VisitorObject$1 {
8
8
  DebuggerStatement?: (node: ESTree.DebuggerStatement) => void;
9
9
  "DebuggerStatement:exit"?: (node: ESTree.DebuggerStatement) => void;
@@ -1,6 +1,6 @@
1
- import { n as parseSync, t as parse } from "./shared/parse-xLFgir3l.mjs";
2
- import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-C-MQ8HXt.mjs";
3
- //#region ../../node_modules/.pnpm/oxc-parser@0.134.0/node_modules/oxc-parser/src-js/generated/visit/walk.js
1
+ import { n as parseSync, t as parse } from "./shared/parse-Dua16Uj5.mjs";
2
+ import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-RM2pJApc.mjs";
3
+ //#region ../../node_modules/.pnpm/oxc-parser@0.137.0/node_modules/oxc-parser/src-js/generated/visit/walk.js
4
4
  function walkNode(node, visitors) {
5
5
  if (node == null) return;
6
6
  if (Array.isArray(node)) {
@@ -2010,9 +2010,9 @@ function walkTSUnionType(node, visitors) {
2010
2010
  exit !== null && exit(node);
2011
2011
  }
2012
2012
  //#endregion
2013
- //#region ../../node_modules/.pnpm/oxc-parser@0.134.0/node_modules/oxc-parser/src-js/generated/visit/type_ids.js
2013
+ //#region ../../node_modules/.pnpm/oxc-parser@0.137.0/node_modules/oxc-parser/src-js/generated/visit/type_ids.js
2014
2014
  /** Mapping from node type name to node type ID */
2015
- const NODE_TYPE_IDS_MAP = new Map([
2015
+ const NODE_TYPE_IDS_MAP = /* @__PURE__ */ new Map([
2016
2016
  ["DebuggerStatement", 0],
2017
2017
  ["EmptyStatement", 1],
2018
2018
  ["Literal", 2],
@@ -2180,7 +2180,7 @@ const NODE_TYPE_IDS_MAP = new Map([
2180
2180
  ["TSUnionType", 164]
2181
2181
  ]);
2182
2182
  //#endregion
2183
- //#region ../../node_modules/.pnpm/oxc-parser@0.134.0/node_modules/oxc-parser/src-js/visit/visitor.js
2183
+ //#region ../../node_modules/.pnpm/oxc-parser@0.137.0/node_modules/oxc-parser/src-js/visit/visitor.js
2184
2184
  let compiledVisitor;
2185
2185
  function createCompiledVisitor() {
2186
2186
  compiledVisitor = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rolldown",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
5
5
  "keywords": [
6
6
  "bundler",
@@ -53,12 +53,12 @@
53
53
  "registry": "https://registry.npmjs.org/"
54
54
  },
55
55
  "dependencies": {
56
- "@oxc-project/types": "=0.134.0",
56
+ "@oxc-project/types": "=0.137.0",
57
57
  "@rolldown/pluginutils": "^1.0.0"
58
58
  },
59
59
  "devDependencies": {
60
- "@napi-rs/cli": "^3.6.1",
61
- "@napi-rs/wasm-runtime": "^1.1.4",
60
+ "@napi-rs/cli": "^3.7.2",
61
+ "@napi-rs/wasm-runtime": "^1.1.5",
62
62
  "@oxc-node/cli": "^0.1.0",
63
63
  "@rollup/plugin-json": "^6.1.0",
64
64
  "buble": "^0.20.0",
@@ -66,16 +66,16 @@
66
66
  "consola": "^3.4.2",
67
67
  "execa": "^9.2.0",
68
68
  "glob": "^13.0.0",
69
- "oxc-parser": "=0.134.0",
69
+ "oxc-parser": "=0.137.0",
70
70
  "pathe": "^2.0.3",
71
71
  "remeda": "^2.34.1",
72
- "rolldown-plugin-dts": "^0.25.1",
72
+ "rolldown-plugin-dts": "^0.25.2",
73
73
  "rollup": "^4.60.4",
74
74
  "signal-exit": "4.1.0",
75
75
  "source-map": "0.7.6",
76
76
  "typescript": "^6.0.0",
77
77
  "valibot": "1.4.1",
78
- "rolldown": "1.1.0"
78
+ "rolldown": "1.1.2"
79
79
  },
80
80
  "napi": {
81
81
  "binaryName": "rolldown-binding",
@@ -111,28 +111,28 @@
111
111
  "node": "^20.19.0 || >=22.12.0"
112
112
  },
113
113
  "optionalDependencies": {
114
- "@rolldown/binding-darwin-x64": "1.1.0",
115
- "@rolldown/binding-win32-x64-msvc": "1.1.0",
116
- "@rolldown/binding-linux-x64-gnu": "1.1.0",
117
- "@rolldown/binding-linux-x64-musl": "1.1.0",
118
- "@rolldown/binding-freebsd-x64": "1.1.0",
119
- "@rolldown/binding-linux-arm-gnueabihf": "1.1.0",
120
- "@rolldown/binding-linux-arm64-gnu": "1.1.0",
121
- "@rolldown/binding-darwin-arm64": "1.1.0",
122
- "@rolldown/binding-linux-arm64-musl": "1.1.0",
123
- "@rolldown/binding-openharmony-arm64": "1.1.0",
124
- "@rolldown/binding-win32-arm64-msvc": "1.1.0",
125
- "@rolldown/binding-android-arm64": "1.1.0",
126
- "@rolldown/binding-wasm32-wasi": "1.1.0",
127
- "@rolldown/binding-linux-s390x-gnu": "1.1.0",
128
- "@rolldown/binding-linux-ppc64-gnu": "1.1.0"
114
+ "@rolldown/binding-darwin-x64": "1.1.2",
115
+ "@rolldown/binding-win32-x64-msvc": "1.1.2",
116
+ "@rolldown/binding-linux-x64-gnu": "1.1.2",
117
+ "@rolldown/binding-linux-x64-musl": "1.1.2",
118
+ "@rolldown/binding-freebsd-x64": "1.1.2",
119
+ "@rolldown/binding-linux-arm-gnueabihf": "1.1.2",
120
+ "@rolldown/binding-linux-arm64-gnu": "1.1.2",
121
+ "@rolldown/binding-darwin-arm64": "1.1.2",
122
+ "@rolldown/binding-linux-arm64-musl": "1.1.2",
123
+ "@rolldown/binding-openharmony-arm64": "1.1.2",
124
+ "@rolldown/binding-win32-arm64-msvc": "1.1.2",
125
+ "@rolldown/binding-android-arm64": "1.1.2",
126
+ "@rolldown/binding-wasm32-wasi": "1.1.2",
127
+ "@rolldown/binding-linux-s390x-gnu": "1.1.2",
128
+ "@rolldown/binding-linux-ppc64-gnu": "1.1.2"
129
129
  },
130
130
  "scripts": {
131
131
  "# Scrips for binding #": "_",
132
132
  "artifacts": "napi artifacts --cwd ./src --package-json-path ../package.json -o=../artifacts --npm-dir ../npm",
133
133
  "build-binding": "oxnode ./build-binding.ts",
134
134
  "build-binding:release": "pnpm build-binding --release",
135
- "build-binding:profile": "pnpm build-binding --profile profile",
135
+ "build-binding:profile": "pnpm build-binding --profile profile --features chrome-tracing",
136
136
  "build-binding:wasi": "pnpm build-binding --target wasm32-wasip1-threads",
137
137
  "build-binding:wasi:release": "pnpm build-binding --profile release-wasi --target wasm32-wasip1-threads",
138
138
  "# Scrips for node #": "_",