rolldown 1.0.0-beta.53 → 1.0.0-beta.54

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 (28) hide show
  1. package/dist/cli-setup.mjs +1 -1
  2. package/dist/cli.mjs +11 -11
  3. package/dist/config.d.mts +2 -2
  4. package/dist/config.mjs +7 -7
  5. package/dist/experimental-index.d.mts +9 -9
  6. package/dist/experimental-index.mjs +10 -10
  7. package/dist/filter-index.d.mts +2 -2
  8. package/dist/index.d.mts +3 -3
  9. package/dist/index.mjs +7 -7
  10. package/dist/parallel-plugin-worker.mjs +4 -4
  11. package/dist/parallel-plugin.d.mts +2 -2
  12. package/dist/parse-ast-index.d.mts +1 -1
  13. package/dist/parse-ast-index.mjs +2 -2
  14. package/dist/plugins-index.d.mts +3 -3
  15. package/dist/plugins-index.mjs +3 -3
  16. package/dist/shared/{binding-BJqdPU1r.mjs → binding-BgawCXFG.mjs} +26 -26
  17. package/dist/shared/{binding-CY7Z709f.d.mts → binding-yIBVkeOE.d.mts} +63 -19
  18. package/dist/shared/{bindingify-input-options-Bk0BBr2s.mjs → bindingify-input-options-DvsExmEF.mjs} +17 -6
  19. package/dist/shared/{constructors-CMvFUBhn.d.mts → constructors-BgO0Ou3T.d.mts} +6 -6
  20. package/dist/shared/{constructors-LQ8mmhQE.mjs → constructors-DqAPGbqJ.mjs} +8 -3
  21. package/dist/shared/{define-config-BS8Bt-r8.d.mts → define-config-COJu-A7R.d.mts} +19 -4
  22. package/dist/shared/{load-config-JSXrnuaS.mjs → load-config--qXpT-nH.mjs} +1 -1
  23. package/dist/shared/{normalize-string-or-regex-BhaIG1rU.mjs → normalize-string-or-regex-CF1OWLn9.mjs} +5 -3
  24. package/dist/shared/{parse-ast-index-BFX0oHaQ.mjs → parse-ast-index-DeJDe-DO.mjs} +2 -2
  25. package/dist/shared/{rolldown-Cqalltnr.mjs → rolldown-BsTgRBvz.mjs} +1 -1
  26. package/dist/shared/{rolldown-build-BEU8N80I.mjs → rolldown-build-DtYoS8Tq.mjs} +6 -5
  27. package/dist/shared/{watch-DBnC-zol.mjs → watch-CfGzq0YA.mjs} +17 -5
  28. package/package.json +19 -19
@@ -1,4 +1,4 @@
1
- import { t as require_binding } from "./shared/binding-BJqdPU1r.mjs";
1
+ import { t as require_binding } from "./shared/binding-BgawCXFG.mjs";
2
2
 
3
3
  //#region src/cli/setup-index.ts
4
4
  var import_binding = require_binding();
package/dist/cli.mjs CHANGED
@@ -1,12 +1,12 @@
1
- import "./shared/binding-BJqdPU1r.mjs";
2
- import { n as onExit, t as watch } from "./shared/watch-DBnC-zol.mjs";
1
+ import "./shared/binding-BgawCXFG.mjs";
2
+ import { n as onExit, t as watch } from "./shared/watch-CfGzq0YA.mjs";
3
3
  import { t as arraify } from "./shared/misc-CxyvWjTr.mjs";
4
- import { b as description, x as version } from "./shared/normalize-string-or-regex-BhaIG1rU.mjs";
5
- import { a as getOutputCliKeys, c as styleText$1, i as getInputCliKeys, o as validateCliOptions, r as getCliSchemaInfo } from "./shared/rolldown-build-BEU8N80I.mjs";
6
- import "./shared/bindingify-input-options-Bk0BBr2s.mjs";
7
- import "./shared/parse-ast-index-BFX0oHaQ.mjs";
8
- import { t as rolldown } from "./shared/rolldown-Cqalltnr.mjs";
9
- import { t as loadConfig } from "./shared/load-config-JSXrnuaS.mjs";
4
+ import { b as description, x as version } from "./shared/normalize-string-or-regex-CF1OWLn9.mjs";
5
+ import { a as getOutputCliKeys, c as styleText$1, i as getInputCliKeys, o as validateCliOptions, r as getCliSchemaInfo } from "./shared/rolldown-build-DtYoS8Tq.mjs";
6
+ import "./shared/bindingify-input-options-DvsExmEF.mjs";
7
+ import "./shared/parse-ast-index-DeJDe-DO.mjs";
8
+ import { t as rolldown } from "./shared/rolldown-BsTgRBvz.mjs";
9
+ import { t as loadConfig } from "./shared/load-config--qXpT-nH.mjs";
10
10
  import path, { sep } from "node:path";
11
11
  import { formatWithOptions, parseArgs } from "node:util";
12
12
  import process$1 from "node:process";
@@ -1162,14 +1162,14 @@ function parseCliArguments() {
1162
1162
  writable: true
1163
1163
  });
