@rolldown/browser 1.1.1 → 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 (41) 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/{constructors-B3MtwuwE.js → constructors-CnlRXsZI.js} +1 -4
  5. package/dist/{error-Azs8e8cN.js → error-DOcnYe1L.js} +1 -1
  6. package/dist/experimental-index.browser.mjs +5 -5
  7. package/dist/experimental-index.d.mts +6 -6
  8. package/dist/experimental-index.mjs +5 -5
  9. package/dist/filter-index.d.mts +1 -1
  10. package/dist/index.browser.mjs +2 -2
  11. package/dist/index.d.mts +3 -3
  12. package/dist/index.mjs +3 -3
  13. package/dist/parallel-plugin-worker.mjs +1 -1
  14. package/dist/parallel-plugin.d.mts +2 -2
  15. package/dist/parse-ast-index.d.mts +1 -1
  16. package/dist/parse-ast-index.mjs +1 -1
  17. package/dist/plugins-index.browser.mjs +1 -1
  18. package/dist/plugins-index.d.mts +3 -3
  19. package/dist/plugins-index.mjs +1 -1
  20. package/dist/{resolve-tsconfig-Cmw0SAxd.js → resolve-tsconfig-B_KTldgL.js} +1 -1
  21. package/dist/rolldown-binding.wasi-browser.js +1 -0
  22. package/dist/rolldown-binding.wasi.cjs +1 -0
  23. package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
  24. package/dist/{rolldown-build-C9wAyTYG.js → rolldown-build-DkMkdHEX.js} +11 -43
  25. package/dist/shared/{binding-BPMI4t0-.d.mts → binding-dOJO0Ipo.d.mts} +65 -116
  26. package/dist/shared/{bindingify-input-options-EBZ5IFF2.mjs → bindingify-input-options-CM59dkv7.mjs} +5 -5
  27. package/dist/shared/{constructors-YQsI-lJq.mjs → constructors-CAjrhG6p.mjs} +1 -4
  28. package/dist/shared/{constructors-DAokZVCk.d.mts → constructors-DXDHUcCD.d.mts} +3 -4
  29. package/dist/shared/{define-config-Nwe1joYW.d.mts → define-config-VyEuugfx.d.mts} +2 -2
  30. package/dist/shared/{load-config-2QjEcEu4.mjs → load-config-ZI8T7gXR.mjs} +1 -1
  31. package/dist/shared/{parse-DNkPrz4w.mjs → parse-DzXgx0D0.mjs} +1 -1
  32. package/dist/shared/{prompt-DYnaB1Nb.mjs → prompt-B1Yc1NPt.mjs} +5 -5
  33. package/dist/shared/{rolldown-Bqp7kINm.mjs → rolldown-DWdNBjur.mjs} +1 -1
  34. package/dist/shared/{rolldown-build-BgBj9qUV.mjs → rolldown-build-CNErHQbt.mjs} +10 -42
  35. package/dist/shared/{transform-DulXg6tQ.d.mts → transform-Wt-zRSFQ.d.mts} +1 -1
  36. package/dist/shared/{utils-Bp1VejKQ.d.mts → utils-CuJMMtAZ.d.mts} +1 -1
  37. package/dist/shared/{watch-C6WxUyjE.mjs → watch-DNIwEbWZ.mjs} +2 -2
  38. package/dist/utils-index.browser.mjs +6 -6
  39. package/dist/utils-index.d.mts +3 -3
  40. package/dist/utils-index.mjs +5 -5
  41. package/package.json +3 -3
package/dist/cli.mjs CHANGED
@@ -1,11 +1,11 @@
1
- import { n as onExit, t as watch } from "./shared/watch-C6WxUyjE.mjs";
2
- import { C as version, S as description } from "./shared/bindingify-input-options-EBZ5IFF2.mjs";
1
+ import { n as onExit, t as watch } from "./shared/watch-DNIwEbWZ.mjs";
2
+ import { C as version, S as description } from "./shared/bindingify-input-options-CM59dkv7.mjs";
3
3
  import { y as arraify } from "./shared/filter-B_mD-HGz-Cbrk-2bt.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-BgBj9qUV.mjs";
5
- import { t as rolldown } from "./shared/rolldown-Bqp7kINm.mjs";
6
- import { t as loadConfig } from "./shared/load-config-2QjEcEu4.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-CNErHQbt.mjs";
5
+ import { t as rolldown } from "./shared/rolldown-DWdNBjur.mjs";
6
+ import { t as loadConfig } from "./shared/load-config-ZI8T7gXR.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.135.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 { r as defineConfig, rt as VERSION, t as ConfigExport } from "./shared/define-config-Nwe1joYW.mjs";
1
+ import { r as defineConfig, rt as VERSION, t as ConfigExport } from "./shared/define-config-VyEuugfx.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-EBZ5IFF2.mjs";
1
+ import { x as VERSION } from "./shared/bindingify-input-options-CM59dkv7.mjs";
2
2
  import { t as defineConfig } from "./shared/define-config-Demdg3_4.mjs";
3
- import { t as loadConfig } from "./shared/load-config-2QjEcEu4.mjs";
3
+ import { t as loadConfig } from "./shared/load-config-ZI8T7gXR.mjs";
4
4
  export { VERSION, defineConfig, loadConfig };
@@ -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 };
@@ -14,7 +14,7 @@ function bindingifySourcemap(map) {
14
14
  } };
15
15
  }
16
16
  //#endregion