1164
1164
  } else if (type === "object" && typeof option.value === "string") {
1165
- const [key, value] = option.value.split(",").map((x) => x.split("="))[0];
1165
+ const pairs = option.value.split(",").map((x) => x.split("="));
1166
1166
  if (!values[option.name]) Object.defineProperty(values, option.name, {
1167
1167
  value: {},
1168
1168
  enumerable: true,
1169
1169
  configurable: true,
1170
1170
  writable: true
1171
1171
  });
1172
- if (key && value) Object.defineProperty(values[option.name], key, {
1172
+ for (const [key, value] of pairs) if (key && value) Object.defineProperty(values[option.name], key, {
1173
1173
  value,
1174
1174
  enumerable: true,
1175
1175
  configurable: true,
@@ -1238,7 +1238,7 @@ function getClearScreenFunction(options$1) {
1238
1238
  }
1239
1239
 
1240
1240
  //#endregion
1241
- //#region \0@oxc-project+runtime@0.101.0/helpers/usingCtx.js
1241
+ //#region \0@oxc-project+runtime@0.102.0/helpers/usingCtx.js
1242
1242
  function _usingCtx() {
1243
1243
  var r$1 = "function" == typeof SuppressedError ? SuppressedError : function(r$2, e$1) {
1244
1244
  var n$2 = Error();
package/dist/config.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { n as ConfigExport, t as defineConfig } from "./shared/define-config-BS8Bt-r8.mjs";
2
- import "./shared/binding-CY7Z709f.mjs";
1
+ import { n as ConfigExport, t as defineConfig } from "./shared/define-config-COJu-A7R.mjs";
2
+ import "./shared/binding-yIBVkeOE.mjs";
3
3
 
4
4
  //#region src/utils/load-config.d.ts
5
5
  declare function loadConfig(configPath: string): Promise<ConfigExport>;
package/dist/config.mjs CHANGED
@@ -1,11 +1,11 @@
1
- import "./shared/binding-BJqdPU1r.mjs";
2
- import { x as version } from "./shared/normalize-string-or-regex-BhaIG1rU.mjs";
3
- import "./shared/rolldown-build-BEU8N80I.mjs";
4
- import "./shared/bindingify-input-options-Bk0BBr2s.mjs";
5
- import "./shared/parse-ast-index-BFX0oHaQ.mjs";
6
- import "./shared/rolldown-Cqalltnr.mjs";
1
+ import "./shared/binding-BgawCXFG.mjs";
2
+ import { x as version } from "./shared/normalize-string-or-regex-CF1OWLn9.mjs";
3
+ import "./shared/rolldown-build-DtYoS8Tq.mjs";
4
+ import "./shared/bindingify-input-options-DvsExmEF.mjs";
5
+ import "./shared/parse-ast-index-DeJDe-DO.mjs";
6
+ import "./shared/rolldown-BsTgRBvz.mjs";
7
7
  import { t as defineConfig } from "./shared/define-config-DfeZGBEt.mjs";
8
- import { t as loadConfig } from "./shared/load-config-JSXrnuaS.mjs";
8
+ import { t as loadConfig } from "./shared/load-config--qXpT-nH.mjs";
9
9
 
10
10
  //#region src/config.ts
11
11
  const VERSION = version;
@@ -1,6 +1,6 @@
1
- import { A as BuiltinPlugin, Et as OutputChunk, F as OutputBundle, N as SourceMapInput, U as defineParallelPlugin, W as MinimalPluginContext, bt as OutputOptions, et as NormalizedOutputOptions, jt as freeExternalMemory, kt as RolldownOutput, o as InputOptions } from "./shared/define-config-BS8Bt-r8.mjs";
2
- import { $ as transformSync, B as ParserOptions, C as BindingViteManifestPluginConfig, G as TransformResult, H as ResolveResult, I as MinifyOptions, J as isolatedDeclarationSync, K as createTokioRuntime, L as MinifyResult, N as IsolatedDeclarationsOptions, O as BindingViteTransformPluginConfig, P as IsolatedDeclarationsResult, Q as transform, R as NapiResolveOptions, U as ResolverFactory, W as TransformOptions, X as minifySync, Y as minify, Z as moduleRunnerTransform, _ as BindingViteCssPostPluginConfig, b as BindingViteHtmlPluginConfig, c as BindingRebuildStrategy, f as BindingUrlResolver, g as BindingViteCssPluginConfig, m as BindingViteAssetPluginConfig, n as BindingBundleState, q as isolatedDeclaration, r as BindingClientHmrUpdate, z as ParseResult } from "./shared/binding-CY7Z709f.mjs";
3
- import { a as viteDynamicImportVarsPlugin, c as viteJsonPlugin, d as viteReactRefreshWrapperPlugin, f as viteReporterPlugin, g as viteWebWorkerPostPlugin, h as viteWasmHelperPlugin, i as viteBuildImportAnalysisPlugin, l as viteLoadFallbackPlugin, m as viteWasmFallbackPlugin, n as isolatedDeclarationPlugin, o as viteHtmlInlineProxyPlugin, p as viteResolvePlugin, r as viteAssetImportMetaUrlPlugin, s as viteImportGlobPlugin, u as viteModulePreloadPolyfillPlugin } from "./shared/constructors-CMvFUBhn.mjs";
1
+ import { A as BuiltinPlugin, At as RolldownOutput, Dt as OutputChunk, F as OutputBundle, G as MinimalPluginContext, Mt as freeExternalMemory, N as SourceMapInput, W as defineParallelPlugin, o as InputOptions, tt as NormalizedOutputOptions, xt as OutputOptions } from "./shared/define-config-COJu-A7R.mjs";
2
+ import { $ as transformSync, B as ParserOptions, C as BindingViteManifestPluginConfig, G as TransformResult, H as ResolveResult, I as MinifyOptions, J as isolatedDeclarationSync, K as createTokioRuntime, L as MinifyResult, N as IsolatedDeclarationsOptions, O as BindingViteTransformPluginConfig, P as IsolatedDeclarationsResult, Q as transform, R as NapiResolveOptions, U as ResolverFactory, W as TransformOptions, X as minifySync, Y as minify, Z as moduleRunnerTransform, _ as BindingViteCssPostPluginConfig, b as BindingViteHtmlPluginConfig, c as BindingRebuildStrategy, f as BindingUrlResolver, g as BindingViteCssPluginConfig, m as BindingViteAssetPluginConfig, n as BindingBundleState, q as isolatedDeclaration, r as BindingClientHmrUpdate, z as ParseResult } from "./shared/binding-yIBVkeOE.mjs";
3
+ import { a as viteDynamicImportVarsPlugin, c as viteJsonPlugin, d as viteReactRefreshWrapperPlugin, f as viteReporterPlugin, g as viteWebWorkerPostPlugin, h as viteWasmHelperPlugin, i as viteBuildImportAnalysisPlugin, l as viteLoadFallbackPlugin, m as viteWasmFallbackPlugin, n as isolatedDeclarationPlugin, o as viteHtmlInlineProxyPlugin, p as viteResolvePlugin, r as viteAssetImportMetaUrlPlugin, s as viteImportGlobPlugin, u as viteModulePreloadPolyfillPlugin } from "./shared/constructors-BgO0Ou3T.mjs";
4
4
 
5
5
  //#region src/api/dev/dev-options.d.ts
6
6
  type DevOnHmrUpdates = (result: Error | {
@@ -122,13 +122,13 @@ declare function viteAssetPlugin(config: BindingViteAssetPluginConfig): BuiltinP
122
122
  //#endregion
123
123
  //#region src/builtin-plugin/transform-plugin.d.ts
124
124
  type TransformPattern = string | RegExp | readonly (RegExp | string)[];
125
- type TransformPluginConfig = Omit<BindingViteTransformPluginConfig, "include" | "exclude" | "jsxRefreshInclude" | "jsxRefreshExclude"> & {
125
+ type TransformPluginConfig = Omit<BindingViteTransformPluginConfig, "include" | "exclude" | "jsxRefreshInclude" | "jsxRefreshExclude" | "yarnPnp"> & {
126
126
  include?: TransformPattern;
127
127
  exclude?: TransformPattern;
128
128
  jsxRefreshInclude?: TransformPattern;
129
129
  jsxRefreshExclude?: TransformPattern;
130
130
  };
131
- declare function viteTransformPlugin(config?: TransformPluginConfig): BuiltinPlugin;
131
+ declare function viteTransformPlugin(config: TransformPluginConfig): BuiltinPlugin;
132
132
  //#endregion
133
133
  //#region src/builtin-plugin/vite-css-plugin.d.ts
134
134
  type ViteCssPluginConfig = Omit<BindingViteCssPluginConfig, "compileCSS"> & {
@@ -139,13 +139,13 @@ type ViteCssPluginConfig = Omit<BindingViteCssPluginConfig, "compileCSS"> & {
139
139
  deps?: Set<string>;
140
140
  }>;
141
141
  };
142
- declare function viteCSSPlugin(config?: ViteCssPluginConfig): BuiltinPlugin;
142
+ declare function viteCSSPlugin(config: ViteCssPluginConfig): BuiltinPlugin;
143
143
  //#endregion
144
144
  //#region src/builtin-plugin/vite-css-post-plugin.d.ts
145
145
  type ViteCssPostPluginConfig = Omit<BindingViteCssPostPluginConfig, "cssScopeTo" | "isLegacy"> & {
146
146
  isOutputOptionsForLegacyChunks?: (outputOptions: NormalizedOutputOptions) => boolean;
147
147
  };
148
- declare function viteCSSPostPlugin(config?: ViteCssPostPluginConfig): BuiltinPlugin;
148
+ declare function viteCSSPostPlugin(config: ViteCssPostPluginConfig): BuiltinPlugin;
149
149
  //#endregion
150
150
  //#region src/builtin-plugin/vite-html-plugin.d.ts
151
151
  interface HtmlTagDescriptor {
@@ -183,12 +183,12 @@ interface ViteHtmlPluginOptions extends Omit<BindingViteHtmlPluginConfig, "trans
183
183
  postHooks: IndexHtmlTransformHook[];
184
184
  applyHtmlTransforms: (html: string, hooks: IndexHtmlTransformHook[], pluginContext: MinimalPluginContext, ctx: IndexHtmlTransformContext) => Promise<string>;
185
185
  }
186
- declare function viteHtmlPlugin(config?: ViteHtmlPluginOptions): BuiltinPlugin;
186
+ declare function viteHtmlPlugin(config: ViteHtmlPluginOptions): BuiltinPlugin;
187
187
  //#endregion
188
188
  //#region src/builtin-plugin/vite-manifest-plugin.d.ts
189
189
  type ViteManifestPluginConfig = Omit<BindingViteManifestPluginConfig, "isLegacy"> & {
190
190
  isOutputOptionsForLegacyChunks?: (outputOptions: NormalizedOutputOptions) => boolean;
191
191
  };
192
- declare function viteManifestPlugin(config?: ViteManifestPluginConfig): BuiltinPlugin;
192
+ declare function viteManifestPlugin(config: ViteManifestPluginConfig): BuiltinPlugin;
193
193
  //#endregion
194
194
  export { type BindingClientHmrUpdate, BindingRebuildStrategy, DevEngine, type DevOptions, type DevWatchOptions, type IsolatedDeclarationsOptions, type IsolatedDeclarationsResult, type MinifyOptions, type MinifyResult, type ParseResult, type ParserOptions, type NapiResolveOptions as ResolveOptions, type ResolveResult, ResolverFactory, type TransformOptions, type TransformResult, type ViteHtmlPluginOptions, createTokioRuntime, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, minify, minifySync, moduleRunnerTransform, parse, parseSync, scan, transform, transformSync, viteAliasPlugin, viteAssetImportMetaUrlPlugin, viteAssetPlugin, viteBuildImportAnalysisPlugin, viteCSSPlugin, viteCSSPostPlugin, viteHtmlInlineProxyPlugin, viteHtmlPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWasmFallbackPlugin, viteWasmHelperPlugin, viteWebWorkerPostPlugin };
@@ -1,9 +1,9 @@
1
- import { t as require_binding } from "./shared/binding-BJqdPU1r.mjs";
2
- import { d as bindingifySourcemap, n as BuiltinPlugin, t as normalizedStringOrRegex, u as transformToRollupOutput } from "./shared/normalize-string-or-regex-BhaIG1rU.mjs";
3
- import { l as PluginDriver, n as createBundlerOptions, s as validateOption, t as RolldownBuild } from "./shared/rolldown-build-BEU8N80I.mjs";
4
- import { o as normalizeBindingResult, s as unwrapBindingResult } from "./shared/bindingify-input-options-Bk0BBr2s.mjs";
5
- import { i as parseSync, r as parse } from "./shared/parse-ast-index-BFX0oHaQ.mjs";
6
- import { a as viteDynamicImportVarsPlugin, c as viteJsonPlugin, d as viteReactRefreshWrapperPlugin, f as viteReporterPlugin, g as viteWebWorkerPostPlugin, h as viteWasmHelperPlugin, i as viteBuildImportAnalysisPlugin, l as viteLoadFallbackPlugin, m as viteWasmFallbackPlugin, n as isolatedDeclarationPlugin, o as viteHtmlInlineProxyPlugin, p as viteResolvePlugin, r as viteAssetImportMetaUrlPlugin, s as viteImportGlobPlugin, u as viteModulePreloadPolyfillPlugin } from "./shared/constructors-LQ8mmhQE.mjs";
1
+ import { t as require_binding } from "./shared/binding-BgawCXFG.mjs";
2
+ import { d as bindingifySourcemap, n as BuiltinPlugin, t as normalizedStringOrRegex, u as transformToRollupOutput } from "./shared/normalize-string-or-regex-CF1OWLn9.mjs";
3
+ import { l as PluginDriver, n as createBundlerOptions, s as validateOption, t as RolldownBuild } from "./shared/rolldown-build-DtYoS8Tq.mjs";
4
+ import { o as normalizeBindingResult, s as unwrapBindingResult } from "./shared/bindingify-input-options-DvsExmEF.mjs";
5
+ import { i as parseSync, r as parse } from "./shared/parse-ast-index-DeJDe-DO.mjs";
6
+ import { a as viteDynamicImportVarsPlugin, c as viteJsonPlugin, d as viteReactRefreshWrapperPlugin, f as viteReporterPlugin, g as viteWebWorkerPostPlugin, h as viteWasmHelperPlugin, i as viteBuildImportAnalysisPlugin, l as viteLoadFallbackPlugin, m as viteWasmFallbackPlugin, n as isolatedDeclarationPlugin, o as viteHtmlInlineProxyPlugin, p as viteResolvePlugin, r as viteAssetImportMetaUrlPlugin, s as viteImportGlobPlugin, u as viteModulePreloadPolyfillPlugin } from "./shared/constructors-DqAPGbqJ.mjs";
7
7
  import { pathToFileURL } from "node:url";
8
8
 
9
9
  //#region src/api/dev/dev-engine.ts
@@ -198,14 +198,14 @@ function viteAssetPlugin(config) {
198
198
  //#endregion
199
199
  //#region src/builtin-plugin/transform-plugin.ts
200
200
  function viteTransformPlugin(config) {
201
- if (config) config = {
201
+ return new BuiltinPlugin("builtin:vite-transform", {
202
202
  ...config,
203
203
  include: normalizedStringOrRegex(config.include),
204
204
  exclude: normalizedStringOrRegex(config.exclude),
205
205
  jsxRefreshInclude: normalizedStringOrRegex(config.jsxRefreshInclude),
206
- jsxRefreshExclude: normalizedStringOrRegex(config.jsxRefreshExclude)
207
- };
208
- return new BuiltinPlugin("builtin:vite-transform", config);
206
+ jsxRefreshExclude: normalizedStringOrRegex(config.jsxRefreshExclude),
207
+ yarnPnp: typeof process === "object" && !!process.versions?.pnp
208
+ });
209
209
  }
210
210
 
211
211
  //#endregion
@@ -1,4 +1,4 @@
1
- import { k as withFilter } from "./shared/define-config-BS8Bt-r8.mjs";
2
- import "./shared/binding-CY7Z709f.mjs";
1
+ import { k as withFilter } from "./shared/define-config-COJu-A7R.mjs";
2
+ import "./shared/binding-yIBVkeOE.mjs";
3
3
  import { and, code, exclude, id, include, moduleType, not, or, queries, query } from "@rolldown/pluginutils";
4
4
  export { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter };
package/dist/index.d.mts CHANGED
@@ -1,3 +1,3 @@
1
- import { $ as InternalModuleFormat, At as SourceMap, B as GetModuleInfo, C as ResolveIdResult, Ct as PartialNull, D as SourceDescription, Dt as RenderedChunk, E as RolldownPluginOption, Et as OutputChunk, F as OutputBundle, Ft as LogLevelOption, G as PluginContextMeta, H as DefineParallelPluginResult, I as TreeshakingOptions, It as LogOrStringHandler, J as ModuleTypeFilter, K as GeneralHookFilter, L as TransformPluginContext, Lt as RollupError, M as ExistingRawSourceMap, Mt as ModuleInfo, N as SourceMapInput, Nt as SourcemapIgnoreListOption, O as TransformResult, Ot as RenderedModule, P as RolldownOptionsFunction, Pt as LogLevel, Q as RolldownFsModule, R as EmittedAsset, Rt as RollupLog, S as ResolveIdExtraOptions, T as RolldownPlugin, Tt as OutputAsset, V as PluginContext, W as MinimalPluginContext, X as RolldownDirectoryEntry, Y as BufferEncoding, Z as RolldownFileStats, _ as ModuleType, _t as GlobalsFunction, a as InputOption, at as RolldownWatcher, b as PartialResolvedId, bt as OutputOptions, c as OptimizationOptions, ct as rolldown, d as CustomPluginOptions, dt as build, et as NormalizedOutputOptions, f as FunctionPluginHooks, ft as AddonFunction, g as ModuleOptions, gt as GeneratedCodePreset, h as LoadResult, ht as GeneratedCodeOptions, i as ExternalOption, it as watch, j as VERSION, kt as RolldownOutput, l as WatcherOptions, lt as RolldownBuild, m as ImportKind, mt as ChunkingContext, n as ConfigExport, nt as LoggingFunction, o as InputOptions, ot as RolldownWatcherEvent, p as HookFilterExtension, pt as ChunkFileNamesFunction, q as HookFilter, r as RolldownOptions, rt as WarningHandlerWithDefault, s as ModuleTypes, st as WatchOptions, t as defineConfig, tt as NormalizedInputOptions, u as AsyncPluginHooks, ut as BuildOptions, v as ObjectHook, vt as MinifyOptions, w as ResolvedId, x as Plugin, xt as PreRenderedAsset, y as ParallelPluginHooks, yt as ModuleFormat, z as EmittedFile, zt as RollupLogWithString } from "./shared/define-config-BS8Bt-r8.mjs";
2
- import { V as PreRenderedChunk, s as BindingMagicString } from "./shared/binding-CY7Z709f.mjs";
3
- export { AddonFunction, AsyncPluginHooks, BindingMagicString, BufferEncoding, BuildOptions, ChunkFileNamesFunction, ChunkingContext, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GeneratedCodeOptions, GeneratedCodePreset, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OptimizationOptions, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, PreRenderedChunk, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownDirectoryEntry, RolldownFileStats, RolldownFsModule, RolldownOptions, RolldownOptionsFunction, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch };
1
+ import { $ as RolldownFsModule, At as RolldownOutput, B as EmittedPrebuiltChunk, Bt as RollupLogWithString, C as ResolveIdResult, D as SourceDescription, Dt as OutputChunk, E as RolldownPluginOption, Et as OutputAsset, F as OutputBundle, Ft as LogLevel, G as MinimalPluginContext, H as PluginContext, I as TreeshakingOptions, It as LogLevelOption, J as HookFilter, K as PluginContextMeta, L as TransformPluginContext, Lt as LogOrStringHandler, M as ExistingRawSourceMap, N as SourceMapInput, Nt as ModuleInfo, O as TransformResult, Ot as RenderedChunk, P as RolldownOptionsFunction, Pt as SourcemapIgnoreListOption, Q as RolldownFileStats, R as EmittedAsset, Rt as RollupError, S as ResolveIdExtraOptions, St as PreRenderedAsset, T as RolldownPlugin, U as DefineParallelPluginResult, V as GetModuleInfo, X as BufferEncoding, Y as ModuleTypeFilter, Z as RolldownDirectoryEntry, _ as ModuleType, _t as GeneratedCodePreset, a as InputOption, at as watch, b as PartialResolvedId, bt as ModuleFormat, c as OptimizationOptions, ct as WatchOptions, d as CustomPluginOptions, dt as BuildOptions, et as InternalModuleFormat, f as FunctionPluginHooks, ft as build, g as ModuleOptions, gt as GeneratedCodeOptions, h as LoadResult, ht as ChunkingContext, i as ExternalOption, it as WarningHandlerWithDefault, j as VERSION, jt as SourceMap, kt as RenderedModule, l as WatcherOptions, lt as rolldown, m as ImportKind, mt as ChunkFileNamesFunction, n as ConfigExport, nt as NormalizedInputOptions, o as InputOptions, ot as RolldownWatcher, p as HookFilterExtension, pt as AddonFunction, q as GeneralHookFilter, r as RolldownOptions, rt as LoggingFunction, s as ModuleTypes, st as RolldownWatcherEvent, t as defineConfig, tt as NormalizedOutputOptions, u as AsyncPluginHooks, ut as RolldownBuild, v as ObjectHook, vt as GlobalsFunction, w as ResolvedId, wt as PartialNull, x as Plugin, xt as OutputOptions, y as ParallelPluginHooks, yt as MinifyOptions, z as EmittedFile, zt as RollupLog } from "./shared/define-config-COJu-A7R.mjs";
2
+ import { V as PreRenderedChunk, s as BindingMagicString } from "./shared/binding-yIBVkeOE.mjs";
3
+ export { AddonFunction, AsyncPluginHooks, BindingMagicString, BufferEncoding, BuildOptions, ChunkFileNamesFunction, ChunkingContext, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, EmittedPrebuiltChunk, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GeneratedCodeOptions, GeneratedCodePreset, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OptimizationOptions, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, PreRenderedChunk, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownDirectoryEntry, RolldownFileStats, RolldownFsModule, RolldownOptions, RolldownOptionsFunction, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch };
package/dist/index.mjs CHANGED
@@ -1,10 +1,10 @@
1
- import { t as require_binding } from "./shared/binding-BJqdPU1r.mjs";
2
- import { n as onExit, t as watch } from "./shared/watch-DBnC-zol.mjs";
3
- import { y as VERSION } from "./shared/normalize-string-or-regex-BhaIG1rU.mjs";
4
- import "./shared/rolldown-build-BEU8N80I.mjs";
5
- import "./shared/bindingify-input-options-Bk0BBr2s.mjs";
6
- import "./shared/parse-ast-index-BFX0oHaQ.mjs";
7
- import { t as rolldown } from "./shared/rolldown-Cqalltnr.mjs";
1
+ import { t as require_binding } from "./shared/binding-BgawCXFG.mjs";
2
+ import { n as onExit, t as watch } from "./shared/watch-CfGzq0YA.mjs";
3
+ import { y as VERSION } from "./shared/normalize-string-or-regex-CF1OWLn9.mjs";
4
+ import "./shared/rolldown-build-DtYoS8Tq.mjs";
5
+ import "./shared/bindingify-input-options-DvsExmEF.mjs";
6
+ import "./shared/parse-ast-index-DeJDe-DO.mjs";
7
+ import { t as rolldown } from "./shared/rolldown-BsTgRBvz.mjs";
8
8
  import { t as defineConfig } from "./shared/define-config-DfeZGBEt.mjs";
9
9
  import { isMainThread } from "node:worker_threads";
10
10
 
@@ -1,7 +1,7 @@
1
- import { t as require_binding } from "./shared/binding-BJqdPU1r.mjs";
2
- import "./shared/normalize-string-or-regex-BhaIG1rU.mjs";
3
- import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-Bk0BBr2s.mjs";
4
- import "./shared/parse-ast-index-BFX0oHaQ.mjs";
1
+ import { t as require_binding } from "./shared/binding-BgawCXFG.mjs";
2
+ import "./shared/normalize-string-or-regex-CF1OWLn9.mjs";
3
+ import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-DvsExmEF.mjs";
4
+ import "./shared/parse-ast-index-DeJDe-DO.mjs";
5
5
  import { parentPort, workerData } from "node:worker_threads";
6
6
 
7
7
  //#region src/parallel-plugin-worker.ts
@@ -1,5 +1,5 @@
1
- import { St as MaybePromise, x as Plugin } from "./shared/define-config-BS8Bt-r8.mjs";
2
- import "./shared/binding-CY7Z709f.mjs";
1
+ import { Ct as MaybePromise, x as Plugin } from "./shared/define-config-COJu-A7R.mjs";
2
+ import "./shared/binding-yIBVkeOE.mjs";
3
3
 
4
4
  //#region src/plugin/parallel-plugin-implementation.d.ts
5
5
  type ParallelPluginImplementation = Plugin;
@@ -1,4 +1,4 @@
1
- import { B as ParserOptions, z as ParseResult } from "./shared/binding-CY7Z709f.mjs";
1
+ import { B as ParserOptions, z as ParseResult } from "./shared/binding-yIBVkeOE.mjs";
2
2
  import { Program } from "@oxc-project/types";
3
3
 
4
4
  //#region src/parse-ast-index.d.ts
@@ -1,4 +1,4 @@
1
- import "./shared/binding-BJqdPU1r.mjs";
2
- import { n as parseAstAsync, t as parseAst } from "./shared/parse-ast-index-BFX0oHaQ.mjs";
1
+ import "./shared/binding-BgawCXFG.mjs";
2
+ import { n as parseAstAsync, t as parseAst } from "./shared/parse-ast-index-DeJDe-DO.mjs";
3
3
 
4
4
  export { parseAst, parseAstAsync };
@@ -1,6 +1,6 @@
1
- import { A as BuiltinPlugin } from "./shared/define-config-BS8Bt-r8.mjs";
2
- import { u as BindingReplacePluginConfig } from "./shared/binding-CY7Z709f.mjs";
3
- import { t as esmExternalRequirePlugin } from "./shared/constructors-CMvFUBhn.mjs";
1
+ import { A as BuiltinPlugin } from "./shared/define-config-COJu-A7R.mjs";
2
+ import { u as BindingReplacePluginConfig } from "./shared/binding-yIBVkeOE.mjs";
3
+ import { t as esmExternalRequirePlugin } from "./shared/constructors-BgO0Ou3T.mjs";
4
4
 
5
5
  //#region src/builtin-plugin/replace-plugin.d.ts
6
6
 
@@ -1,6 +1,6 @@
1
- import "./shared/binding-BJqdPU1r.mjs";
2
- import { n as BuiltinPlugin, s as makeBuiltinPluginCallable } from "./shared/normalize-string-or-regex-BhaIG1rU.mjs";
3
- import { t as esmExternalRequirePlugin } from "./shared/constructors-LQ8mmhQE.mjs";
1
+ import "./shared/binding-BgawCXFG.mjs";
2
+ import { n as BuiltinPlugin, s as makeBuiltinPluginCallable } from "./shared/normalize-string-or-regex-CF1OWLn9.mjs";
3
+ import { t as esmExternalRequirePlugin } from "./shared/constructors-DqAPGbqJ.mjs";
4
4
 
5
5
  //#region src/builtin-plugin/replace-plugin.ts
6
6
  /**
@@ -86,7 +86,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
86
86
  try {
87
87
  const binding = __require("@rolldown/binding-android-arm64");
88
88
  const bindingPackageVersion = __require("@rolldown/binding-android-arm64/package.json").version;
89
- if (bindingPackageVersion !== "1.0.0-beta.53" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.53 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
89
+ if (bindingPackageVersion !== "1.0.0-beta.54" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.54 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
90
90
  return binding;
91
91
  } catch (e) {
92
92
  loadErrors.push(e);
@@ -100,7 +100,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
100
100
  try {
101
101
  const binding = __require("@rolldown/binding-android-arm-eabi");
102
102
  const bindingPackageVersion = __require("@rolldown/binding-android-arm-eabi/package.json").version;
103
- if (bindingPackageVersion !== "1.0.0-beta.53" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.53 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
103
+ if (bindingPackageVersion !== "1.0.0-beta.54" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.54 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
104
104
  return binding;
105
105
  } catch (e) {
106
106
  loadErrors.push(e);
@@ -115,7 +115,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
115
115
  try {
116
116
  const binding = __require("@rolldown/binding-win32-x64-gnu");
117
117
  const bindingPackageVersion = __require("@rolldown/binding-win32-x64-gnu/package.json").version;
118
- if (bindingPackageVersion !== "1.0.0-beta.53" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.53 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
118
+ if (bindingPackageVersion !== "1.0.0-beta.54" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.54 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
119
119
  return binding;
120
120
  } catch (e) {
121
121
  loadErrors.push(e);
@@ -129,7 +129,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
129
129
  try {
130
130
  const binding = __require("@rolldown/binding-win32-x64-msvc");
131
131
  const bindingPackageVersion = __require("@rolldown/binding-win32-x64-msvc/package.json").version;
132
- if (bindingPackageVersion !== "1.0.0-beta.53" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.53 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
132
+ if (bindingPackageVersion !== "1.0.0-beta.54" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.54 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
133
133
  return binding;
134
134
  } catch (e) {
135
135
  loadErrors.push(e);
@@ -144,7 +144,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
144
144
  try {
145
145
  const binding = __require("@rolldown/binding-win32-ia32-msvc");
146
146
  const bindingPackageVersion = __require("@rolldown/binding-win32-ia32-msvc/package.json").version;
147
- if (bindingPackageVersion !== "1.0.0-beta.53" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.53 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
147
+ if (bindingPackageVersion !== "1.0.0-beta.54" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.54 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
148
148
  return binding;
149
149
  } catch (e) {
150
150
  loadErrors.push(e);
@@ -158,7 +158,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
158
158
  try {
159
159
  const binding = __require("@rolldown/binding-win32-arm64-msvc");
160
160
  const bindingPackageVersion = __require("@rolldown/binding-win32-arm64-msvc/package.json").version;
161
- if (bindingPackageVersion !== "1.0.0-beta.53" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.53 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
161
+ if (bindingPackageVersion !== "1.0.0-beta.54" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.54 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
162
162
  return binding;
163
163
  } catch (e) {
164
164
  loadErrors.push(e);
@@ -173,7 +173,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
173
173
  try {
174
174
  const binding = __require("@rolldown/binding-darwin-universal");
175
175
  const bindingPackageVersion = __require("@rolldown/binding-darwin-universal/package.json").version;
176
- if (bindingPackageVersion !== "1.0.0-beta.53" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.53 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
176
+ if (bindingPackageVersion !== "1.0.0-beta.54" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.54 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
177
177
  return binding;
178
178
  } catch (e) {
179
179
  loadErrors.push(e);
@@ -187,7 +187,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
187
187
  try {
188
188
  const binding = __require("@rolldown/binding-darwin-x64");
189
189
  const bindingPackageVersion = __require("@rolldown/binding-darwin-x64/package.json").version;
190
- if (bindingPackageVersion !== "1.0.0-beta.53" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.53 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
190
+ if (bindingPackageVersion !== "1.0.0-beta.54" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.54 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
191
191
  return binding;
192
192
  } catch (e) {
193
193
  loadErrors.push(e);
@@ -201,7 +201,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
201
201
  try {
202
202
  const binding = __require("@rolldown/binding-darwin-arm64");
203
203
  const bindingPackageVersion = __require("@rolldown/binding-darwin-arm64/package.json").version;
204
- if (bindingPackageVersion !== "1.0.0-beta.53" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.53 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
204
+ if (bindingPackageVersion !== "1.0.0-beta.54" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.54 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
205
205
  return binding;
206
206
  } catch (e) {
207
207
  loadErrors.push(e);
@@ -216,7 +216,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
216
216
  try {
217
217
  const binding = __require("@rolldown/binding-freebsd-x64");
218
218
  const bindingPackageVersion = __require("@rolldown/binding-freebsd-x64/package.json").version;
219
- if (bindingPackageVersion !== "1.0.0-beta.53" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.53 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
219
+ if (bindingPackageVersion !== "1.0.0-beta.54" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.54 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
220
220
  return binding;
221
221
  } catch (e) {
222
222
  loadErrors.push(e);
@@ -230,7 +230,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
230
230
  try {
231
231
  const binding = __require("@rolldown/binding-freebsd-arm64");
232
232
  const bindingPackageVersion = __require("@rolldown/binding-freebsd-arm64/package.json").version;
233
- if (bindingPackageVersion !== "1.0.0-beta.53" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.53 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
233
+ if (bindingPackageVersion !== "1.0.0-beta.54" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.54 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
234
234
  return binding;
235
235
  } catch (e) {
236
236
  loadErrors.push(e);
@@ -245,7 +245,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
245
245
  try {
246
246
  const binding = __require("@rolldown/binding-linux-x64-musl");
247
247
  const bindingPackageVersion = __require("@rolldown/binding-linux-x64-musl/package.json").version;
248
- if (bindingPackageVersion !== "1.0.0-beta.53" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.53 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
248
+ if (bindingPackageVersion !== "1.0.0-beta.54" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.54 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
249
249
  return binding;
250
250
  } catch (e) {
251
251
  loadErrors.push(e);
@@ -259,7 +259,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
259
259
  try {
260
260
  const binding = __require("@rolldown/binding-linux-x64-gnu");
261
261
  const bindingPackageVersion = __require("@rolldown/binding-linux-x64-gnu/package.json").version;
262
- if (bindingPackageVersion !== "1.0.0-beta.53" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.53 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
262
+ if (bindingPackageVersion !== "1.0.0-beta.54" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.54 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
263
263
  return binding;
264
264
  } catch (e) {
265
265
  loadErrors.push(e);
@@ -274,7 +274,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
274
274
  try {
275
275
  const binding = __require("@rolldown/binding-linux-arm64-musl");
276
276
  const bindingPackageVersion = __require("@rolldown/binding-linux-arm64-musl/package.json").version;
277
- if (bindingPackageVersion !== "1.0.0-beta.53" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.53 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
277
+ if (bindingPackageVersion !== "1.0.0-beta.54" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.54 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
278
278
  return binding;
279
279
  } catch (e) {
280
280
  loadErrors.push(e);
@@ -288,7 +288,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
288
288
  try {
289
289
  const binding = __require("@rolldown/binding-linux-arm64-gnu");
290
290
  const bindingPackageVersion = __require("@rolldown/binding-linux-arm64-gnu/package.json").version;
291
- if (bindingPackageVersion !== "1.0.0-beta.53" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.53 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
291
+ if (bindingPackageVersion !== "1.0.0-beta.54" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.54 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
292
292
  return binding;
293
293
  } catch (e) {
294
294
  loadErrors.push(e);
@@ -303,7 +303,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
303
303
  try {
304
304
  const binding = __require("@rolldown/binding-linux-arm-musleabihf");
305
305
  const bindingPackageVersion = __require("@rolldown/binding-linux-arm-musleabihf/package.json").version;
306
- if (bindingPackageVersion !== "1.0.0-beta.53" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.53 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
306
+ if (bindingPackageVersion !== "1.0.0-beta.54" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.54 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
307
307
  return binding;
308
308
  } catch (e) {
309
309
  loadErrors.push(e);
@@ -317,7 +317,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
317
317
  try {
318
318
  const binding = __require("@rolldown/binding-linux-arm-gnueabihf");
319
319
  const bindingPackageVersion = __require("@rolldown/binding-linux-arm-gnueabihf/package.json").version;
320
- if (bindingPackageVersion !== "1.0.0-beta.53" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.53 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
320
+ if (bindingPackageVersion !== "1.0.0-beta.54" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.54 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
321
321
  return binding;
322
322
  } catch (e) {
323
323
  loadErrors.push(e);
@@ -332,7 +332,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
332
332
  try {
333
333
  const binding = __require("@rolldown/binding-linux-loong64-musl");
334
334
  const bindingPackageVersion = __require("@rolldown/binding-linux-loong64-musl/package.json").version;
335
- if (bindingPackageVersion !== "1.0.0-beta.53" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.53 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
335
+ if (bindingPackageVersion !== "1.0.0-beta.54" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.54 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
336
336
  return binding;
337
337
  } catch (e) {
338
338
  loadErrors.push(e);
@@ -346,7 +346,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
346
346
  try {
347
347
  const binding = __require("@rolldown/binding-linux-loong64-gnu");
348
348
  const bindingPackageVersion = __require("@rolldown/binding-linux-loong64-gnu/package.json").version;
349
- if (bindingPackageVersion !== "1.0.0-beta.53" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.53 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
349
+ if (bindingPackageVersion !== "1.0.0-beta.54" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.54 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
350
350
  return binding;
351
351
  } catch (e) {
352
352
  loadErrors.push(e);
@@ -361,7 +361,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
361
361
  try {
362
362
  const binding = __require("@rolldown/binding-linux-riscv64-musl");
363
363
  const bindingPackageVersion = __require("@rolldown/binding-linux-riscv64-musl/package.json").version;
364
- if (bindingPackageVersion !== "1.0.0-beta.53" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.53 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
364
+ if (bindingPackageVersion !== "1.0.0-beta.54" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.54 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
365
365
  return binding;
366
366
  } catch (e) {
367
367
  loadErrors.push(e);
@@ -375,7 +375,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
375
375
  try {
376
376
  const binding = __require("@rolldown/binding-linux-riscv64-gnu");
377
377
  const bindingPackageVersion = __require("@rolldown/binding-linux-riscv64-gnu/package.json").version;
378
- if (bindingPackageVersion !== "1.0.0-beta.53" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.53 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
378
+ if (bindingPackageVersion !== "1.0.0-beta.54" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.54 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
379
379
  return binding;
380
380
  } catch (e) {
381
381
  loadErrors.push(e);
@@ -390,7 +390,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
390
390
  try {
391
391
  const binding = __require("@rolldown/binding-linux-ppc64-gnu");
392
392
  const bindingPackageVersion = __require("@rolldown/binding-linux-ppc64-gnu/package.json").version;
393
- if (bindingPackageVersion !== "1.0.0-beta.53" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.53 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
393
+ if (bindingPackageVersion !== "1.0.0-beta.54" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.54 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
394
394
  return binding;
395
395
  } catch (e) {
396
396
  loadErrors.push(e);
@@ -404,7 +404,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
404
404
  try {
405
405
  const binding = __require("@rolldown/binding-linux-s390x-gnu");
406
406
  const bindingPackageVersion = __require("@rolldown/binding-linux-s390x-gnu/package.json").version;
407
- if (bindingPackageVersion !== "1.0.0-beta.53" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.53 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
407
+ if (bindingPackageVersion !== "1.0.0-beta.54" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.54 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
408
408
  return binding;
409
409
  } catch (e) {
410
410
  loadErrors.push(e);
@@ -419,7 +419,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
419
419
  try {
420
420
  const binding = __require("@rolldown/binding-openharmony-arm64");
421
421
  const bindingPackageVersion = __require("@rolldown/binding-openharmony-arm64/package.json").version;
422
- if (bindingPackageVersion !== "1.0.0-beta.53" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.53 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
422
+ if (bindingPackageVersion !== "1.0.0-beta.54" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.54 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
423
423
  return binding;
424
424
  } catch (e) {
425
425
  loadErrors.push(e);
@@ -433,7 +433,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
433
433
  try {
434
434
  const binding = __require("@rolldown/binding-openharmony-x64");
435
435
  const bindingPackageVersion = __require("@rolldown/binding-openharmony-x64/package.json").version;
436
- if (bindingPackageVersion !== "1.0.0-beta.53" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.53 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
436
+ if (bindingPackageVersion !== "1.0.0-beta.54" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.54 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
437
437
  return binding;
438
438
  } catch (e) {
439
439
  loadErrors.push(e);
@@ -447,7 +447,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
447
447
  try {
448
448
  const binding = __require("@rolldown/binding-openharmony-arm");
449
449
  const bindingPackageVersion = __require("@rolldown/binding-openharmony-arm/package.json").version;
450
- if (bindingPackageVersion !== "1.0.0-beta.53" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.53 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
450
+ if (bindingPackageVersion !== "1.0.0-beta.54" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-beta.54 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
451
451
  return binding;
452
452
  } catch (e) {
453
453
  loadErrors.push(e);
@@ -185,7 +185,7 @@ interface Comment {
185
185
  end: number;
186
186
  }
187
187
  interface ErrorLabel {
188
- message?: string;
188
+ message: string | null;
189
189
  start: number;
190
190
  end: number;
191
191
  }
@@ -193,8 +193,8 @@ interface OxcError {
193
193
  severity: Severity;
194
194
  message: string;
195
195
  labels: Array<ErrorLabel>;
196
- helpMessage?: string;
197
- codeframe?: string;
196
+ helpMessage: string | null;
197
+ codeframe: string | null;
198
198
  }
199
199
  type Severity = 'Error' | 'Warning' | 'Advice';
200
200
  declare class ParseResult {
@@ -228,9 +228,9 @@ interface EcmaScriptModule {
228
228
  }
229
229
  interface ExportExportName {
230
230
  kind: ExportExportNameKind;
231
- name?: string;
232
- start?: number;
233
- end?: number;
231
+ name: string | null;
232
+ start: number | null;
233
+ end: number | null;
234
234
  }
235
235
  type ExportExportNameKind = /** `export { name } */
236
236
  'Name' | /** `export default expression` */
@@ -238,9 +238,9 @@ type ExportExportNameKind = /** `export { name } */
238
238
  'None';
239
239
  interface ExportImportName {
240
240
  kind: ExportImportNameKind;
241
- name?: string;
242
- start?: number;
243
- end?: number;
241
+ name: string | null;
242
+ start: number | null;
243
+ end: number | null;
244
244
  }
245
245
  type ExportImportNameKind = /** `export { name } */
246
246
  'Name' | /** `export * as ns from "mod"` */
@@ -249,9 +249,9 @@ type ExportImportNameKind = /** `export { name } */
249
249
  'None';
250
250
  interface ExportLocalName {
251
251
  kind: ExportLocalNameKind;
252
- name?: string;
253
- start?: number;
254
- end?: number;
252
+ name: string | null;
253
+ start: number | null;
254
+ end: number | null;
255
255
  }
256
256
  type ExportLocalNameKind = /** `export { name } */
257
257
  'Name' | /** `export default expression` */
@@ -263,9 +263,9 @@ type ExportLocalNameKind = /** `export { name } */
263
263
  'None';
264
264
  interface ImportName {
265
265
  kind: ImportNameKind;
266
- name?: string;
267
- start?: number;
268
- end?: number;
266
+ name: string | null;
267
+ start: number | null;
268
+ end: number | null;
269
269
  }
270
270
  type ImportNameKind = /** `import { x } from "mod"` */
271
271
  'Name' | /** `import * as ns from "mod"` */
@@ -323,7 +323,7 @@ interface StaticExport {
323
323
  interface StaticExportEntry {
324
324
  start: number;
325
325
  end: number;
326
- moduleRequest?: ValueSpan;
326
+ moduleRequest: ValueSpan | null;
327
327
  /** The name under which the desired binding is exported by the module`. */
328
328
  importName: ExportImportName;
329
329
  /** The name used to export this binding by this module. */
@@ -415,6 +415,18 @@ declare class ResolverFactory {
415
415
  sync(directory: string, request: string): ResolveResult;
416
416
  /** Asynchronously resolve `specifier` at an absolute path to a `directory`. */
417
417
  async(directory: string, request: string): Promise<ResolveResult>;
418
+ /**
419
+ * Synchronously resolve `specifier` at an absolute path to a `file`.
420
+ *
421
+ * This method automatically discovers tsconfig.json by traversing parent directories.
422
+ */
423
+ resolveFileSync(file: string, request: string): ResolveResult;
424
+ /**
425
+ * Asynchronously resolve `specifier` at an absolute path to a `file`.
426
+ *
427
+ * This method automatically discovers tsconfig.json by traversing parent directories.
428
+ */
429
+ resolveFileAsync(file: string, request: string): Promise<ResolveResult>;
418
430
  }
419
431
  /** Node.js builtin module when `Options::builtin_modules` is enabled. */
420
432
  interface Builtin {
@@ -656,9 +668,8 @@ interface TsconfigOptions {
656
668
  * Support for Typescript Project References.
657
669
  *
658
670
  * * `'auto'`: use the `references` field from tsconfig of `config_file`.
659
- * * `string[]`: manually provided relative or absolute path.
660
671
  */
661
- references?: 'auto' | string[];
672
+ references?: 'auto';
662
673
  }
663
674
  interface SourceMap {
664
675
  file?: string;
@@ -1271,7 +1282,7 @@ declare class BindingMagicString {
1271
1282
  }
1272
1283
  declare class BindingNormalizedOptions {
1273
1284
  get input(): Array<string> | Record<string, string>;
1274
- get cwd(): string | null;
1285
+ get cwd(): string;
1275
1286
  get platform(): 'node' | 'browser' | 'neutral';
1276
1287
  get shimMissingExports(): boolean;
1277
1288
  get name(): string | null;
@@ -1551,6 +1562,10 @@ interface BindingViteDynamicImportVarsPluginConfig {
1551
1562
  include?: Array<BindingStringOrRegex>;
1552
1563
  exclude?: Array<BindingStringOrRegex>;
1553
1564
  resolver?: (id: string, importer: string) => MaybePromise<string | undefined>;
1565
+ isV2?: BindingViteDynamicImportVarsPluginV2Config;
1566
+ }
1567
+ interface BindingViteDynamicImportVarsPluginV2Config {
1568
+ sourcemap: boolean;
1554
1569
  }
1555
1570
  interface BindingViteHtmlInlineProxyPluginConfig {
1556
1571
  root: string;
@@ -1572,6 +1587,10 @@ interface BindingViteHtmlPluginConfig {
1572
1587
  interface BindingViteImportGlobPluginConfig {
1573
1588
  root?: string;
1574
1589
  restoreQueryExtension?: boolean;
1590
+ isV2?: BindingViteImportGlobPluginV2Config;
1591
+ }
1592
+ interface BindingViteImportGlobPluginV2Config {
1593
+ sourcemap?: boolean;
1575
1594
  }
1576
1595
  interface BindingViteJsonPluginConfig {
1577
1596
  minify?: boolean;
@@ -1621,6 +1640,7 @@ interface BindingViteResolvePluginConfig {
1621
1640
  resolveSubpathImports: (id: string, importer: string, isRequire: boolean, scan: boolean) => VoidNullable<string>;
1622
1641
  onWarn?: (message: string) => void;
1623
1642
  onDebug?: (message: string) => void;
1643
+ yarnPnp: boolean;
1624
1644
  }
1625
1645
  interface BindingViteResolvePluginResolveOptions {
1626
1646
  isBuild: boolean;
@@ -1648,9 +1668,17 @@ interface BindingViteTransformPluginConfig {
1648
1668
  isServerConsumer?: boolean;
1649
1669
  jsxInject?: string;
1650
1670
  transformOptions?: TransformOptions;
1671
+ yarnPnp?: boolean;
1651
1672
  }
1652
1673
  interface BindingViteWasmHelperPluginConfig {
1653
1674
  decodedBase: string;
1675
+ v2?: BindingViteWasmHelperPluginV2Config;
1676
+ }
1677
+ interface BindingViteWasmHelperPluginV2Config {
1678
+ root: string;
1679
+ isLib: boolean;
1680
+ publicDir: string;
1681
+ assetInlineLimit: number | ((file: string, content: Buffer) => boolean | undefined);
1654
1682
  }
1655
1683
  declare function createTokioRuntime(blockingThreads?: number | undefined | null): void;
1656
1684
  interface ExternalMemoryStatus {
@@ -1661,6 +1689,22 @@ interface ExternalMemoryStatus {
1661
1689
  interface NativeError {
1662
1690
  kind: string;
1663
1691
  message: string;
1692
+ /** The id of the file associated with the error */
1693
+ id?: string;
1694
+ /** The exporter associated with the error (for import/export errors) */
1695
+ exporter?: string;
1696
+ /** Location information (line, column, file) */
1697
+ loc?: NativeErrorLocation;
1698
+ /** Position in the source file in UTF-16 code units */
1699
+ pos?: number;
1700
+ }
1701
+ /** Location information for errors */
1702
+ interface NativeErrorLocation {
1703
+ /** 1-based */
1704
+ line: number;
1705
+ /** 0-based position in the line in UTF-16 code units */
1706
+ column: number;
1707
+ file?: string;
1664
1708
  }
1665
1709
  interface PreRenderedChunk {
1666
1710
  name: string;
@@ -1,8 +1,8 @@
1
- import { t as require_binding } from "./binding-BJqdPU1r.mjs";
1
+ import { t as require_binding } from "./binding-BgawCXFG.mjs";
2
2
  import { c as logPluginError, n as error, r as logCycleLoading, t as augmentCodeLocation } from "./logs-CSQ_UMWp.mjs";
3
- import { a as unreachable, i as unimplemented, o as unsupported, t as arraify } from "./misc-CxyvWjTr.mjs";
4
- import { E as LOG_LEVEL_WARN, S as normalizeLog, _ as PlainObjectLike, a as bindingifyManifestPlugin, c as collectChangedBundle, d as bindingifySourcemap, f as transformRenderedChunk, g as lazyProp, i as bindingifyCSSPostPlugin, l as transformToOutputBundle, m as bindingAssetSource, n as BuiltinPlugin, o as bindingifyViteHtmlPlugin, p as __decorate, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex, v as MinimalPluginContextImpl } from "./normalize-string-or-regex-BhaIG1rU.mjs";
5
- import { t as parseAst } from "./parse-ast-index-BFX0oHaQ.mjs";
3
+ import { a as unreachable, o as unsupported, t as arraify } from "./misc-CxyvWjTr.mjs";
4
+ import { E as LOG_LEVEL_WARN, S as normalizeLog, _ as PlainObjectLike, a as bindingifyManifestPlugin, c as collectChangedBundle, d as bindingifySourcemap, f as transformRenderedChunk, g as lazyProp, i as bindingifyCSSPostPlugin, l as transformToOutputBundle, m as bindingAssetSource, n as BuiltinPlugin, o as bindingifyViteHtmlPlugin, p as __decorate, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex, v as MinimalPluginContextImpl } from "./normalize-string-or-regex-CF1OWLn9.mjs";
5
+ import { t as parseAst } from "./parse-ast-index-DeJDe-DO.mjs";
6
6
  import path from "node:path";
7
7
  import * as filter from "@rolldown/pluginutils";
8
8
  import fsp from "node:fs/promises";
@@ -37,8 +37,13 @@ function normalizeBindingResult(container) {
37
37
  }
38
38
  function normalizeBindingError(e$1) {
39
39
  return e$1.type === "JsError" ? e$1.field0 : Object.assign(/* @__PURE__ */ new Error(), {
40
+ code: e$1.field0.kind,
40
41
  kind: e$1.field0.kind,
41
42
  message: e$1.field0.message,
43
+ id: e$1.field0.id,
44
+ exporter: e$1.field0.exporter,
45
+ loc: e$1.field0.loc,
46
+ pos: e$1.field0.pos,
42
47
  stack: void 0
43
48
  });
44
49
  }
@@ -384,7 +389,13 @@ var PluginContextImpl = class extends MinimalPluginContextImpl {
384
389
  };
385
390
  }
386
391
  emitFile = (file) => {
387
- if (file.type === "prebuilt-chunk") return unimplemented("PluginContext.emitFile with type prebuilt-chunk");
392
+ if (file.type === "prebuilt-chunk") return this.context.emitPrebuiltChunk({
393
+ fileName: file.fileName,
394
+ code: file.code,
395
+ exports: file.exports,
396
+ map: bindingifySourcemap(file.map),
397
+ sourcemapFileName: file.sourcemapFileName
398
+ });
388
399
  if (file.type === "chunk") return this.context.emitChunk({
389
400
  preserveEntrySignatures: bindingifyPreserveEntrySignatures(file.preserveSignature),
390
401
  ...file
@@ -1033,7 +1044,7 @@ var NormalizedInputOptionsImpl = class extends PlainObjectLike {
1033
1044
  return this.inner.input;
1034
1045
  }
1035
1046
  get cwd() {
1036
- return this.inner.cwd ?? void 0;
1047
+ return this.inner.cwd;
1037
1048
  }
1038
1049
  get platform() {
1039
1050
  return this.inner.platform;
@@ -1,5 +1,5 @@
1
- import { A as BuiltinPlugin, wt as StringOrRegExp } from "./define-config-BS8Bt-r8.mjs";
2
- import { D as BindingViteResolvePluginConfig, E as BindingViteReporterPluginConfig, S as BindingViteJsonPluginConfig, T as BindingViteReactRefreshWrapperPluginConfig, h as BindingViteBuildImportAnalysisPluginConfig, i as BindingEsmExternalRequirePluginConfig, k as BindingViteWasmHelperPluginConfig, o as BindingIsolatedDeclarationPluginConfig, p as BindingViteAssetImportMetaUrlPluginConfig, v as BindingViteDynamicImportVarsPluginConfig, w as BindingViteModulePreloadPolyfillPluginConfig, x as BindingViteImportGlobPluginConfig, y as BindingViteHtmlInlineProxyPluginConfig } from "./binding-CY7Z709f.mjs";
1
+ import { A as BuiltinPlugin, Tt as StringOrRegExp } from "./define-config-COJu-A7R.mjs";
2
+ import { D as BindingViteResolvePluginConfig, E as BindingViteReporterPluginConfig, S as BindingViteJsonPluginConfig, T as BindingViteReactRefreshWrapperPluginConfig, h as BindingViteBuildImportAnalysisPluginConfig, i as BindingEsmExternalRequirePluginConfig, k as BindingViteWasmHelperPluginConfig, o as BindingIsolatedDeclarationPluginConfig, p as BindingViteAssetImportMetaUrlPluginConfig, v as BindingViteDynamicImportVarsPluginConfig, w as BindingViteModulePreloadPolyfillPluginConfig, x as BindingViteImportGlobPluginConfig, y as BindingViteHtmlInlineProxyPluginConfig } from "./binding-yIBVkeOE.mjs";
3
3
 
4
4
  //#region src/builtin-plugin/constructors.d.ts
5
5
  declare function viteModulePreloadPolyfillPlugin(config?: BindingViteModulePreloadPolyfillPluginConfig): BuiltinPlugin;
@@ -9,13 +9,13 @@ type DynamicImportVarsPluginConfig = Omit<BindingViteDynamicImportVarsPluginConf
9
9
  };
10
10
  declare function viteDynamicImportVarsPlugin(config?: DynamicImportVarsPluginConfig): BuiltinPlugin;
11
11
  declare function viteImportGlobPlugin(config?: BindingViteImportGlobPluginConfig): BuiltinPlugin;
12
- declare function viteReporterPlugin(config?: BindingViteReporterPluginConfig): BuiltinPlugin;
13
- declare function viteWasmHelperPlugin(config?: BindingViteWasmHelperPluginConfig): BuiltinPlugin;
12
+ declare function viteReporterPlugin(config: BindingViteReporterPluginConfig): BuiltinPlugin;
13
+ declare function viteWasmHelperPlugin(config: BindingViteWasmHelperPluginConfig): BuiltinPlugin;
14
14
  declare function viteWasmFallbackPlugin(): BuiltinPlugin;
15
15
  declare function viteLoadFallbackPlugin(): BuiltinPlugin;
16
- declare function viteJsonPlugin(config?: BindingViteJsonPluginConfig): BuiltinPlugin;
16
+ declare function viteJsonPlugin(config: BindingViteJsonPluginConfig): BuiltinPlugin;
17
17
  declare function viteBuildImportAnalysisPlugin(config: BindingViteBuildImportAnalysisPluginConfig): BuiltinPlugin;
18
- declare function viteResolvePlugin(config: BindingViteResolvePluginConfig): BuiltinPlugin;
18
+ declare function viteResolvePlugin(config: Omit<BindingViteResolvePluginConfig, "yarnPnp">): BuiltinPlugin;
19
19
  declare function isolatedDeclarationPlugin(config?: BindingIsolatedDeclarationPluginConfig): BuiltinPlugin;
20
20
  declare function viteWebWorkerPostPlugin(): BuiltinPlugin;
21
21
  declare function esmExternalRequirePlugin(config?: BindingEsmExternalRequirePluginConfig): BuiltinPlugin;
@@ -1,4 +1,4 @@
1
- import { n as BuiltinPlugin, s as makeBuiltinPluginCallable, t as normalizedStringOrRegex } from "./normalize-string-or-regex-BhaIG1rU.mjs";
1
+ import { n as BuiltinPlugin, s as makeBuiltinPluginCallable, t as normalizedStringOrRegex } from "./normalize-string-or-regex-CF1OWLn9.mjs";
2
2
 
3
3
  //#region src/builtin-plugin/constructors.ts
4
4
  function viteModulePreloadPolyfillPlugin(config) {
@@ -33,7 +33,10 @@ function viteBuildImportAnalysisPlugin(config) {
33
33
  return new BuiltinPlugin("builtin:vite-build-import-analysis", config);
34
34
  }
35
35
  function viteResolvePlugin(config) {
36
- return makeBuiltinPluginCallable(new BuiltinPlugin("builtin:vite-resolve", config));
36
+ return makeBuiltinPluginCallable(new BuiltinPlugin("builtin:vite-resolve", {
37
+ ...config,
38
+ yarnPnp: typeof process === "object" && !!process.versions?.pnp
39
+ }));
37
40
  }
38
41
  function isolatedDeclarationPlugin(config) {
39
42
  return new BuiltinPlugin("builtin:isolated-declaration", config);
@@ -42,7 +45,9 @@ function viteWebWorkerPostPlugin() {
42
45
  return new BuiltinPlugin("builtin:vite-web-worker-post");
43
46
  }
44
47
  function esmExternalRequirePlugin(config) {
45
- return new BuiltinPlugin("builtin:esm-external-require", config);
48
+ const plugin = new BuiltinPlugin("builtin:esm-external-require", config);
49
+ plugin.enforce = "pre";
50
+ return plugin;
46
51
  }
47
52
  function viteReactRefreshWrapperPlugin(config) {
48
53
  if (config) {
@@ -1,4 +1,4 @@
1
- import { A as BindingWatcherBundler, B as ParserOptions, F as JsxOptions, I as MinifyOptions$1, M as ExternalMemoryStatus, V as PreRenderedChunk, W as TransformOptions$1, a as BindingHookResolveIdExtraArgs, d as BindingTransformHookExtraArgs, j as BindingWatcherEvent, l as BindingRenderedChunk, s as BindingMagicString, t as BindingBuiltinPluginName } from "./binding-CY7Z709f.mjs";
1
+ import { A as BindingWatcherBundler, B as ParserOptions, F as JsxOptions, I as MinifyOptions$1, M as ExternalMemoryStatus, V as PreRenderedChunk, W as TransformOptions$1, a as BindingHookResolveIdExtraArgs, d as BindingTransformHookExtraArgs, j as BindingWatcherEvent, l as BindingRenderedChunk, s as BindingMagicString, t as BindingBuiltinPluginName } from "./binding-yIBVkeOE.mjs";
2
2
  import { TopLevelFilterExpression } from "@rolldown/pluginutils";
3
3
  import { Program } from "@oxc-project/types";
4
4
 
@@ -720,7 +720,7 @@ type WarningHandlerWithDefault = (warning: RollupLog, defaultHandler: LoggingFun
720
720
  //#region src/options/normalized-input-options.d.ts
721
721
  interface NormalizedInputOptions {
722
722
  input: string[] | Record<string, string>;
723
- cwd: string | undefined;
723
+ cwd: string;
724
724
  platform: InputOptions["platform"];
725
725
  shimMissingExports: boolean;
726
726
  context: string;
@@ -918,7 +918,15 @@ interface EmittedChunk {
918
918
  id: string;
919
919
  importer?: string;
920
920
  }
921
- type EmittedFile = EmittedAsset | EmittedChunk;
921
+ interface EmittedPrebuiltChunk {
922
+ type: "prebuilt-chunk";
923
+ fileName: string;
924
+ code: string;
925
+ exports?: string[];
926
+ map?: SourceMap;
927
+ sourcemapFileName?: string;
928
+ }
929
+ type EmittedFile = EmittedAsset | EmittedChunk | EmittedPrebuiltChunk;
922
930
  interface PluginContextResolveOptions {
923
931
  isEntry?: boolean;
924
932
  skipSelf?: boolean;
@@ -997,6 +1005,8 @@ declare const VERSION: string;
997
1005
  declare class BuiltinPlugin {
998
1006
  name: BindingBuiltinPluginName;
999
1007
  _options?: unknown;
1008
+ /** Vite-specific option to control plugin ordering */
1009
+ enforce?: "pre" | "post";
1000
1010
  constructor(name: BindingBuiltinPluginName, _options?: unknown);
1001
1011
  }
1002
1012
  //#endregion
@@ -1232,6 +1242,11 @@ interface ChecksOptions {
1232
1242
  * @default true
1233
1243
  */
1234
1244
  couldNotCleanDirectory?: boolean;
1245
+ /**
1246
+ * Whether to emit warning when detecting plugin timings
1247
+ * @default true
1248
+ */
1249
+ pluginTimings?: boolean;
1235
1250
  }
1236
1251
  //#endregion
1237
1252
  //#region src/options/transform-options.d.ts
@@ -1676,4 +1691,4 @@ declare function defineConfig(config: RolldownOptions[]): RolldownOptions[];
1676
1691
  declare function defineConfig(config: RolldownOptionsFunction): RolldownOptionsFunction;
1677
1692
  declare function defineConfig(config: ConfigExport): ConfigExport;
1678
1693
  //#endregion
1679
- export { InternalModuleFormat as $, BuiltinPlugin as A, SourceMap as At, GetModuleInfo as B, ResolveIdResult as C, PartialNull as Ct, SourceDescription as D, RenderedChunk as Dt, RolldownPluginOption as E, OutputChunk as Et, OutputBundle as F, LogLevelOption as Ft, PluginContextMeta as G, DefineParallelPluginResult as H, TreeshakingOptions as I, LogOrStringHandler as It, ModuleTypeFilter as J, GeneralHookFilter as K, TransformPluginContext as L, RollupError as Lt, ExistingRawSourceMap as M, ModuleInfo as Mt, SourceMapInput as N, SourcemapIgnoreListOption as Nt, TransformResult as O, RenderedModule as Ot, RolldownOptionsFunction as P, LogLevel as Pt, RolldownFsModule as Q, EmittedAsset as R, RollupLog as Rt, ResolveIdExtraOptions as S, MaybePromise as St, RolldownPlugin as T, OutputAsset as Tt, defineParallelPlugin as U, PluginContext as V, MinimalPluginContext as W, RolldownDirectoryEntry as X, BufferEncoding as Y, RolldownFileStats as Z, ModuleType as _, GlobalsFunction as _t, InputOption as a, RolldownWatcher as at, PartialResolvedId as b, OutputOptions as bt, OptimizationOptions as c, rolldown as ct, CustomPluginOptions as d, build as dt, NormalizedOutputOptions as et, FunctionPluginHooks as f, AddonFunction as ft, ModuleOptions as g, GeneratedCodePreset as gt, LoadResult as h, GeneratedCodeOptions as ht, ExternalOption as i, watch as it, VERSION as j, freeExternalMemory as jt, withFilter as k, RolldownOutput as kt, WatcherOptions as l, RolldownBuild as lt, ImportKind as m, ChunkingContext as mt, ConfigExport as n, LoggingFunction as nt, InputOptions as o, RolldownWatcherEvent as ot, HookFilterExtension as p, ChunkFileNamesFunction as pt, HookFilter as q, RolldownOptions as r, WarningHandlerWithDefault as rt, ModuleTypes as s, WatchOptions as st, defineConfig as t, NormalizedInputOptions as tt, AsyncPluginHooks as u, BuildOptions as ut, ObjectHook as v, MinifyOptions as vt, ResolvedId as w, StringOrRegExp as wt, Plugin as x, PreRenderedAsset as xt, ParallelPluginHooks as y, ModuleFormat as yt, EmittedFile as z, RollupLogWithString as zt };
1694
+ export { RolldownFsModule as $, BuiltinPlugin as A, RolldownOutput as At, EmittedPrebuiltChunk as B, RollupLogWithString as Bt, ResolveIdResult as C, MaybePromise as Ct, SourceDescription as D, OutputChunk as Dt, RolldownPluginOption as E, OutputAsset as Et, OutputBundle as F, LogLevel as Ft, MinimalPluginContext as G, PluginContext as H, TreeshakingOptions as I, LogLevelOption as It, HookFilter as J, PluginContextMeta as K, TransformPluginContext as L, LogOrStringHandler as Lt, ExistingRawSourceMap as M, freeExternalMemory as Mt, SourceMapInput as N, ModuleInfo as Nt, TransformResult as O, RenderedChunk as Ot, RolldownOptionsFunction as P, SourcemapIgnoreListOption as Pt, RolldownFileStats as Q, EmittedAsset as R, RollupError as Rt, ResolveIdExtraOptions as S, PreRenderedAsset as St, RolldownPlugin as T, StringOrRegExp as Tt, DefineParallelPluginResult as U, GetModuleInfo as V, defineParallelPlugin as W, BufferEncoding as X, ModuleTypeFilter as Y, RolldownDirectoryEntry as Z, ModuleType as _, GeneratedCodePreset as _t, InputOption as a, watch as at, PartialResolvedId as b, ModuleFormat as bt, OptimizationOptions as c, WatchOptions as ct, CustomPluginOptions as d, BuildOptions as dt, InternalModuleFormat as et, FunctionPluginHooks as f, build as ft, ModuleOptions as g, GeneratedCodeOptions as gt, LoadResult as h, ChunkingContext as ht, ExternalOption as i, WarningHandlerWithDefault as it, VERSION as j, SourceMap as jt, withFilter as k, RenderedModule as kt, WatcherOptions as l, rolldown as lt, ImportKind as m, ChunkFileNamesFunction as mt, ConfigExport as n, NormalizedInputOptions as nt, InputOptions as o, RolldownWatcher as ot, HookFilterExtension as p, AddonFunction as pt, GeneralHookFilter as q, RolldownOptions as r, LoggingFunction as rt, ModuleTypes as s, RolldownWatcherEvent as st, defineConfig as t, NormalizedOutputOptions as tt, AsyncPluginHooks as u, RolldownBuild as ut, ObjectHook as v, GlobalsFunction as vt, ResolvedId as w, PartialNull as wt, Plugin as x, OutputOptions as xt, ParallelPluginHooks as y, MinifyOptions as yt, EmittedFile as z, RollupLog as zt };
@@ -1,4 +1,4 @@
1
- import { t as rolldown } from "./rolldown-Cqalltnr.mjs";
1
+ import { t as rolldown } from "./rolldown-BsTgRBvz.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 { t as require_binding } from "./binding-BJqdPU1r.mjs";
1
+ import { t as require_binding } from "./binding-BgawCXFG.mjs";
2
2
  import { a as logInvalidLogPosition, c as logPluginError, n as error } from "./logs-CSQ_UMWp.mjs";
3
3
  import { r as noop } from "./misc-CxyvWjTr.mjs";
4
4
 
@@ -32,7 +32,7 @@ function getLogHandler(level, code, logger, pluginName, logLevel) {
32
32
 
33
33
  //#endregion
34
34
  //#region package.json
35
- var version = "1.0.0-beta.53";
35
+ var version = "1.0.0-beta.54";
36
36
  var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
37
37
 
38
38
  //#endregion
@@ -190,7 +190,7 @@ function bindingAssetSource(source) {
190
190
  }
191
191
 
192
192
  //#endregion
193
- //#region \0@oxc-project+runtime@0.101.0/helpers/decorate.js
193
+ //#region \0@oxc-project+runtime@0.102.0/helpers/decorate.js
194
194
  function __decorate(decorators, target, key, desc) {
195
195
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
196
196
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -558,6 +558,8 @@ function collectChangedBundle(changed, bundle) {
558
558
  //#region src/builtin-plugin/utils.ts
559
559
  var import_binding = require_binding();
560
560
  var BuiltinPlugin = class {
561
+ /** Vite-specific option to control plugin ordering */
562
+ enforce;
561
563
  constructor(name, _options) {
562
564
  this.name = name;
563
565
  this._options = _options;
@@ -1,7 +1,7 @@
1
- import { t as require_binding } from "./binding-BJqdPU1r.mjs";
1
+ import { t as require_binding } from "./binding-BgawCXFG.mjs";
2
2
  import { l as locate, n as error, s as logParseError, u as getCodeFrame } from "./logs-CSQ_UMWp.mjs";
3
3
 
4
- //#region ../../node_modules/.pnpm/oxc-parser@0.101.0/node_modules/oxc-parser/src-js/wrap.js
4
+ //#region ../../node_modules/.pnpm/oxc-parser@0.102.0/node_modules/oxc-parser/src-js/wrap.js
5
5
  function wrap$1(result) {
6
6
  let program, module, comments, errors;
7
7
  return {
@@ -1,4 +1,4 @@
1
- import { l as PluginDriver, s as validateOption, t as RolldownBuild } from "./rolldown-build-BEU8N80I.mjs";
1
+ import { l as PluginDriver, s as validateOption, t as RolldownBuild } from "./rolldown-build-DtYoS8Tq.mjs";
2
2
 
3
3
  //#region src/api/rolldown/index.ts
4
4
  const rolldown = async (input) => {
@@ -1,8 +1,8 @@
1
- import { t as require_binding } from "./binding-BJqdPU1r.mjs";
1
+ import { t as require_binding } from "./binding-BgawCXFG.mjs";
2
2
  import { i as logInputHookInOutputPlugin, n as error } from "./logs-CSQ_UMWp.mjs";
3
3
  import { i as unimplemented } from "./misc-CxyvWjTr.mjs";
4
- import { C as LOG_LEVEL_DEBUG, D as logLevelPriority, E as LOG_LEVEL_WARN, S as normalizeLog, T as LOG_LEVEL_INFO, _ as PlainObjectLike, f as transformRenderedChunk, g as lazyProp, h as transformAssetSource, n as BuiltinPlugin, p as __decorate, u as transformToRollupOutput, v as MinimalPluginContextImpl, w as LOG_LEVEL_ERROR, y as VERSION } from "./normalize-string-or-regex-BhaIG1rU.mjs";
5
- import { c as normalizeHook, i as transformModuleInfo, s as unwrapBindingResult, t as bindingifyInputOptions } from "./bindingify-input-options-Bk0BBr2s.mjs";
4
+ import { C as LOG_LEVEL_DEBUG, D as logLevelPriority, E as LOG_LEVEL_WARN, S as normalizeLog, T as LOG_LEVEL_INFO, _ as PlainObjectLike, f as transformRenderedChunk, g as lazyProp, h as transformAssetSource, n as BuiltinPlugin, p as __decorate, u as transformToRollupOutput, v as MinimalPluginContextImpl, w as LOG_LEVEL_ERROR, y as VERSION } from "./normalize-string-or-regex-CF1OWLn9.mjs";
5
+ import { c as normalizeHook, i as transformModuleInfo, s as unwrapBindingResult, t as bindingifyInputOptions } from "./bindingify-input-options-DvsExmEF.mjs";
6
6
  import { Worker } from "node:worker_threads";
7
7
  import path from "node:path";
8
8
  import { styleText } from "node:util";
@@ -1585,7 +1585,7 @@ const TransformOptionsSchema = object({
1585
1585
  JsxOptionsSchema
1586
1586
  ])),
1587
1587
  target: pipe(optional(union([string(), array(string())])), description("The JavaScript target environment")),
1588
- define: pipe(optional(record(string(), string())), description("Define global variables")),
1588
+ define: pipe(optional(record(string(), string())), description("Define global variables (syntax: key=value,key2=value2)")),
1589
1589
  inject: pipe(optional(record(string(), union([string(), tuple([string(), string()])]))), description("Inject import statements on demand")),
1590
1590
  dropLabels: pipe(optional(array(string())), description("Remove labeled statements with these label names"))
1591
1591
  });
@@ -1616,7 +1616,8 @@ const ChecksOptionsSchema = strictObject({
1616
1616
  emptyImportMeta: pipe(optional(boolean()), description("Whether to emit warning when detecting empty import meta")),
1617
1617
  configurationFieldConflict: pipe(optional(boolean()), description("Whether to emit warning when detecting configuration field conflict")),
1618
1618
  preferBuiltinFeature: pipe(optional(boolean()), description("Whether to emit warning when detecting prefer builtin feature")),
1619
- couldNotCleanDirectory: pipe(optional(boolean()), description("Whether to emit warning when detecting could not clean directory"))
1619
+ couldNotCleanDirectory: pipe(optional(boolean()), description("Whether to emit warning when detecting could not clean directory")),
1620
+ pluginTimings: pipe(optional(boolean()), description("Whether to emit warning when detecting plugin timings"))
1620
1621
  });
1621
1622
  const CompressOptionsKeepNamesSchema = strictObject({
1622
1623
  function: boolean(),
@@ -1,9 +1,9 @@
1
- import { t as require_binding } from "./binding-BJqdPU1r.mjs";
1
+ import { t as require_binding } from "./binding-BgawCXFG.mjs";
2
2
  import { o as logMultiplyNotifyOption } from "./logs-CSQ_UMWp.mjs";
3
3
  import { t as arraify } from "./misc-CxyvWjTr.mjs";
4
- import { E as LOG_LEVEL_WARN } from "./normalize-string-or-regex-BhaIG1rU.mjs";
5
- import { l as PluginDriver, n as createBundlerOptions } from "./rolldown-build-BEU8N80I.mjs";
6
- import { a as aggregateBindingErrorsIntoJsError } from "./bindingify-input-options-Bk0BBr2s.mjs";
4
+ import { E as LOG_LEVEL_WARN } from "./normalize-string-or-regex-CF1OWLn9.mjs";
5
+ import { l as PluginDriver, n as createBundlerOptions } from "./rolldown-build-DtYoS8Tq.mjs";
6
+ import { a as aggregateBindingErrorsIntoJsError } from "./bindingify-input-options-DvsExmEF.mjs";
7
7
 
8
8
  //#region ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
9
9
  /**
@@ -205,6 +205,18 @@ var SignalExit = class extends SignalExitBase {
205
205
  const process$1 = globalThis.process;
206
206
  const { onExit, load, unload } = signalExitWrap(processOk(process$1) ? new SignalExit(process$1) : new SignalExitFallback());
207
207
 
208
+ //#endregion
209
+ //#region src/utils/signal-exit.ts
210
+ function onExit$1(...args) {
211
+ if (typeof process === "object" && process.versions.webcontainer) {
212
+ process.on("exit", (code) => {
213
+ args[0](code, null);
214
+ });
215
+ return;
216
+ }
217
+ onExit(...args);
218
+ }
219
+
208
220
  //#endregion
209
221
  //#region src/api/watch/watch-emitter.ts
210
222
  var WatcherEmitter = class {
@@ -336,4 +348,4 @@ const watch = (input) => {
336
348
  };
337
349
 
338
350
  //#endregion
339
- export { onExit as n, watch as t };
351
+ export { onExit$1 as n, watch as t };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rolldown",
3
- "version": "1.0.0-beta.53",
3
+ "version": "1.0.0-beta.54",
4
4
  "description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
5
5
  "type": "module",
6
6
  "homepage": "https://rolldown.rs/",
@@ -78,19 +78,19 @@
78
78
  "dtsHeader": "type MaybePromise<T> = T | Promise<T>\ntype Nullable<T> = T | null | undefined\ntype VoidNullable<T = void> = T | null | undefined | void\nexport type BindingStringOrRegex = string | RegExp\ntype BindingResult<T> = { errors: BindingError[], isBindingErrors: boolean } | T\n\n"
79
79
  },
80
80
  "dependencies": {
81
- "@oxc-project/types": "=0.101.0",
82
- "@rolldown/pluginutils": "1.0.0-beta.53"
81
+ "@oxc-project/types": "=0.102.0",
82
+ "@rolldown/pluginutils": "1.0.0-beta.54"
83
83
  },
84
84
  "devDependencies": {
85
85
  "@napi-rs/cli": "^3.4.1",
86
86
  "@napi-rs/wasm-runtime": "^1.0.0",
87
- "@oxc-node/cli": "^0.0.34",
87
+ "@oxc-node/cli": "^0.0.35",
88
88
  "@rollup/plugin-json": "^6.1.0",
89
89
  "buble": "^0.20.0",
90
90
  "consola": "^3.4.2",
91
91
  "execa": "^9.2.0",
92
92
  "glob": "^13.0.0",
93
- "oxc-parser": "=0.101.0",
93
+ "oxc-parser": "=0.102.0",
94
94
  "pathe": "^2.0.3",
95
95
  "remeda": "^2.10.0",
96
96
  "rolldown-plugin-dts": "^0.18.0",
@@ -99,25 +99,25 @@
99
99
  "source-map": "^0.7.4",
100
100
  "typescript": "^5.8.3",
101
101
  "valibot": "1.2.0",
102
- "rolldown": "1.0.0-beta.53"
102
+ "rolldown": "1.0.0-beta.54"
103
103
  },
104
104
  "engines": {
105
105
  "node": "^20.19.0 || >=22.12.0"
106
106
  },
107
107
  "optionalDependencies": {
108
- "@rolldown/binding-darwin-x64": "1.0.0-beta.53",
109
- "@rolldown/binding-win32-x64-msvc": "1.0.0-beta.53",
110
- "@rolldown/binding-linux-x64-gnu": "1.0.0-beta.53",
111
- "@rolldown/binding-linux-x64-musl": "1.0.0-beta.53",
112
- "@rolldown/binding-freebsd-x64": "1.0.0-beta.53",
113
- "@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.53",
114
- "@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.53",
115
- "@rolldown/binding-darwin-arm64": "1.0.0-beta.53",
116
- "@rolldown/binding-linux-arm64-musl": "1.0.0-beta.53",
117
- "@rolldown/binding-openharmony-arm64": "1.0.0-beta.53",
118
- "@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.53",
119
- "@rolldown/binding-android-arm64": "1.0.0-beta.53",
120
- "@rolldown/binding-wasm32-wasi": "1.0.0-beta.53"
108
+ "@rolldown/binding-darwin-x64": "1.0.0-beta.54",
109
+ "@rolldown/binding-win32-x64-msvc": "1.0.0-beta.54",
110
+ "@rolldown/binding-linux-x64-gnu": "1.0.0-beta.54",
111
+ "@rolldown/binding-linux-x64-musl": "1.0.0-beta.54",
112
+ "@rolldown/binding-freebsd-x64": "1.0.0-beta.54",
113
+ "@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.54",
114
+ "@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.54",
115
+ "@rolldown/binding-darwin-arm64": "1.0.0-beta.54",
116
+ "@rolldown/binding-linux-arm64-musl": "1.0.0-beta.54",
117
+ "@rolldown/binding-openharmony-arm64": "1.0.0-beta.54",
118
+ "@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.54",
119
+ "@rolldown/binding-android-arm64": "1.0.0-beta.54",
120
+ "@rolldown/binding-wasm32-wasi": "1.0.0-beta.54"
121
121
  },
122
122
  "scripts": {
123
123
  "# Scrips for binding #": "_",