17
- //#region ../../node_modules/.pnpm/oxc-parser@0.135.0/node_modules/oxc-parser/src-js/wrap.js
17
+ //#region ../../node_modules/.pnpm/oxc-parser@0.137.0/node_modules/oxc-parser/src-js/wrap.js
18
18
  function wrap(result) {
19
19
  let program, module, comments, errors;
20
20
  return {
@@ -1,8 +1,8 @@
1
1
  import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-A9UIvc9j.js";
2
- import { a as validateOption, i as transformToRollupOutput, n as createBundlerOptions, o as PluginDriver, t as RolldownBuild } from "./rolldown-build-C9wAyTYG.js";
3
- import { a as parse$2, i as unwrapBindingResult, o as parseSync$2, r as normalizeBindingResult } from "./error-Azs8e8cN.js";
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 "./constructors-B3MtwuwE.js";
5
- import { a as minify$2, i as transformSync$1, n as resolveTsconfig, o as minifySync$2, r as transform$1, t as TsconfigCache$2 } from "./resolve-tsconfig-Cmw0SAxd.js";
2
+ import { a as validateOption, i as transformToRollupOutput, n as createBundlerOptions, o as PluginDriver, t as RolldownBuild } from "./rolldown-build-DkMkdHEX.js";
3
+ import { a as parse$2, i as unwrapBindingResult, o as parseSync$2, r as normalizeBindingResult } from "./error-DOcnYe1L.js";
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 "./constructors-CnlRXsZI.js";
5
+ import { a as minify$2, i as transformSync$1, n as resolveTsconfig, o as minifySync$2, r as transform$1, t as TsconfigCache$2 } from "./resolve-tsconfig-B_KTldgL.js";
6
6
  import * as binding from "./rolldown-binding.wasi-browser.js";
7
7
  import { BindingBundler, BindingDevEngine, BindingRebuildStrategy, BindingRebuildStrategy as BindingRebuildStrategy$1, ResolverFactory, isolatedDeclaration, isolatedDeclarationSync, moduleRunnerTransform, shutdownAsyncRuntime, startAsyncRuntime } from "./rolldown-binding.wasi-browser.js";
8
8
  //#region src/api/dev/dev-engine.ts
@@ -312,4 +312,4 @@ const transformSync = transformSync$1;
312
312
  /** @deprecated Use from `rolldown/utils` instead. */
313
313
  const TsconfigCache = TsconfigCache$2;
314
314
  //#endregion
315
- 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 };
315
+ 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,8 +1,8 @@
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-BPMI4t0-.mjs";
2
- import { fn as RolldownOutput, kt as NormalizedOutputOptions, l as InputOptions, mn as freeExternalMemory, on as OutputOptions, vt as defineParallelPlugin } from "./shared/define-config-Nwe1joYW.mjs";
3
- import { s as StringOrRegExp, t as BuiltinPlugin } from "./shared/utils-Bp1VejKQ.mjs";
4
- 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-DulXg6tQ.mjs";
5
- 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-DAokZVCk.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-dOJO0Ipo.mjs";
2
+ import { fn as RolldownOutput, kt as NormalizedOutputOptions, l as InputOptions, mn as freeExternalMemory, on as OutputOptions, vt as defineParallelPlugin } from "./shared/define-config-VyEuugfx.mjs";
3
+ import { s as StringOrRegExp, t as BuiltinPlugin } from "./shared/utils-CuJMMtAZ.mjs";
4
+ 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-Wt-zRSFQ.mjs";
5
+ 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-DXDHUcCD.mjs";
6
6
 
7
7
  //#region src/api/dev/dev-options.d.ts
8
8
  type DevOnHmrUpdates = (result: Error | {
@@ -268,4 +268,4 @@ type TsconfigRawOptions = BindingTsconfigRawOptions;
268
268
  /** @deprecated Use from `rolldown/utils` instead. */
269
269
  type TsconfigCompilerOptions = BindingTsconfigCompilerOptions;
270
270
  //#endregion
271
- 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 };
271
+ 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,9 +1,9 @@
1
1
  import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-CHVaSqeF.mjs";
2
- import { o as transformToRollupOutput } from "./shared/bindingify-input-options-EBZ5IFF2.mjs";
3
- import { c as validateOption, n as createBundlerOptions, t as RolldownBuild, u as PluginDriver } from "./shared/rolldown-build-BgBj9qUV.mjs";
2
+ import { o as transformToRollupOutput } from "./shared/bindingify-input-options-CM59dkv7.mjs";
3
+ import { c as validateOption, n as createBundlerOptions, t as RolldownBuild, u as PluginDriver } from "./shared/rolldown-build-CNErHQbt.mjs";
4
4
  import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-B5cMIevi.mjs";
5
- import { n as parseSync$2, t as parse$2 } from "./shared/parse-DNkPrz4w.mjs";
6
- 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-YQsI-lJq.mjs";
5
+ import { n as parseSync$2, t as parse$2 } from "./shared/parse-DzXgx0D0.mjs";
6
+ 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-CAjrhG6p.mjs";
7
7
  import { a as minify$2, i as transformSync$1, n as resolveTsconfig, o as minifySync$2, r as transform$1, t as TsconfigCache$2 } from "./shared/resolve-tsconfig-DsK7KzKK.mjs";
8
8
  import { BindingBundler, BindingDevEngine, BindingRebuildStrategy, BindingRebuildStrategy as BindingRebuildStrategy$1, ResolverFactory, isolatedDeclaration, isolatedDeclarationSync, moduleRunnerTransform, shutdownAsyncRuntime, startAsyncRuntime } from "./rolldown-binding.wasi.cjs";
9
9
  import { pathToFileURL } from "node:url";
@@ -316,4 +316,4 @@ const transformSync = transformSync$1;
316
316
  /** @deprecated Use from `rolldown/utils` instead. */
317
317
  const TsconfigCache = TsconfigCache$2;
318
318
  //#endregion
319
- 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 };
319
+ 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,2 +1,2 @@
1
- import { $ as prefixRegex, B as exactRegex, F as FilterExpressionKind, G as importerId, H as exprInterpreter, I as QueryFilterObject, J as interpreterImpl, K as include, L as TopLevelFilterExpression, N as withFilter, P as FilterExpression, Q as or, R as and, U as filterVitePlugins, V as exclude, W as id, X as moduleType, Y as makeIdFiltersToMatchWithQuery, Z as not, et as queries, q as interpreter, tt as query, z as code } from "./shared/define-config-Nwe1joYW.mjs";
1
+ import { $ as prefixRegex, B as exactRegex, F as FilterExpressionKind, G as importerId, H as exprInterpreter, I as QueryFilterObject, J as interpreterImpl, K as include, L as TopLevelFilterExpression, N as withFilter, P as FilterExpression, Q as or, R as and, U as filterVitePlugins, V as exclude, W as id, X as moduleType, Y as makeIdFiltersToMatchWithQuery, Z as not, et as queries, q as interpreter, tt as query, z as code } from "./shared/define-config-VyEuugfx.mjs";
2
2
  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,6 +1,6 @@
1
1
  import { d as logMultipleWatcherOption } from "./normalize-string-or-regex-A9UIvc9j.js";
2
- import { a as validateOption, c as arraify, l as RUNTIME_MODULE_ID, n as createBundlerOptions, o as PluginDriver, r as RolldownMagicString, s as LOG_LEVEL_WARN, t as RolldownBuild, u as VERSION } from "./rolldown-build-C9wAyTYG.js";
3
- import { t as aggregateBindingErrorsIntoJsError } from "./error-Azs8e8cN.js";
2
+ import { a as validateOption, c as arraify, l as RUNTIME_MODULE_ID, n as createBundlerOptions, o as PluginDriver, r as RolldownMagicString, s as LOG_LEVEL_WARN, t as RolldownBuild, u as VERSION } from "./rolldown-build-DkMkdHEX.js";
3
+ import { t as aggregateBindingErrorsIntoJsError } from "./error-DOcnYe1L.js";
4
4
  import { BindingWatcher, shutdownAsyncRuntime } from "./rolldown-binding.wasi-browser.js";
5
5
  //#region src/api/rolldown/index.ts
6
6
  /**
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { z as PreRenderedChunk } from "./shared/binding-BPMI4t0-.mjs";
1
+ import { z as PreRenderedChunk } from "./shared/binding-dOJO0Ipo.mjs";
2
2
  import { a as RolldownLog, i as RolldownError, n as LogLevelOption, o as RolldownLogWithString, r as LogOrStringHandler, t as LogLevel } from "./shared/logging-BSNejiLS.mjs";
3
- import { $t as CodeSplittingOptions, A as RolldownPluginOption, At as NormalizedInputOptions, Bt as WatchOptions, C as ParallelPluginHooks, Ct as ModuleTypeFilter, D as ResolveIdResult, Dt as RolldownFsModule, E as ResolveIdExtraOptions, Et as RolldownFileStats, Ft as RolldownMagicString, Gt as AddonFunction, Ht as RolldownBuild, It as watch, Jt as BuiltinModuleTag, Kt as AdvancedChunksGroup, Lt as RolldownWatcher, M as TransformResult, Mt as ChecksOptions, Nt as LoggingFunction, O as ResolvedId, Ot as InternalModuleFormat, Pt as WarningHandlerWithDefault, Qt as CodeSplittingNameFunction, Rt as RolldownWatcherEvent, S as ObjectHook, St as HookFilter, T as Plugin, Tt as RolldownDirectoryEntry, Ut as BuildOptions, Vt as rolldown, Wt as build, Xt as ChunkingContext, Yt as ChunkFileNamesFunction, Zt as CodeSplittingGroup, _ as HookFilterExtension, _t as DefineParallelPluginResult, a as ChunkOptimizationOptions, an as ModuleFormat, at as ExistingRawSourceMap, b as ModuleOptions, bt as PluginContextMeta, c as InputOption, cn as OutputAsset, ct as TreeshakingOptions, d as OptimizationOptions, dn as RenderedModule, dt as EmittedChunk, en as CommentsOptions, f as WatcherFileWatcherOptions, fn as RolldownOutput, ft as EmittedFile, g as FunctionPluginHooks, gn as SourcemapIgnoreListOption, gt as PluginContextResolveOptions, h as CustomPluginOptions, hn as ModuleInfo, ht as PluginContext, i as RolldownOptions, in as MinifyOptions, it as BundleError, j as SourceDescription, jt as TransformOptions, k as RolldownPlugin, kt as NormalizedOutputOptions, l as InputOptions, ln as OutputChunk, lt as TransformPluginContext, m as AsyncPluginHooks, mt as GetModuleInfo, n as RolldownOptionsFunction, nn as GeneratedCodePreset, nt as RUNTIME_MODULE_ID, o as ExternalOption, on as OutputOptions, ot as SourceMapInput, p as WatcherOptions, pn as SourceMap, pt as EmittedPrebuiltChunk, qt as AdvancedChunksOptions, r as defineConfig, rn as GlobalsFunction, rt as VERSION, s as ExternalOptionFunction, sn as PreRenderedAsset, st as OutputBundle, t as ConfigExport, tn as GeneratedCodeOptions, u as ModuleTypes, un as RenderedChunk, ut as EmittedAsset, v as ImportKind, w as PartialResolvedId, wt as BufferEncoding, x as ModuleType, xt as GeneralHookFilter, y as LoadResult, yt as MinimalPluginContext, zt as RolldownWatcherWatcherEventMap } from "./shared/define-config-Nwe1joYW.mjs";
4
- import { o as PartialNull } from "./shared/utils-Bp1VejKQ.mjs";
3
+ import { $t as CodeSplittingOptions, A as RolldownPluginOption, At as NormalizedInputOptions, Bt as WatchOptions, C as ParallelPluginHooks, Ct as ModuleTypeFilter, D as ResolveIdResult, Dt as RolldownFsModule, E as ResolveIdExtraOptions, Et as RolldownFileStats, Ft as RolldownMagicString, Gt as AddonFunction, Ht as RolldownBuild, It as watch, Jt as BuiltinModuleTag, Kt as AdvancedChunksGroup, Lt as RolldownWatcher, M as TransformResult, Mt as ChecksOptions, Nt as LoggingFunction, O as ResolvedId, Ot as InternalModuleFormat, Pt as WarningHandlerWithDefault, Qt as CodeSplittingNameFunction, Rt as RolldownWatcherEvent, S as ObjectHook, St as HookFilter, T as Plugin, Tt as RolldownDirectoryEntry, Ut as BuildOptions, Vt as rolldown, Wt as build, Xt as ChunkingContext, Yt as ChunkFileNamesFunction, Zt as CodeSplittingGroup, _ as HookFilterExtension, _t as DefineParallelPluginResult, a as ChunkOptimizationOptions, an as ModuleFormat, at as ExistingRawSourceMap, b as ModuleOptions, bt as PluginContextMeta, c as InputOption, cn as OutputAsset, ct as TreeshakingOptions, d as OptimizationOptions, dn as RenderedModule, dt as EmittedChunk, en as CommentsOptions, f as WatcherFileWatcherOptions, fn as RolldownOutput, ft as EmittedFile, g as FunctionPluginHooks, gn as SourcemapIgnoreListOption, gt as PluginContextResolveOptions, h as CustomPluginOptions, hn as ModuleInfo, ht as PluginContext, i as RolldownOptions, in as MinifyOptions, it as BundleError, j as SourceDescription, jt as TransformOptions, k as RolldownPlugin, kt as NormalizedOutputOptions, l as InputOptions, ln as OutputChunk, lt as TransformPluginContext, m as AsyncPluginHooks, mt as GetModuleInfo, n as RolldownOptionsFunction, nn as GeneratedCodePreset, nt as RUNTIME_MODULE_ID, o as ExternalOption, on as OutputOptions, ot as SourceMapInput, p as WatcherOptions, pn as SourceMap, pt as EmittedPrebuiltChunk, qt as AdvancedChunksOptions, r as defineConfig, rn as GlobalsFunction, rt as VERSION, s as ExternalOptionFunction, sn as PreRenderedAsset, st as OutputBundle, t as ConfigExport, tn as GeneratedCodeOptions, u as ModuleTypes, un as RenderedChunk, ut as EmittedAsset, v as ImportKind, w as PartialResolvedId, wt as BufferEncoding, x as ModuleType, xt as GeneralHookFilter, y as LoadResult, yt as MinimalPluginContext, zt as RolldownWatcherWatcherEventMap } from "./shared/define-config-VyEuugfx.mjs";
4
+ import { o as PartialNull } from "./shared/utils-CuJMMtAZ.mjs";
5
5
  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,6 +1,6 @@
1
- import { n as onExit, t as watch } from "./shared/watch-C6WxUyjE.mjs";
2
- import { a as RolldownMagicString, b as RUNTIME_MODULE_ID, x as VERSION } from "./shared/bindingify-input-options-EBZ5IFF2.mjs";
3
- import { t as rolldown } from "./shared/rolldown-Bqp7kINm.mjs";
1
+ import { n as onExit, t as watch } from "./shared/watch-DNIwEbWZ.mjs";
2
+ import { a as RolldownMagicString, b as RUNTIME_MODULE_ID, x as VERSION } from "./shared/bindingify-input-options-CM59dkv7.mjs";
3
+ import { t as rolldown } from "./shared/rolldown-DWdNBjur.mjs";
4
4
  import { t as defineConfig } from "./shared/define-config-Demdg3_4.mjs";
5
5
  import { isMainThread } from "node:worker_threads";
6
6
  import { initTraceSubscriber } from "./rolldown-binding.wasi.cjs";
@@ -1,4 +1,4 @@
1
- import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-EBZ5IFF2.mjs";
1
+ import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-CM59dkv7.mjs";
2
2
  import { parentPort, workerData } from "node:worker_threads";
3
3
  import { registerPlugins } from "./rolldown-binding.wasi.cjs";
4
4
  //#region src/parallel-plugin-worker.ts
@@ -1,5 +1,5 @@
1
- import { T as Plugin } from "./shared/define-config-Nwe1joYW.mjs";
2
- import { i as MaybePromise } from "./shared/utils-Bp1VejKQ.mjs";
1
+ import { T as Plugin } from "./shared/define-config-VyEuugfx.mjs";
2
+ import { i as MaybePromise } from "./shared/utils-CuJMMtAZ.mjs";
3
3
 
4
4
  //#region src/plugin/parallel-plugin-implementation.d.ts
5
5
  type ParallelPluginImplementation = Plugin;
@@ -1,4 +1,4 @@
1
- import { L as ParseResult$1, R as ParserOptions$1, bn as Program } from "./shared/binding-BPMI4t0-.mjs";
1
+ import { L as ParseResult$1, R as ParserOptions$1, bn as Program } from "./shared/binding-dOJO0Ipo.mjs";
2
2
 
3
3
  //#region src/parse-ast-index.d.ts
4
4
  /**
@@ -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-DNkPrz4w.mjs";
2
+ import { n as parseSync, t as parse } from "./shared/parse-DzXgx0D0.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,5 +1,5 @@
1
1
  import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./normalize-string-or-regex-A9UIvc9j.js";
2
- import { t as esmExternalRequirePlugin } from "./constructors-B3MtwuwE.js";
2
+ import { t as esmExternalRequirePlugin } from "./constructors-CnlRXsZI.js";
3
3
  //#region src/builtin-plugin/replace-plugin.ts
4
4
  /**
5
5
  * Replaces targeted strings in files while bundling.
@@ -1,6 +1,6 @@
1
- import { m as BindingReplacePluginConfig } from "./shared/binding-BPMI4t0-.mjs";
2
- import { t as BuiltinPlugin } from "./shared/utils-Bp1VejKQ.mjs";
3
- import { t as esmExternalRequirePlugin } from "./shared/constructors-DAokZVCk.mjs";
1
+ import { m as BindingReplacePluginConfig } from "./shared/binding-dOJO0Ipo.mjs";
2
+ import { t as BuiltinPlugin } from "./shared/utils-CuJMMtAZ.mjs";
3
+ import { t as esmExternalRequirePlugin } from "./shared/constructors-DXDHUcCD.mjs";
4
4
 
5
5
  //#region src/builtin-plugin/replace-plugin.d.ts
6
6
  /**
@@ -1,5 +1,5 @@
1
1
  import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./shared/normalize-string-or-regex-CHVaSqeF.mjs";
2
- import { t as esmExternalRequirePlugin } from "./shared/constructors-YQsI-lJq.mjs";
2
+ import { t as esmExternalRequirePlugin } from "./shared/constructors-CAjrhG6p.mjs";
3
3
  //#region src/builtin-plugin/replace-plugin.ts
4
4
  /**
5
5
  * Replaces targeted strings in files while bundling.
@@ -1,4 +1,4 @@
1
- import { n as normalizeBindingError, s as bindingifySourcemap } from "./error-Azs8e8cN.js";
1
+ import { n as normalizeBindingError, s as bindingifySourcemap } from "./error-DOcnYe1L.js";
2
2
  import { TsconfigCache, collapseSourcemaps, enhancedTransform, enhancedTransformSync, minify, minifySync, resolveTsconfig } from "./rolldown-binding.wasi-browser.js";
3
3
  //#region src/utils/minify.ts
4
4
  /**
@@ -122,6 +122,7 @@ export const TsconfigCache = __napiModule.exports.TsconfigCache
122
122
  export const BindingAttachDebugInfo = __napiModule.exports.BindingAttachDebugInfo
123
123
  export const BindingBuiltinPluginName = __napiModule.exports.BindingBuiltinPluginName
124
124
  export const BindingChunkModuleOrderBy = __napiModule.exports.BindingChunkModuleOrderBy
125
+ export const BindingErrorStage = __napiModule.exports.BindingErrorStage
125
126
  export const BindingLogLevel = __napiModule.exports.BindingLogLevel
126
127
  export const BindingPluginOrder = __napiModule.exports.BindingPluginOrder
127
128
  export const BindingPropertyReadSideEffects = __napiModule.exports.BindingPropertyReadSideEffects
@@ -161,6 +161,7 @@ module.exports.TsconfigCache = __napiModule.exports.TsconfigCache
161
161
  module.exports.BindingAttachDebugInfo = __napiModule.exports.BindingAttachDebugInfo
162
162
  module.exports.BindingBuiltinPluginName = __napiModule.exports.BindingBuiltinPluginName
163
163
  module.exports.BindingChunkModuleOrderBy = __napiModule.exports.BindingChunkModuleOrderBy
164
+ module.exports.BindingErrorStage = __napiModule.exports.BindingErrorStage
164
165
  module.exports.BindingLogLevel = __napiModule.exports.BindingLogLevel
165
166
  module.exports.BindingPluginOrder = __napiModule.exports.BindingPluginOrder
166
167
  module.exports.BindingPropertyReadSideEffects = __napiModule.exports.BindingPropertyReadSideEffects
@@ -1,5 +1,5 @@
1
1
  import { c as logCycleLoading, f as logNoFileSystemInBrowser, g as getCodeFrame, h as locate, i as bindingifyManifestPlugin, l as logInputHookInOutputPlugin, m as logPluginError, n as BuiltinPlugin, o as augmentCodeLocation, p as logParseError, r as bindingifyBuiltInPlugin, s as error, t as normalizedStringOrRegex, u as logInvalidLogPosition } from "./normalize-string-or-regex-A9UIvc9j.js";
2
- import { i as unwrapBindingResult, o as parseSync$1, s as bindingifySourcemap$1, t as aggregateBindingErrorsIntoJsError } from "./error-Azs8e8cN.js";
2
+ import { i as unwrapBindingResult, o as parseSync$1, s as bindingifySourcemap$1, t as aggregateBindingErrorsIntoJsError } from "./error-DOcnYe1L.js";
3
3
  import { BindingAttachDebugInfo, BindingBundler, BindingChunkModuleOrderBy, BindingLogLevel, BindingMagicString, BindingPluginOrder, BindingPropertyReadSideEffects, BindingPropertyWriteSideEffects, shutdownAsyncRuntime, startAsyncRuntime } from "./rolldown-binding.wasi-browser.js";
4
4
  //#region ../../node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs
5
5
  let _lazyMatch = () => {
@@ -454,7 +454,7 @@ const win32 = /* @__PURE__ */ mix(";");
454
454
  *
455
455
  * @category Plugin APIs
456
456
  */
457
- const VERSION = "1.1.1";
457
+ const VERSION = "1.1.2";
458
458
  //#endregion
459
459
  //#region src/constants/index.ts
460
460
  /**
@@ -1914,43 +1914,7 @@ const TransformOptionsSchema = /* @__PURE__ */ object({
1914
1914
  plugins: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ object({
1915
1915
  styledComponents: /* @__PURE__ */ optional(/* @__PURE__ */ any()),
1916
1916
  taggedTemplateEscape: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1917
- })), /* @__PURE__ */ description("Third-party plugins to use")),
1918
- reactCompiler: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ object({
1919
- compilationMode: /* @__PURE__ */ optional(/* @__PURE__ */ union([
1920
- /* @__PURE__ */ literal("infer"),
1921
- /* @__PURE__ */ literal("syntax"),
1922
- /* @__PURE__ */ literal("annotation"),
1923
- /* @__PURE__ */ literal("all")
1924
- ])),
1925
- panicThreshold: /* @__PURE__ */ optional(/* @__PURE__ */ union([
1926
- /* @__PURE__ */ literal("none"),
1927
- /* @__PURE__ */ literal("critical_errors"),
1928
- /* @__PURE__ */ literal("all_errors")
1929
- ])),
1930
- target: /* @__PURE__ */ optional(/* @__PURE__ */ union([
1931
- /* @__PURE__ */ literal("17"),
1932
- /* @__PURE__ */ literal("18"),
1933
- /* @__PURE__ */ literal("19")
1934
- ])),
1935
- noEmit: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1936
- outputMode: /* @__PURE__ */ optional(/* @__PURE__ */ union([
1937
- /* @__PURE__ */ literal("client"),
1938
- /* @__PURE__ */ literal("ssr"),
1939
- /* @__PURE__ */ literal("lint")
1940
- ])),
1941
- ignoreUseNoForget: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1942
- flowSuppressions: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1943
- enableReanimated: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1944
- isDev: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1945
- filename: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
1946
- eslintSuppressionRules: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())),
1947
- customOptOutDirectives: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())),
1948
- gating: /* @__PURE__ */ optional(/* @__PURE__ */ object({
1949
- source: /* @__PURE__ */ string(),
1950
- importSpecifierName: /* @__PURE__ */ string()
1951
- })),
1952
- dynamicGating: /* @__PURE__ */ optional(/* @__PURE__ */ object({ source: /* @__PURE__ */ string() }))
1953
- })]))
1917
+ })), /* @__PURE__ */ description("Third-party plugins to use"))
1954
1918
  });
1955
1919
  const WatcherFileWatcherOptionsSchema = /* @__PURE__ */ strictObject({
1956
1920
  usePolling: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Use polling-based file watching instead of native OS events")),
@@ -2477,7 +2441,7 @@ function bindingAssetSource(source) {
2477
2441
  return { inner: source };
2478
2442
  }
2479
2443
  //#endregion
2480
- //#region \0@oxc-project+runtime@0.135.0/helpers/esm/decorate.js
2444
+ //#region \0@oxc-project+runtime@0.137.0/helpers/esm/decorate.js
2481
2445
  function __decorate(decorators, target, key, desc) {
2482
2446
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2483
2447
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -3081,7 +3045,7 @@ function exclude(expr) {
3081
3045
  return new Exclude(expr);
3082
3046
  }
3083
3047
  //#endregion
3084
- //#region ../../node_modules/.pnpm/remeda@2.34.1/node_modules/remeda/dist/lazyDataLastImpl-DtF3cihj.js
3048
+ //#region ../../node_modules/.pnpm/remeda@2.39.0/node_modules/remeda/dist/lazyDataLastImpl--3B10z3s.js
3085
3049
  function e(e, t, n) {
3086
3050
  let r = (n) => e(n, ...t);
3087
3051
  return n === void 0 ? r : Object.assign(r, {
@@ -3090,7 +3054,7 @@ function e(e, t, n) {
3090
3054
  });
3091
3055
  }
3092
3056
  //#endregion
3093
- //#region ../../node_modules/.pnpm/remeda@2.34.1/node_modules/remeda/dist/purry.js
3057
+ //#region ../../node_modules/.pnpm/remeda@2.39.0/node_modules/remeda/dist/purry.js
3094
3058
  function t$1(t, n, r) {
3095
3059
  let i = t.length - n.length;
3096
3060
  if (i === 0) return t(...n);
@@ -3098,7 +3062,7 @@ function t$1(t, n, r) {
3098
3062
  throw Error(`Wrong number of arguments`);
3099
3063
  }
3100
3064
  //#endregion
3101
- //#region ../../node_modules/.pnpm/remeda@2.34.1/node_modules/remeda/dist/partition.js
3065
+ //#region ../../node_modules/.pnpm/remeda@2.39.0/node_modules/remeda/dist/partition.js
3102
3066
  function t(...t) {
3103
3067
  return t$1(n, t);
3104
3068
  }
@@ -5237,6 +5201,10 @@ function bindingifyCodeSplitting(codeSplitting, inlineDynamicImportsOption, adva
5237
5201
  else if (manualChunks != null) effectiveChunksOption = { groups: [{ name(moduleId, ctx) {
5238
5202
  return manualChunks(moduleId, { getModuleInfo: (id) => ctx.getModuleInfo(id) });
5239
5203
  } }] };
5204
+ if (inlineDynamicImports === true && effectiveChunksOption != null) {
5205
+ logger.warn("`advancedChunks` option is ignored because `inlineDynamicImports: true` disables code splitting.");
5206
+ effectiveChunksOption = void 0;
5207
+ }
5240
5208
  let advancedChunksResult;
5241
5209
  if (effectiveChunksOption != null) {
5242
5210
  const { groups, ...restOptions } = effectiveChunksOption;
@@ -2283,94 +2283,6 @@ interface PluginsOptions {
2283
2283
  styledComponents?: StyledComponentsOptions;
2284
2284
  taggedTemplateEscape?: boolean;
2285
2285
  }
2286
- /** Dynamic gating for {@link ReactCompilerOptions#dynamicGating}. */
2287
- interface ReactCompilerDynamicGating {
2288
- /** Module the gating import comes from. */
2289
- source: string;
2290
- }
2291
- /** Static gating for {@link ReactCompilerOptions#gating}. */
2292
- interface ReactCompilerGating {
2293
- /** Module the gating import comes from. */
2294
- source: string;
2295
- /** Imported specifier used as the gate. */
2296
- importSpecifierName: string;
2297
- }
2298
- /**
2299
- * Options for the experimental [React Compiler](https://github.com/facebook/react/pull/36173).
2300
- *
2301
- * Mirrors the compiler's `PluginOptions`. The deep `environment` configuration
2302
- * (inference / validation flags) is not surfaced here.
2303
- *
2304
- * @see {@link TransformOptions#reactCompiler}
2305
- */
2306
- interface ReactCompilerOptions {
2307
- /**
2308
- * Which functions to compile.
2309
- *
2310
- * @default 'infer'
2311
- */
2312
- compilationMode?: 'infer' | 'syntax' | 'annotation' | 'all';
2313
- /**
2314
- * What to do when a function cannot be compiled.
2315
- *
2316
- * @default 'none'
2317
- */
2318
- panicThreshold?: 'none' | 'critical_errors' | 'all_errors';
2319
- /**
2320
- * React runtime version target. `17` and `18` require the
2321
- * `react-compiler-runtime` package; `19` ships the runtime in `react`.
2322
- *
2323
- * @default '19'
2324
- */
2325
- target?: '17' | '18' | '19';
2326
- /**
2327
- * Analyze and report diagnostics only; emit no transformed code.
2328
- *
2329
- * @default false
2330
- */
2331
- noEmit?: boolean;
2332
- /**
2333
- * Compiler output mode.
2334
- *
2335
- * @default undefined
2336
- */
2337
- outputMode?: 'client' | 'ssr' | 'lint';
2338
- /**
2339
- * Compile even functions marked with the `"use no memo"` / `"use no forget"`
2340
- * opt-out directives.
2341
- *
2342
- * @default false
2343
- */
2344
- ignoreUseNoForget?: boolean;
2345
- /**
2346
- * Treat Flow suppression comments as opt-outs.
2347
- *
2348
- * @default true
2349
- */
2350
- flowSuppressions?: boolean;
2351
- /**
2352
- * Enable `react-native-reanimated` support.
2353
- *
2354
- * @default false
2355
- */
2356
- enableReanimated?: boolean;
2357
- /**
2358
- * Development mode (extra validation / instrumentation).
2359
- *
2360
- * @default false
2361
- */
2362
- isDev?: boolean;
2363
- /** Source file name, used for the fast-refresh hash and in diagnostics. */
2364
- filename?: string;
2365
- /** ESLint rules whose suppressions opt a function out of compilation. */
2366
- eslintSuppressionRules?: Array<string>;
2367
- /** Extra directives that opt a function out of compilation. */
2368
- customOptOutDirectives?: Array<string>;
2369
- /** Also emit a gated (feature-flagged) version of each compiled function. */
2370
- gating?: ReactCompilerGating;
2371
- /** Dynamically-gated compilation. */
2372
- dynamicGating?: ReactCompilerDynamicGating;
2373
- }
2374
2286
  interface ReactRefreshOptions {
2375
2287
  /**
2376
2288
  * Specify the identifier of the refresh registration variable.
@@ -2417,7 +2329,10 @@ interface StyledComponentsOptions {
2417
2329
  * Transpiles styled-components tagged template literals to a smaller representation
2418
2330
  * than what Babel normally creates, helping to reduce bundle size.
2419
2331
  *
2420
- * @default true
2332
+ * Disabled by default because Oxc does not down-level template literals, so this
2333
+ * transform only increases output size.
2334
+ *
2335
+ * @default false
2421
2336
  */
2422
2337
  transpileTemplateLiterals?: boolean;
2423
2338
  /**
@@ -2467,6 +2382,13 @@ interface StyledComponentsOptions {
2467
2382
  /**
2468
2383
  * Options for transforming a JavaScript or TypeScript file.
2469
2384
  *
2385
+ * Options are listed in evaluation order: the source is parsed (`lang`,
2386
+ * `sourceType`), declarations are emitted (`typescript.declaration`), then
2387
+ * transforms run (`typescript`, `decorator`, `plugins`,
2388
+ * `jsx`, `target`), followed by the `inject` and `define` plugins, and
2389
+ * finally codegen (`sourcemap`). `helpers` configures the runtime helpers
2390
+ * the transforms emit.
2391
+ *
2470
2392
  * @see {@link transform}
2471
2393
  */
2472
2394
  interface TransformOptions {
@@ -2479,23 +2401,23 @@ interface TransformOptions {
2479
2401
  * options.
2480
2402
  */
2481
2403
  cwd?: string;
2482
- /**
2483
- * Enable source map generation.
2484
- *
2485
- * When `true`, the `sourceMap` field of transform result objects will be populated.
2486
- *
2487
- * @default false
2488
- *
2489
- * @see {@link SourceMap}
2490
- */
2491
- sourcemap?: boolean;
2492
2404
  /** Set assumptions in order to produce smaller output. */
2493
2405
  assumptions?: CompilerAssumptions;
2494
2406
  /**
2495
2407
  * Configure how TypeScript is transformed.
2408
+ *
2409
+ * `typescript.declaration` is evaluated before all transforms.
2410
+ *
2496
2411
  * @see {@link https://oxc.rs/docs/guide/usage/transformer/typescript}
2497
2412
  */
2498
2413
  typescript?: TypeScriptOptions;
2414
+ /** Decorator plugin */
2415
+ decorator?: DecoratorOptions;
2416
+ /**
2417
+ * Third-party plugins to use.
2418
+ * @see {@link https://oxc.rs/docs/guide/usage/transformer/plugins}
2419
+ */
2420
+ plugins?: PluginsOptions;
2499
2421
  /**
2500
2422
  * Configure how TSX and JSX are transformed.
2501
2423
  * @see {@link https://oxc.rs/docs/guide/usage/transformer/jsx}
@@ -2518,31 +2440,32 @@ interface TransformOptions {
2518
2440
  target?: string | Array<string>;
2519
2441
  /** Behaviour for runtime helpers. */
2520
2442
  helpers?: Helpers;
2521
- /**
2522
- * Define Plugin
2523
- * @see {@link https://oxc.rs/docs/guide/usage/transformer/global-variable-replacement#define}
2524
- */
2525
- define?: Record<string, string>;
2526
2443
  /**
2527
2444
  * Inject Plugin
2445
+ *
2446
+ * Runs after all transforms.
2447
+ *
2528
2448
  * @see {@link https://oxc.rs/docs/guide/usage/transformer/global-variable-replacement#inject}
2529
2449
  */
2530
2450
  inject?: Record<string, string | [string, string]>;
2531
- /** Decorator plugin */
2532
- decorator?: DecoratorOptions;
2533
2451
  /**
2534
- * Enable the experimental [React Compiler](https://github.com/facebook/react/pull/36173).
2452
+ * Define Plugin
2453
+ *
2454
+ * Runs after the inject plugin.
2535
2455
  *
2536
- * `true` enables it with default options; an object enables it with the
2537
- * given options; `false` or omitted disables it. When enabled, the compiler
2538
- * runs as the first transform and memoizes React components and hooks.
2456
+ * @see {@link https://oxc.rs/docs/guide/usage/transformer/global-variable-replacement#define}
2539
2457
  */
2540
- reactCompiler?: boolean | ReactCompilerOptions;
2458
+ define?: Record<string, string>;
2541
2459
  /**
2542
- * Third-party plugins to use.
2543
- * @see {@link https://oxc.rs/docs/guide/usage/transformer/plugins}
2460
+ * Enable source map generation.
2461
+ *
2462
+ * When `true`, the `sourceMap` field of transform result objects will be populated.
2463
+ *
2464
+ * @default false
2465
+ *
2466
+ * @see {@link SourceMap}
2544
2467
  */
2545
- plugins?: PluginsOptions;
2468
+ sourcemap?: boolean;
2546
2469
  }
2547
2470
  interface TypeScriptOptions {
2548
2471
  jsxPragma?: string;
@@ -2836,7 +2759,7 @@ declare class TsconfigCache {
2836
2759
  /** Get the number of cached entries. */
2837
2760
  size(): number;
2838
2761
  }
2839
- 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';
2762
+ 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';
2840
2763
  interface BindingBundleAnalyzerPluginConfig {
2841
2764
  /** Output filename for the bundle analysis data (default: "analyze-data.json") */
2842
2765
  fileName?: string;
@@ -2844,7 +2767,16 @@ interface BindingBundleAnalyzerPluginConfig {
2844
2767
  format?: 'json' | 'md';
2845
2768
  }
2846
2769
  interface BindingBundleState {
2847
- lastFullBuildFailed: boolean;
2770
+ lastBuildErrored: boolean;
2771
+ /**
2772
+ * The stage of the last incremental failure, when `last_build_errored`
2773
+ * is true and the engine is in an incremental-failure state. Absent on
2774
+ * success and for an initial full-build failure (use
2775
+ * `last_build_errored` to detect that). The consumer can force a full
2776
+ * rebuild on the next page load when this is `Hmr`. See
2777
+ * `internal-docs/dev-engine/implementation.md` §12.
2778
+ */
2779
+ lastErrorStage?: BindingErrorStage;
2848
2780
  hasStaleOutput: boolean;
2849
2781
  }
2850
2782
  interface BindingClientHmrUpdate {
@@ -3006,6 +2938,16 @@ type BindingError = {
3006
2938
  type: 'NativeError';
3007
2939
  field0: NativeError;
3008
2940
  };
2941
+ /**
2942
+ * Which stage of an incremental dev build produced the last error.
2943
+ *
2944
+ * Mirrors `rolldown_dev::ErrorStage`. Surfaced on
2945
+ * [`crate::binding_dev_engine::BindingBundleState`] so the consumer can
2946
+ * treat an `Hmr`-stage failure as recoverable by forcing a full rebuild
2947
+ * on the next page load (HMR generation may itself be buggy). See
2948
+ * `internal-docs/dev-engine/implementation.md` §12.
2949
+ */
2950
+ type BindingErrorStage = 'Hmr' | 'Rebuild';
3009
2951
  interface BindingEsmExternalRequirePluginConfig {
3010
2952
  external: Array<BindingStringOrRegex>;
3011
2953
  skipDuplicateCheck?: boolean;
@@ -3153,6 +3095,13 @@ interface BindingTsconfigCompilerOptions {
3153
3095
  experimentalDecorators?: boolean;
3154
3096
  /** Enables decorator metadata emission. */
3155
3097
  emitDecoratorMetadata?: boolean;
3098
+ /** Enables all strict type-checking options. Used as the fallback for `strictNullChecks`. */
3099
+ strict?: boolean;
3100
+ /**
3101
+ * Enables strict null checks. Controls whether `null`/`undefined` are elided from
3102
+ * nullable-union `design:type` decorator metadata.
3103
+ */
3104
+ strictNullChecks?: boolean;
3156
3105
  /** Preserves module structure of imports/exports. */
3157
3106
  verbatimModuleSyntax?: boolean;
3158
3107
  /** Configures how class fields are emitted. */
@@ -7,7 +7,7 @@ import { BindingAttachDebugInfo, BindingChunkModuleOrderBy, BindingLogLevel, Bin
7
7
  import path from "node:path";
8
8
  import fsp from "node:fs/promises";
9
9
  //#region package.json
10
- var version = "1.1.1";
10
+ var version = "1.1.2";
11
11
  var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
12
12
  //#endregion
13
13
  //#region src/constants/version.ts
@@ -218,7 +218,7 @@ function bindingAssetSource(source) {
218
218
  return { inner: source };
219
219
  }
220
220
  //#endregion
221
- //#region \0@oxc-project+runtime@0.135.0/helpers/esm/decorate.js
221
+ //#region \0@oxc-project+runtime@0.137.0/helpers/esm/decorate.js
222
222
  function __decorate(decorators, target, key, desc) {
223
223
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
224
224
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -672,7 +672,7 @@ function normalizeTransformHookSourcemap(id, originalCode, rawMap) {
672
672
  return map;
673
673
  }
674
674
  //#endregion
675
- //#region ../../node_modules/.pnpm/remeda@2.34.1/node_modules/remeda/dist/lazyDataLastImpl-DtF3cihj.js
675
+ //#region ../../node_modules/.pnpm/remeda@2.39.0/node_modules/remeda/dist/lazyDataLastImpl--3B10z3s.js
676
676
  function e(e, t, n) {
677
677
  let r = (n) => e(n, ...t);
678
678
  return n === void 0 ? r : Object.assign(r, {
@@ -681,7 +681,7 @@ function e(e, t, n) {
681
681
  });
682
682
  }
683
683
  //#endregion
684
- //#region ../../node_modules/.pnpm/remeda@2.34.1/node_modules/remeda/dist/purry.js
684
+ //#region ../../node_modules/.pnpm/remeda@2.39.0/node_modules/remeda/dist/purry.js
685
685
  function t$1(t, n, r) {
686
686
  let i = t.length - n.length;
687
687
  if (i === 0) return t(...n);
@@ -689,7 +689,7 @@ function t$1(t, n, r) {
689
689
  throw Error(`Wrong number of arguments`);
690
690
  }
691
691
  //#endregion
692
- //#region ../../node_modules/.pnpm/remeda@2.34.1/node_modules/remeda/dist/partition.js
692
+ //#region ../../node_modules/.pnpm/remeda@2.39.0/node_modules/remeda/dist/partition.js
693
693
  function t(...t) {
694
694
  return t$1(n, t);
695
695
  }
@@ -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-BPMI4t0-.mjs";
2
- import { s as StringOrRegExp, t as BuiltinPlugin } from "./utils-Bp1VejKQ.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-dOJO0Ipo.mjs";
2
+ import { s as StringOrRegExp, t as BuiltinPlugin } from "./utils-CuJMMtAZ.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,6 +1,6 @@
1
- import { A as ExternalMemoryStatus, N as JsxOptions, P as MinifyOptions$1, R as ParserOptions, U as TransformOptions$1, bn as Program, c as BindingHookResolveIdExtraArgs, d as BindingPluginContextResolveOptions, h as BindingTransformHookExtraArgs, k as BindingWatcherBundler, p as BindingRenderedChunk, u as BindingMagicString, z as PreRenderedChunk } from "./binding-BPMI4t0-.mjs";
1
+ import { A as ExternalMemoryStatus, N as JsxOptions, P as MinifyOptions$1, R as ParserOptions, U as TransformOptions$1, bn as Program, c as BindingHookResolveIdExtraArgs, d as BindingPluginContextResolveOptions, h as BindingTransformHookExtraArgs, k as BindingWatcherBundler, p as BindingRenderedChunk, u as BindingMagicString, z as PreRenderedChunk } from "./binding-dOJO0Ipo.mjs";
2
2
  import { a as RolldownLog, i as RolldownError, n as LogLevelOption, o as RolldownLogWithString, r as LogOrStringHandler, t as LogLevel } from "./logging-BSNejiLS.mjs";
3
- import { a as NullValue, i as MaybePromise, n as MakeAsync, o as PartialNull, r as MaybeArray, s as StringOrRegExp$1, t as BuiltinPlugin } from "./utils-Bp1VejKQ.mjs";
3
+ import { a as NullValue, i as MaybePromise, n as MakeAsync, o as PartialNull, r as MaybeArray, s as StringOrRegExp$1, t as BuiltinPlugin } from "./utils-CuJMMtAZ.mjs";
4
4
 
5
5
  //#region src/types/misc.d.ts
6
6
  /** @inline */
@@ -1,4 +1,4 @@
1
- import { t as rolldown } from "./rolldown-Bqp7kINm.mjs";
1
+ import { t as rolldown } from "./rolldown-DWdNBjur.mjs";
2
2
  import path from "node:path";
3
3
  import { readdir } from "node:fs/promises";
4
4
  import { cwd } from "node:process";
@@ -1,5 +1,5 @@
1
1
  import { parse, parseSync } from "../rolldown-binding.wasi.cjs";
2
- //#region ../../node_modules/.pnpm/oxc-parser@0.135.0/node_modules/oxc-parser/src-js/wrap.js
2
+ //#region ../../node_modules/.pnpm/oxc-parser@0.137.0/node_modules/oxc-parser/src-js/wrap.js
3
3
  function wrap(result) {
4
4
  let program, module, comments, errors;
5
5
  return {
@@ -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,4 +1,4 @@
1
- import { c as validateOption, t as RolldownBuild, u as PluginDriver } from "./rolldown-build-BgBj9qUV.mjs";
1
+ import { c as validateOption, t as RolldownBuild, u as PluginDriver } from "./rolldown-build-CNErHQbt.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
1
  import { i as logInputHookInOutputPlugin, n as error } from "./logs-aMKUxRpj.mjs";
2
2
  import { n as BuiltinPlugin } from "./normalize-string-or-regex-CHVaSqeF.mjs";
3
- 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-EBZ5IFF2.mjs";
3
+ 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-CM59dkv7.mjs";
4
4
  import { S as unimplemented } from "./filter-B_mD-HGz-Cbrk-2bt.mjs";
5
5
  import { i as unwrapBindingResult } from "./error-B5cMIevi.mjs";
6
6
  import { Worker } from "node:worker_threads";
7
7
  import { BindingBundler, ParallelJsPluginRegistry, shutdownAsyncRuntime, startAsyncRuntime } from "../rolldown-binding.wasi.cjs";
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
@@ -1469,43 +1469,7 @@ const TransformOptionsSchema = /* @__PURE__ */ object({
1469
1469
  plugins: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ object({
1470
1470
  styledComponents: /* @__PURE__ */ optional(/* @__PURE__ */ any()),
1471
1471
  taggedTemplateEscape: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1472
- })), /* @__PURE__ */ description("Third-party plugins to use")),
1473
- reactCompiler: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ object({
1474
- compilationMode: /* @__PURE__ */ optional(/* @__PURE__ */ union([
1475
- /* @__PURE__ */ literal("infer"),
1476
- /* @__PURE__ */ literal("syntax"),
1477
- /* @__PURE__ */ literal("annotation"),
1478
- /* @__PURE__ */ literal("all")
1479
- ])),
1480
- panicThreshold: /* @__PURE__ */ optional(/* @__PURE__ */ union([
1481
- /* @__PURE__ */ literal("none"),
1482
- /* @__PURE__ */ literal("critical_errors"),
1483
- /* @__PURE__ */ literal("all_errors")
1484
- ])),
1485
- target: /* @__PURE__ */ optional(/* @__PURE__ */ union([
1486
- /* @__PURE__ */ literal("17"),
1487
- /* @__PURE__ */ literal("18"),
1488
- /* @__PURE__ */ literal("19")
1489
- ])),
1490
- noEmit: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1491
- outputMode: /* @__PURE__ */ optional(/* @__PURE__ */ union([
1492
- /* @__PURE__ */ literal("client"),
1493
- /* @__PURE__ */ literal("ssr"),
1494
- /* @__PURE__ */ literal("lint")
1495
- ])),
1496
- ignoreUseNoForget: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1497
- flowSuppressions: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1498
- enableReanimated: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1499
- isDev: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1500
- filename: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
1501
- eslintSuppressionRules: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())),
1502
- customOptOutDirectives: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())),
1503
- gating: /* @__PURE__ */ optional(/* @__PURE__ */ object({
1504
- source: /* @__PURE__ */ string(),
1505
- importSpecifierName: /* @__PURE__ */ string()
1506
- })),
1507
- dynamicGating: /* @__PURE__ */ optional(/* @__PURE__ */ object({ source: /* @__PURE__ */ string() }))
1508
- })]))
1472
+ })), /* @__PURE__ */ description("Third-party plugins to use"))
1509
1473
  });
1510
1474
  const WatcherFileWatcherOptionsSchema = /* @__PURE__ */ strictObject({
1511
1475
  usePolling: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Use polling-based file watching instead of native OS events")),
@@ -2815,9 +2779,9 @@ function stringWidth$1(string, options = {}) {
2815
2779
  return width;
2816
2780
  }
2817
2781
  function isUnicodeSupported() {
2818
- const { env } = process$1;
2782
+ const { env } = g$1;
2819
2783
  const { TERM, TERM_PROGRAM } = env;
2820
- if (process$1.platform !== "win32") return TERM !== "linux";
2784
+ if (g$1.platform !== "win32") return TERM !== "linux";
2821
2785
  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";
2822
2786
  }
2823
2787
  const TYPE_COLOR_MAP = {
@@ -2904,7 +2868,7 @@ function createConsola(options = {}) {
2904
2868
  defaults: { level },
2905
2869
  stdout: process.stdout,
2906
2870
  stderr: process.stderr,
2907
- prompt: (...args) => import("./prompt-DYnaB1Nb.mjs").then((m) => m.prompt(...args)),
2871
+ prompt: (...args) => import("./prompt-B1Yc1NPt.mjs").then((m) => m.prompt(...args)),
2908
2872
  reporters: options.reporters || [options.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()],
2909
2873
  ...options
2910
2874
  });
@@ -3074,6 +3038,10 @@ function bindingifyCodeSplitting(codeSplitting, inlineDynamicImportsOption, adva
3074
3038
  else if (manualChunks != null) effectiveChunksOption = { groups: [{ name(moduleId, ctx) {
3075
3039
  return manualChunks(moduleId, { getModuleInfo: (id) => ctx.getModuleInfo(id) });
3076
3040
  } }] };
3041
+ if (inlineDynamicImports === true && effectiveChunksOption != null) {
3042
+ logger.warn("`advancedChunks` option is ignored because `inlineDynamicImports: true` disables code splitting.");
3043
+ effectiveChunksOption = void 0;
3044
+ }
3077
3045
  let advancedChunksResult;
3078
3046
  if (effectiveChunksOption != null) {
3079
3047
  const { groups, ...restOptions } = effectiveChunksOption;
@@ -1,4 +1,4 @@
1
- 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-BPMI4t0-.mjs";
1
+ 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-dOJO0Ipo.mjs";
2
2
  import { a as RolldownLog } from "./logging-BSNejiLS.mjs";
3
3
 
4
4
  //#region src/utils/resolve-tsconfig.d.ts
@@ -1,4 +1,4 @@
1
- import { t as BindingBuiltinPluginName } from "./binding-BPMI4t0-.mjs";
1
+ import { t as BindingBuiltinPluginName } from "./binding-dOJO0Ipo.mjs";
2
2
 
3
3
  //#region src/types/utils.d.ts
4
4
  type MaybePromise<T> = T | Promise<T>;
@@ -1,7 +1,7 @@
1
1
  import { o as logMultipleWatcherOption } from "./logs-aMKUxRpj.mjs";
2
- import { v as LOG_LEVEL_WARN } from "./bindingify-input-options-EBZ5IFF2.mjs";
2
+ import { v as LOG_LEVEL_WARN } from "./bindingify-input-options-CM59dkv7.mjs";
3
3
  import { y as arraify } from "./filter-B_mD-HGz-Cbrk-2bt.mjs";
4
- import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-BgBj9qUV.mjs";
4
+ import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-CNErHQbt.mjs";
5
5
  import { t as aggregateBindingErrorsIntoJsError } from "./error-B5cMIevi.mjs";
6
6
  import { BindingWatcher, shutdownAsyncRuntime } from "../rolldown-binding.wasi.cjs";
7
7
  //#region ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
@@ -1,6 +1,6 @@
1
- import { a as parse, o as parseSync } from "./error-Azs8e8cN.js";
2
- import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./resolve-tsconfig-Cmw0SAxd.js";
3
- //#region ../../node_modules/.pnpm/oxc-parser@0.135.0/node_modules/oxc-parser/src-js/generated/visit/walk.js
1
+ import { a as parse, o as parseSync } from "./error-DOcnYe1L.js";
2
+ import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./resolve-tsconfig-B_KTldgL.js";
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.135.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.135.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 = [];
@@ -1,7 +1,7 @@
1
- import { $ as AssignmentPattern, $n as TSInferType, $r as UpdateExpression, $t as JSXMemberExpression, An as SwitchStatement, Ar as TSTupleType, At as ForStatement, Bn as TSConstructorType, Br as TSTypeQuery, Bt as ImportNamespaceSpecifier, Cn as ReturnStatement, Cr as TSRestType, Ct as ExportAllDeclaration, Dn as StringLiteral, Dr as TSTemplateLiteralType, Dt as ExpressionStatement, En as StaticBlock, Er as TSSymbolKeyword, Et as ExportSpecifier, Fn as TSBooleanKeyword, Fr as TSTypeOperator, Ft as IfStatement, Gn as TSExternalModuleReference, Gr as TSVoidKeyword, Gt as JSXAttribute, Hn as TSEnumDeclaration, Hr as TSUndefinedKeyword, Ht as JSDocNonNullableType, In as TSCallSignatureDeclaration, Ir as TSTypeParameter, It as ImportAttribute, J as AccessorProperty, Jn as TSImportEqualsDeclaration, Jr as TemplateLiteral, Jt as JSXElement, Kn as TSFunctionType, Kr as TaggedTemplateExpression, Kt as JSXClosingElement, Ln as TSClassImplements, Lr as TSTypeParameterDeclaration, Lt as ImportDeclaration, Mn as TSArrayType, Mr as TSTypeAnnotation, Mt as Function, Nn as TSAsExpression, Nr as TSTypeAssertion, Nt as IdentifierName, On as Super, Or as TSThisParameter, Ot as ForInStatement, Pn as TSBigIntKeyword, Pr as TSTypeLiteral, Pt as IdentifierReference, Q as AssignmentExpression, Qn as TSIndexedAccessType, Qr as UnaryExpression, Qt as JSXIdentifier, Rn as TSConditionalType, Rr as TSTypeParameterInstantiation, Rt as ImportDefaultSpecifier, Sn as RegExpLiteral, Sr as TSQualifiedName, St as EmptyStatement, Tn as SpreadElement, Tr as TSStringKeyword, Tt as ExportNamedDeclaration, Un as TSEnumMember, Ur as TSUnionType, Ut as JSDocNullableType, Vn as TSEnumBody, Vr as TSTypeReference, Vt as ImportSpecifier, Wn as TSExportAssignment, Wr as TSUnknownKeyword, Wt as JSDocUnknownType, X as ArrayPattern, Xn as TSIndexSignature, Xr as ThrowStatement, Xt as JSXExpressionContainer, Y as ArrayExpression, Yn as TSImportType, Yr as ThisExpression, Yt as JSXEmptyExpression, Z as ArrowFunctionExpression, Zn as TSIndexSignatureName, Zr as TryStatement, Zt as JSXFragment, _ as BindingTsconfigRawOptions, _n as ObjectProperty, _r as TSObjectKeyword, _t as ConditionalExpression, ai as YieldExpression, an as JSXText, ar as TSIntrinsicKeyword, at as BinaryExpression, bn as Program, br as TSParenthesizedType, bt as Decorator, cn as LogicalExpression, cr as TSMethodSignature, ct as BindingRestElement, dn as MethodDefinition, dr as TSNamedTupleMember, dt as BreakStatement, ei as V8IntrinsicExpression, en as JSXNamespacedName, er as TSInstantiationExpression, et as AssignmentTargetProperty, fn as NewExpression, fr as TSNamespaceExportDeclaration, ft as CallExpression, g as BindingTsconfigCompilerOptions, gn as ObjectPattern, gr as TSNumberKeyword, gt as ClassBody, hn as ObjectExpression, hr as TSNullKeyword, ht as Class, ii as WithStatement, in as JSXSpreadChild, ir as TSIntersectionType, it as BigIntLiteral, jn as TSAnyKeyword, jr as TSTypeAliasDeclaration, jt as FormalParameterRest, kn as SwitchCase, kr as TSThisType, kt as ForOfStatement, ln as MemberExpression, lr as TSModuleBlock, lt as BlockStatement, mn as NumericLiteral, mr as TSNonNullExpression, mt as ChainExpression, ni as VariableDeclarator, nn as JSXOpeningFragment, nr as TSInterfaceDeclaration, nt as AssignmentTargetRest, oi as types_d_exports, on as LabelIdentifier, or as TSLiteralType, ot as BindingIdentifier, pn as NullLiteral, pr as TSNeverKeyword, pt as CatchClause, qn as TSGlobalDeclaration, qr as TemplateElement, qt as JSXClosingFragment, ri as WhileStatement, rn as JSXSpreadAttribute, rr as TSInterfaceHeritage, rt as AwaitExpression, sn as LabeledStatement, sr as TSMappedType, st as BindingProperty, ti as VariableDeclaration, tn as JSXOpeningElement, tr as TSInterfaceBody, tt as AssignmentTargetPropertyProperty, un as MetaProperty, ur as TSModuleDeclaration, ut as BooleanLiteral, vn as ParenthesizedExpression, vr as TSOptionalType, vt as ContinueStatement, wn as SequenceExpression, wr as TSSatisfiesExpression, wt as ExportDefaultDeclaration, xn as PropertyDefinition, xr as TSPropertySignature, xt as DoWhileStatement, yn as PrivateIdentifier, yr as TSParameterProperty, yt as DebuggerStatement, zn as TSConstructSignatureDeclaration, zr as TSTypePredicate, zt as ImportExpression } from "./shared/binding-BPMI4t0-.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-DulXg6tQ.mjs";
1
+ import { $ as AssignmentPattern, $n as TSInferType, $r as UpdateExpression, $t as JSXMemberExpression, An as SwitchStatement, Ar as TSTupleType, At as ForStatement, Bn as TSConstructorType, Br as TSTypeQuery, Bt as ImportNamespaceSpecifier, Cn as ReturnStatement, Cr as TSRestType, Ct as ExportAllDeclaration, Dn as StringLiteral, Dr as TSTemplateLiteralType, Dt as ExpressionStatement, En as StaticBlock, Er as TSSymbolKeyword, Et as ExportSpecifier, Fn as TSBooleanKeyword, Fr as TSTypeOperator, Ft as IfStatement, Gn as TSExternalModuleReference, Gr as TSVoidKeyword, Gt as JSXAttribute, Hn as TSEnumDeclaration, Hr as TSUndefinedKeyword, Ht as JSDocNonNullableType, In as TSCallSignatureDeclaration, Ir as TSTypeParameter, It as ImportAttribute, J as AccessorProperty, Jn as TSImportEqualsDeclaration, Jr as TemplateLiteral, Jt as JSXElement, Kn as TSFunctionType, Kr as TaggedTemplateExpression, Kt as JSXClosingElement, Ln as TSClassImplements, Lr as TSTypeParameterDeclaration, Lt as ImportDeclaration, Mn as TSArrayType, Mr as TSTypeAnnotation, Mt as Function, Nn as TSAsExpression, Nr as TSTypeAssertion, Nt as IdentifierName, On as Super, Or as TSThisParameter, Ot as ForInStatement, Pn as TSBigIntKeyword, Pr as TSTypeLiteral, Pt as IdentifierReference, Q as AssignmentExpression, Qn as TSIndexedAccessType, Qr as UnaryExpression, Qt as JSXIdentifier, Rn as TSConditionalType, Rr as TSTypeParameterInstantiation, Rt as ImportDefaultSpecifier, Sn as RegExpLiteral, Sr as TSQualifiedName, St as EmptyStatement, Tn as SpreadElement, Tr as TSStringKeyword, Tt as ExportNamedDeclaration, Un as TSEnumMember, Ur as TSUnionType, Ut as JSDocNullableType, Vn as TSEnumBody, Vr as TSTypeReference, Vt as ImportSpecifier, Wn as TSExportAssignment, Wr as TSUnknownKeyword, Wt as JSDocUnknownType, X as ArrayPattern, Xn as TSIndexSignature, Xr as ThrowStatement, Xt as JSXExpressionContainer, Y as ArrayExpression, Yn as TSImportType, Yr as ThisExpression, Yt as JSXEmptyExpression, Z as ArrowFunctionExpression, Zn as TSIndexSignatureName, Zr as TryStatement, Zt as JSXFragment, _ as BindingTsconfigRawOptions, _n as ObjectProperty, _r as TSObjectKeyword, _t as ConditionalExpression, ai as YieldExpression, an as JSXText, ar as TSIntrinsicKeyword, at as BinaryExpression, bn as Program, br as TSParenthesizedType, bt as Decorator, cn as LogicalExpression, cr as TSMethodSignature, ct as BindingRestElement, dn as MethodDefinition, dr as TSNamedTupleMember, dt as BreakStatement, ei as V8IntrinsicExpression, en as JSXNamespacedName, er as TSInstantiationExpression, et as AssignmentTargetProperty, fn as NewExpression, fr as TSNamespaceExportDeclaration, ft as CallExpression, g as BindingTsconfigCompilerOptions, gn as ObjectPattern, gr as TSNumberKeyword, gt as ClassBody, hn as ObjectExpression, hr as TSNullKeyword, ht as Class, ii as WithStatement, in as JSXSpreadChild, ir as TSIntersectionType, it as BigIntLiteral, jn as TSAnyKeyword, jr as TSTypeAliasDeclaration, jt as FormalParameterRest, kn as SwitchCase, kr as TSThisType, kt as ForOfStatement, ln as MemberExpression, lr as TSModuleBlock, lt as BlockStatement, mn as NumericLiteral, mr as TSNonNullExpression, mt as ChainExpression, ni as VariableDeclarator, nn as JSXOpeningFragment, nr as TSInterfaceDeclaration, nt as AssignmentTargetRest, oi as types_d_exports, on as LabelIdentifier, or as TSLiteralType, ot as BindingIdentifier, pn as NullLiteral, pr as TSNeverKeyword, pt as CatchClause, qn as TSGlobalDeclaration, qr as TemplateElement, qt as JSXClosingFragment, ri as WhileStatement, rn as JSXSpreadAttribute, rr as TSInterfaceHeritage, rt as AwaitExpression, sn as LabeledStatement, sr as TSMappedType, st as BindingProperty, ti as VariableDeclaration, tn as JSXOpeningElement, tr as TSInterfaceBody, tt as AssignmentTargetPropertyProperty, un as MetaProperty, ur as TSModuleDeclaration, ut as BooleanLiteral, vn as ParenthesizedExpression, vr as TSOptionalType, vt as ContinueStatement, wn as SequenceExpression, wr as TSSatisfiesExpression, wt as ExportDefaultDeclaration, xn as PropertyDefinition, xr as TSPropertySignature, xt as DoWhileStatement, yn as PrivateIdentifier, yr as TSParameterProperty, yt as DebuggerStatement, zn as TSConstructSignatureDeclaration, zr as TSTypePredicate, zt as ImportExpression } from "./shared/binding-dOJO0Ipo.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-Wt-zRSFQ.mjs";
3
3
 
4
- //#region ../../node_modules/.pnpm/oxc-parser@0.135.0/node_modules/oxc-parser/src-js/generated/visit/visitor.d.ts
4
+ //#region ../../node_modules/.pnpm/oxc-parser@0.137.0/node_modules/oxc-parser/src-js/generated/visit/visitor.d.ts
5
5
  interface VisitorObject$1 {
6
6
  DebuggerStatement?: (node: DebuggerStatement) => void;
7
7
  "DebuggerStatement:exit"?: (node: DebuggerStatement) => void;
@@ -1,6 +1,6 @@
1
- import { n as parseSync, t as parse } from "./shared/parse-DNkPrz4w.mjs";
1
+ import { n as parseSync, t as parse } from "./shared/parse-DzXgx0D0.mjs";
2
2
  import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-DsK7KzKK.mjs";
3
- //#region ../../node_modules/.pnpm/oxc-parser@0.135.0/node_modules/oxc-parser/src-js/generated/visit/walk.js
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.135.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.135.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/browser",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
5
5
  "keywords": [
6
6
  "bundler",
@@ -58,8 +58,8 @@
58
58
  "registry": "https://registry.npmjs.org/"
59
59
  },
60
60
  "dependencies": {
61
- "@emnapi/core": "1.11.0",
62
- "@emnapi/runtime": "1.11.0",
61
+ "@emnapi/core": "1.11.1",
62
+ "@emnapi/runtime": "1.11.1",
63
63
  "@napi-rs/wasm-runtime": "^1.1.5"
64
64
  },
65
65
  "scripts": {