rolldown 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/dist/cli.mjs +6 -6
  2. package/dist/config.d.mts +1 -1
  3. package/dist/config.mjs +2 -2
  4. package/dist/experimental-index.d.mts +5 -4
  5. package/dist/experimental-index.mjs +11 -8
  6. package/dist/filter-index.d.mts +1 -1
  7. package/dist/index.d.mts +2 -2
  8. package/dist/index.mjs +4 -4
  9. package/dist/parallel-plugin-worker.mjs +2 -2
  10. package/dist/parallel-plugin.d.mts +1 -1
  11. package/dist/parse-ast-index.d.mts +1 -1
  12. package/dist/parse-ast-index.mjs +1 -1
  13. package/dist/plugins-index.d.mts +3 -3
  14. package/dist/plugins-index.mjs +2 -2
  15. package/dist/shared/{binding-DktDDYoY.d.mts → binding-BaCZTfMx.d.mts} +31 -0
  16. package/dist/shared/{binding-lLxFxuG-.mjs → binding-CXquf8ay.mjs} +27 -26
  17. package/dist/shared/{bindingify-input-options-DmY7myA4.mjs → bindingify-input-options-ClrST5Xx.mjs} +7 -7
  18. package/dist/shared/{constructors-BWzinPZW.mjs → constructors-BiPdtLBB.mjs} +1 -1
  19. package/dist/shared/{constructors-Dc4Y1bfN.d.mts → constructors-CbNaT434.d.mts} +2 -2
  20. package/dist/shared/{define-config-Bo24xyUK.d.mts → define-config-3BX_X2Am.d.mts} +3 -1
  21. package/dist/shared/{error-B8po7KiL.mjs → error-BuvQYXuZ.mjs} +1 -1
  22. package/dist/shared/{load-config-ByfeVF0s.mjs → load-config-K94jokAZ.mjs} +1 -1
  23. package/dist/shared/{normalize-string-or-regex-DqWsYC5b.mjs → normalize-string-or-regex-CNPF6PU9.mjs} +1 -1
  24. package/dist/shared/{parse-DRL-bdRR.mjs → parse-Bg2pr2Q5.mjs} +2 -2
  25. package/dist/shared/{prompt-DewH0PjV.mjs → prompt-DYnaB1Nb.mjs} +1 -1
  26. package/dist/shared/{resolve-tsconfig-B5gzX9_3.mjs → resolve-tsconfig-CcfxWrib.mjs} +15 -4
  27. package/dist/shared/{rolldown-B9_Kw98b.mjs → rolldown-BjTk_MS0.mjs} +1 -1
  28. package/dist/shared/{rolldown-build-9MccaWPU.mjs → rolldown-build-CrPk_lZe.mjs} +17 -7
  29. package/dist/shared/{transform-BpeSEA-X.d.mts → transform-7xCUVrpL.d.mts} +1 -1
  30. package/dist/shared/{watch-HI3wX0Zu.mjs → watch-BZza93fH.mjs} +4 -4
  31. package/dist/utils-index.d.mts +3 -3
  32. package/dist/utils-index.mjs +5 -5
  33. package/package.json +19 -19
package/dist/cli.mjs CHANGED
@@ -1,9 +1,9 @@
1
- import { n as onExit, t as watch } from "./shared/watch-HI3wX0Zu.mjs";
2
- import { C as version, S as description } from "./shared/bindingify-input-options-DmY7myA4.mjs";
1
+ import { n as onExit, t as watch } from "./shared/watch-BZza93fH.mjs";
2
+ import { C as version, S as description } from "./shared/bindingify-input-options-ClrST5Xx.mjs";
3
3
  import { t as arraify } from "./shared/misc-CoQm4NHO.mjs";
4
- import { a as getInputCliKeys, i as getCliSchemaInfo, l as styleText, o as getOutputCliKeys, r as logger, s as validateCliOptions } from "./shared/rolldown-build-9MccaWPU.mjs";
5
- import { t as rolldown } from "./shared/rolldown-B9_Kw98b.mjs";
6
- import { t as loadConfig } from "./shared/load-config-ByfeVF0s.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-CrPk_lZe.mjs";
5
+ import { t as rolldown } from "./shared/rolldown-BjTk_MS0.mjs";
6
+ import { t as loadConfig } from "./shared/load-config-K94jokAZ.mjs";
7
7
  import path from "node:path";
8
8
  import process$1 from "node:process";
9
9
  import { performance } from "node:perf_hooks";
@@ -847,7 +847,7 @@ function getClearScreenFunction(options) {
847
847
  };
848
848
  }
849
849
  //#endregion
850
- //#region \0@oxc-project+runtime@0.132.0/helpers/usingCtx.js
850
+ //#region \0@oxc-project+runtime@0.133.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();
package/dist/config.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { I as VERSION, r as defineConfig, t as ConfigExport } from "./shared/define-config-Bo24xyUK.mjs";
1
+ import { I as VERSION, r as defineConfig, t as ConfigExport } from "./shared/define-config-3BX_X2Am.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-DmY7myA4.mjs";
1
+ import { x as VERSION } from "./shared/bindingify-input-options-ClrST5Xx.mjs";
2
2
  import { t as defineConfig } from "./shared/define-config-Demdg3_4.mjs";
3
- import { t as loadConfig } from "./shared/load-config-ByfeVF0s.mjs";
3
+ import { t as loadConfig } from "./shared/load-config-K94jokAZ.mjs";
4
4
  export { VERSION, defineConfig, loadConfig };
@@ -1,7 +1,7 @@
1
- import { B as ResolveResult, C as BindingViteManifestPluginConfig, G as isolatedDeclaration, I as NapiResolveOptions, K as isolatedDeclarationSync, M as IsolatedDeclarationsResult, O as BindingViteTransformPluginConfig, V as ResolverFactory, _ as BindingTsconfigRawOptions, f as BindingRebuildStrategy, g as BindingTsconfigCompilerOptions, i as BindingClientHmrUpdate, j as IsolatedDeclarationsOptions, n as BindingBundleAnalyzerPluginConfig, q as moduleRunnerTransform, r as BindingBundleState } from "./shared/binding-DktDDYoY.mjs";
2
- import { Jt as RolldownOutput, P as BuiltinPlugin, Ut as StringOrRegExp, Xt as freeExternalMemory, Z as defineParallelPlugin, ct as NormalizedOutputOptions, l as InputOptions, zt as OutputOptions } from "./shared/define-config-Bo24xyUK.mjs";
3
- import { a as MinifyOptions$1, c as minifySync$1, d as parse$1, f as parseSync$1, i as transformSync$1, l as ParseResult$1, m as resolveTsconfig, n as TransformResult$1, o as MinifyResult$1, p as TsconfigCache$1, r as transform$1, s as minify$1, t as TransformOptions$1, u as ParserOptions$1 } from "./shared/transform-BpeSEA-X.mjs";
4
- import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, m as viteWebWorkerPostPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWasmFallbackPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-Dc4Y1bfN.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-BaCZTfMx.mjs";
2
+ import { Jt as RolldownOutput, P as BuiltinPlugin, Ut as StringOrRegExp, Xt as freeExternalMemory, Z as defineParallelPlugin, ct as NormalizedOutputOptions, l as InputOptions, zt as OutputOptions } from "./shared/define-config-3BX_X2Am.mjs";
3
+ import { a as MinifyOptions$1, c as minifySync$1, d as parse$1, f as parseSync$1, i as transformSync$1, l as ParseResult$1, m as resolveTsconfig, n as TransformResult$1, o as MinifyResult$1, p as TsconfigCache$1, r as transform$1, s as minify$1, t as TransformOptions$1, u as ParserOptions$1 } from "./shared/transform-7xCUVrpL.mjs";
4
+ import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, m as viteWebWorkerPostPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWasmFallbackPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-CbNaT434.mjs";
5
5
 
6
6
  //#region src/api/dev/dev-options.d.ts
7
7
  type DevOnHmrUpdates = (result: Error | {
@@ -88,6 +88,7 @@ declare class DevEngine {
88
88
  ensureCurrentBuildFinish(): Promise<void>;
89
89
  getBundleState(): Promise<BindingBundleState>;
90
90
  ensureLatestBuildOutput(): Promise<void>;
91
+ triggerFullBuild(): void;
91
92
  invalidate(file: string, firstInvalidatedBy?: string): Promise<BindingClientHmrUpdate[]>;
92
93
  registerModules(clientId: string, modules: string[]): Promise<void>;
93
94
  removeClient(clientId: string): Promise<void>;
@@ -1,11 +1,11 @@
1
- import { n as __toESM, t as require_binding } from "./shared/binding-lLxFxuG-.mjs";
2
- import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-DqWsYC5b.mjs";
3
- import { o as transformToRollupOutput } from "./shared/bindingify-input-options-DmY7myA4.mjs";
4
- import { c as validateOption, n as createBundlerOptions, t as RolldownBuild, u as PluginDriver } from "./shared/rolldown-build-9MccaWPU.mjs";
5
- import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-B8po7KiL.mjs";
6
- import { n as parseSync$1, t as parse$1 } from "./shared/parse-DRL-bdRR.mjs";
7
- import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, m as viteWebWorkerPostPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWasmFallbackPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-BWzinPZW.mjs";
8
- import { a as minify$1, i as transformSync$1, n as resolveTsconfig, o as minifySync$1, r as transform$1, t as TsconfigCache$1 } from "./shared/resolve-tsconfig-B5gzX9_3.mjs";
1
+ import { n as __toESM, t as require_binding } from "./shared/binding-CXquf8ay.mjs";
2
+ import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-CNPF6PU9.mjs";
3
+ import { o as transformToRollupOutput } from "./shared/bindingify-input-options-ClrST5Xx.mjs";
4
+ import { c as validateOption, n as createBundlerOptions, t as RolldownBuild, u as PluginDriver } from "./shared/rolldown-build-CrPk_lZe.mjs";
5
+ import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-BuvQYXuZ.mjs";
6
+ import { n as parseSync$1, t as parse$1 } from "./shared/parse-Bg2pr2Q5.mjs";
7
+ import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, m as viteWebWorkerPostPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWasmFallbackPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-BiPdtLBB.mjs";
8
+ import { a as minify$1, i as transformSync$1, n as resolveTsconfig, o as minifySync$1, r as transform$1, t as TsconfigCache$1 } from "./shared/resolve-tsconfig-CcfxWrib.mjs";
9
9
  import { pathToFileURL } from "node:url";
10
10
  //#region src/api/dev/dev-engine.ts
11
11
  var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
@@ -74,6 +74,9 @@ var DevEngine = class DevEngine {
74
74
  async ensureLatestBuildOutput() {
75
75
  await this.#inner.ensureLatestBuildOutput();
76
76
  }
77
+ triggerFullBuild() {
78
+ this.#inner.triggerFullBuild();
79
+ }
77
80
  async invalidate(file, firstInvalidatedBy) {
78
81
  return this.#inner.invalidate(file, firstInvalidatedBy);
79
82
  }
@@ -1,4 +1,4 @@
1
- import { N as withFilter } from "./shared/define-config-Bo24xyUK.mjs";
1
+ import { N as withFilter } from "./shared/define-config-3BX_X2Am.mjs";
2
2
 
3
3
  //#region ../../node_modules/.pnpm/@rolldown+pluginutils@1.0.0/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.d.ts
4
4
  type StringOrRegExp = string | RegExp;
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
1
  import { a as RolldownLog, i as RolldownError, n as LogLevelOption, o as RolldownLogWithString, r as LogOrStringHandler, t as LogLevel } from "./shared/logging-BSNejiLS.mjs";
2
- import { z as PreRenderedChunk } from "./shared/binding-DktDDYoY.mjs";
3
- import { $ as PluginContextMeta, A as RolldownPluginOption, At as CodeSplittingGroup, B as OutputBundle, Bt as PreRenderedAsset, C as ParallelPluginHooks, Ct as build, D as ResolveIdResult, Dt as BuiltinModuleTag, E as ResolveIdExtraOptions, Et as AdvancedChunksOptions, F as RUNTIME_MODULE_ID, Ft as GeneratedCodePreset, G as EmittedFile, Gt as OutputChunk, H as TransformPluginContext, Ht as PartialNull, I as VERSION, It as GlobalsFunction, J as PluginContext, Jt as RolldownOutput, K as EmittedPrebuiltChunk, Kt as RenderedChunk, L as BundleError, Lt as MinifyOptions, M as TransformResult, Mt as CodeSplittingOptions, Nt as CommentsOptions, O as ResolvedId, Ot as ChunkFileNamesFunction, Pt as GeneratedCodeOptions, Q as MinimalPluginContext, Qt as SourcemapIgnoreListOption, R as ExistingRawSourceMap, Rt as ModuleFormat, S as ObjectHook, St as BuildOptions, T as Plugin, Tt as AdvancedChunksGroup, U as EmittedAsset, V as TreeshakingOptions, W as EmittedChunk, Wt as OutputAsset, X as DefineParallelPluginResult, Y as PluginContextResolveOptions, Yt as SourceMap, Zt as ModuleInfo, _ as HookFilterExtension, _t as RolldownWatcherEvent, a as ChunkOptimizationOptions, at as RolldownFileStats, b as ModuleOptions, bt as rolldown, c as InputOption, ct as NormalizedOutputOptions, d as OptimizationOptions, dt as ChecksOptions, et as GeneralHookFilter, f as WatcherFileWatcherOptions, ft as LoggingFunction, g as FunctionPluginHooks, gt as RolldownWatcher, h as CustomPluginOptions, ht as watch, i as RolldownOptions, it as RolldownDirectoryEntry, j as SourceDescription, jt as CodeSplittingNameFunction, k as RolldownPlugin, kt as ChunkingContext, l as InputOptions, lt as NormalizedInputOptions, m as AsyncPluginHooks, mt as RolldownMagicString, n as RolldownOptionsFunction, nt as ModuleTypeFilter, o as ExternalOption, ot as RolldownFsModule, p as WatcherOptions, pt as WarningHandlerWithDefault, q as GetModuleInfo, qt as RenderedModule, r as defineConfig, rt as BufferEncoding, s as ExternalOptionFunction, st as InternalModuleFormat, t as ConfigExport, tt as HookFilter, u as ModuleTypes, ut as TransformOptions, v as ImportKind, vt as RolldownWatcherWatcherEventMap, w as PartialResolvedId, wt as AddonFunction, x as ModuleType, xt as RolldownBuild, y as LoadResult, yt as WatchOptions, z as SourceMapInput, zt as OutputOptions } from "./shared/define-config-Bo24xyUK.mjs";
2
+ import { z as PreRenderedChunk } from "./shared/binding-BaCZTfMx.mjs";
3
+ import { $ as PluginContextMeta, A as RolldownPluginOption, At as CodeSplittingGroup, B as OutputBundle, Bt as PreRenderedAsset, C as ParallelPluginHooks, Ct as build, D as ResolveIdResult, Dt as BuiltinModuleTag, E as ResolveIdExtraOptions, Et as AdvancedChunksOptions, F as RUNTIME_MODULE_ID, Ft as GeneratedCodePreset, G as EmittedFile, Gt as OutputChunk, H as TransformPluginContext, Ht as PartialNull, I as VERSION, It as GlobalsFunction, J as PluginContext, Jt as RolldownOutput, K as EmittedPrebuiltChunk, Kt as RenderedChunk, L as BundleError, Lt as MinifyOptions, M as TransformResult, Mt as CodeSplittingOptions, Nt as CommentsOptions, O as ResolvedId, Ot as ChunkFileNamesFunction, Pt as GeneratedCodeOptions, Q as MinimalPluginContext, Qt as SourcemapIgnoreListOption, R as ExistingRawSourceMap, Rt as ModuleFormat, S as ObjectHook, St as BuildOptions, T as Plugin, Tt as AdvancedChunksGroup, U as EmittedAsset, V as TreeshakingOptions, W as EmittedChunk, Wt as OutputAsset, X as DefineParallelPluginResult, Y as PluginContextResolveOptions, Yt as SourceMap, Zt as ModuleInfo, _ as HookFilterExtension, _t as RolldownWatcherEvent, a as ChunkOptimizationOptions, at as RolldownFileStats, b as ModuleOptions, bt as rolldown, c as InputOption, ct as NormalizedOutputOptions, d as OptimizationOptions, dt as ChecksOptions, et as GeneralHookFilter, f as WatcherFileWatcherOptions, ft as LoggingFunction, g as FunctionPluginHooks, gt as RolldownWatcher, h as CustomPluginOptions, ht as watch, i as RolldownOptions, it as RolldownDirectoryEntry, j as SourceDescription, jt as CodeSplittingNameFunction, k as RolldownPlugin, kt as ChunkingContext, l as InputOptions, lt as NormalizedInputOptions, m as AsyncPluginHooks, mt as RolldownMagicString, n as RolldownOptionsFunction, nt as ModuleTypeFilter, o as ExternalOption, ot as RolldownFsModule, p as WatcherOptions, pt as WarningHandlerWithDefault, q as GetModuleInfo, qt as RenderedModule, r as defineConfig, rt as BufferEncoding, s as ExternalOptionFunction, st as InternalModuleFormat, t as ConfigExport, tt as HookFilter, u as ModuleTypes, ut as TransformOptions, v as ImportKind, vt as RolldownWatcherWatcherEventMap, w as PartialResolvedId, wt as AddonFunction, x as ModuleType, xt as RolldownBuild, y as LoadResult, yt as WatchOptions, z as SourceMapInput, zt as OutputOptions } from "./shared/define-config-3BX_X2Am.mjs";
4
4
  export { type AddonFunction, type AdvancedChunksGroup, type AdvancedChunksOptions, type AsyncPluginHooks, type BufferEncoding, type BuildOptions, type BuiltinModuleTag, type BundleError, type ChecksOptions, type ChunkFileNamesFunction, type ChunkOptimizationOptions, type ChunkingContext, type CodeSplittingGroup, type CodeSplittingNameFunction, type CodeSplittingOptions, type CommentsOptions, type ConfigExport, type CustomPluginOptions, type DefineParallelPluginResult, type EmittedAsset, type EmittedChunk, type EmittedFile, type EmittedPrebuiltChunk, type ExistingRawSourceMap, type ExternalOption, type ExternalOptionFunction, type FunctionPluginHooks, type GeneralHookFilter, type GeneratedCodeOptions, type GeneratedCodePreset, type GetModuleInfo, type GlobalsFunction, type HookFilter, type HookFilterExtension, type ImportKind, type InputOption, type InputOptions, type InternalModuleFormat, type LoadResult, type LogLevel, type LogLevelOption, type LogOrStringHandler, type LoggingFunction, type MinifyOptions, type MinimalPluginContext, type ModuleFormat, type ModuleInfo, type ModuleOptions, type ModuleType, type ModuleTypeFilter, type ModuleTypes, type NormalizedInputOptions, type NormalizedOutputOptions, type ObjectHook, type OptimizationOptions, type OutputAsset, type OutputBundle, type OutputChunk, type OutputOptions, type ParallelPluginHooks, type PartialNull, type PartialResolvedId, type Plugin, type PluginContext, type PluginContextMeta, type PluginContextResolveOptions, type PreRenderedAsset, type PreRenderedChunk, RUNTIME_MODULE_ID, type RenderedChunk, type RenderedModule, type ResolveIdExtraOptions, type ResolveIdResult, type ResolvedId, type RolldownBuild, type RolldownDirectoryEntry, type RolldownError, type RolldownError as RollupError, type RolldownFileStats, type RolldownFsModule, type RolldownLog, type RolldownLog as RollupLog, type RolldownLogWithString, type RolldownLogWithString as RollupLogWithString, RolldownMagicString, type RolldownOptions, type RolldownOptionsFunction, type RolldownOutput, type RolldownPlugin, type RolldownPluginOption, type RolldownWatcher, type RolldownWatcherEvent, type RolldownWatcherWatcherEventMap, type SourceDescription, type SourceMap, type SourceMapInput, type SourcemapIgnoreListOption, type TransformOptions, type TransformPluginContext, type TransformResult, type TreeshakingOptions, VERSION, type WarningHandlerWithDefault, type WatchOptions, type WatcherFileWatcherOptions, type WatcherOptions, build, defineConfig, rolldown, watch };
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
- import { n as __toESM, t as require_binding } from "./shared/binding-lLxFxuG-.mjs";
2
- import { n as onExit, t as watch } from "./shared/watch-HI3wX0Zu.mjs";
3
- import { a as RolldownMagicString, b as RUNTIME_MODULE_ID, x as VERSION } from "./shared/bindingify-input-options-DmY7myA4.mjs";
4
- import { t as rolldown } from "./shared/rolldown-B9_Kw98b.mjs";
1
+ import { n as __toESM, t as require_binding } from "./shared/binding-CXquf8ay.mjs";
2
+ import { n as onExit, t as watch } from "./shared/watch-BZza93fH.mjs";
3
+ import { a as RolldownMagicString, b as RUNTIME_MODULE_ID, x as VERSION } from "./shared/bindingify-input-options-ClrST5Xx.mjs";
4
+ import { t as rolldown } from "./shared/rolldown-BjTk_MS0.mjs";
5
5
  import { t as defineConfig } from "./shared/define-config-Demdg3_4.mjs";
6
6
  import { isMainThread } from "node:worker_threads";
7
7
  //#region src/setup.ts
@@ -1,5 +1,5 @@
1
- import { n as __toESM, t as require_binding } from "./shared/binding-lLxFxuG-.mjs";
2
- import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-DmY7myA4.mjs";
1
+ import { n as __toESM, t as require_binding } from "./shared/binding-CXquf8ay.mjs";
2
+ import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-ClrST5Xx.mjs";
3
3
  import { parentPort, workerData } from "node:worker_threads";
4
4
  //#region src/parallel-plugin-worker.ts
5
5
  var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
@@ -1,4 +1,4 @@
1
- import { T as Plugin, Vt as MaybePromise } from "./shared/define-config-Bo24xyUK.mjs";
1
+ import { T as Plugin, Vt as MaybePromise } from "./shared/define-config-3BX_X2Am.mjs";
2
2
 
3
3
  //#region src/plugin/parallel-plugin-implementation.d.ts
4
4
  type ParallelPluginImplementation = Plugin;
@@ -1,4 +1,4 @@
1
- import { L as ParseResult$1, R as ParserOptions$1 } from "./shared/binding-DktDDYoY.mjs";
1
+ import { L as ParseResult$1, R as ParserOptions$1 } from "./shared/binding-BaCZTfMx.mjs";
2
2
  import { Program } from "@oxc-project/types";
3
3
 
4
4
  //#region src/parse-ast-index.d.ts
@@ -1,5 +1,5 @@
1
1
  import { l as locate, n as error, s as logParseError, t as augmentCodeLocation, u as getCodeFrame } from "./shared/logs-aMKUxRpj.mjs";
2
- import { n as parseSync, t as parse } from "./shared/parse-DRL-bdRR.mjs";
2
+ import { n as parseSync, t as parse } from "./shared/parse-Bg2pr2Q5.mjs";
3
3
  //#region src/parse-ast-index.ts
4
4
  function wrap(result, filename, sourceText) {
5
5
  if (result.errors.length > 0) return normalizeParseError(filename, sourceText, result.errors);
@@ -1,6 +1,6 @@
1
- import { m as BindingReplacePluginConfig } from "./shared/binding-DktDDYoY.mjs";
2
- import { P as BuiltinPlugin } from "./shared/define-config-Bo24xyUK.mjs";
3
- import { t as esmExternalRequirePlugin } from "./shared/constructors-Dc4Y1bfN.mjs";
1
+ import { m as BindingReplacePluginConfig } from "./shared/binding-BaCZTfMx.mjs";
2
+ import { P as BuiltinPlugin } from "./shared/define-config-3BX_X2Am.mjs";
3
+ import { t as esmExternalRequirePlugin } from "./shared/constructors-CbNaT434.mjs";
4
4
 
5
5
  //#region src/builtin-plugin/replace-plugin.d.ts
6
6
  /**
@@ -1,5 +1,5 @@
1
- import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./shared/normalize-string-or-regex-DqWsYC5b.mjs";
2
- import { t as esmExternalRequirePlugin } from "./shared/constructors-BWzinPZW.mjs";
1
+ import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./shared/normalize-string-or-regex-CNPF6PU9.mjs";
2
+ import { t as esmExternalRequirePlugin } from "./shared/constructors-BiPdtLBB.mjs";
3
3
  //#region src/builtin-plugin/replace-plugin.ts
4
4
  /**
5
5
  * Replaces targeted strings in files while bundling.
@@ -9,6 +9,20 @@ interface CodegenOptions {
9
9
  * @default true
10
10
  */
11
11
  removeWhitespace?: boolean;
12
+ /**
13
+ * How to handle legal comments (comments containing `@license`, `@preserve`, or starting with `//!`/`/*!`).
14
+ *
15
+ * * `"none"` - Do not preserve any legal comments.
16
+ * * `"inline"` - Preserve all legal comments inline.
17
+ * * `"eof"` - Move all legal comments to the end of the file.
18
+ * * `"external"` - Extract legal comments without linking.
19
+ * * `{ linked: "path/to/legal.txt" }` - Extract legal comments and add a link comment to the given path.
20
+ *
21
+ * @default "none" (when minifying)
22
+ */
23
+ legalComments?: 'none' | 'inline' | 'eof' | 'external' | {
24
+ linked: string;
25
+ };
12
26
  }
13
27
  interface CompressOptions {
14
28
  /**
@@ -134,6 +148,11 @@ interface MinifyResult {
134
148
  code: string;
135
149
  map?: SourceMap;
136
150
  errors: Array<OxcError>;
151
+ /**
152
+ * Legal comments extracted from the source code.
153
+ * Only populated when `codegen.legalComments` is `"linked"` or `"external"`.
154
+ */
155
+ legalComments: Array<string>;
137
156
  }
138
157
  interface TreeShakeOptions {
139
158
  /**
@@ -773,6 +792,18 @@ interface DecoratorOptions {
773
792
  * @default false
774
793
  */
775
794
  emitDecoratorMetadata?: boolean;
795
+ /**
796
+ * Aligns nullable-union `design:type` emission with `--strictNullChecks`.
797
+ *
798
+ * When `true` (default), `T | null` and `T | undefined` emit `Object`, matching tsc strict.
799
+ * When `false`, `null` and `undefined` are elided from the union so the underlying
800
+ * primitive constructor is emitted, matching tsc with `--strictNullChecks=false`
801
+ * and `babel-plugin-transform-typescript-metadata`.
802
+ *
803
+ * @see https://www.typescriptlang.org/tsconfig/#strictNullChecks
804
+ * @default true
805
+ */
806
+ strictNullChecks?: boolean;
776
807
  }
777
808
  type HelperMode =
778
809
  /**
@@ -103,7 +103,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
103
103
  try {
104
104
  const binding = __require("@rolldown/binding-android-arm64");
105
105
  const bindingPackageVersion = __require("@rolldown/binding-android-arm64/package.json").version;
106
- if (bindingPackageVersion !== "1.0.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
106
+ if (bindingPackageVersion !== "1.0.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
107
107
  return binding;
108
108
  } catch (e) {
109
109
  loadErrors.push(e);
@@ -117,7 +117,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
117
117
  try {
118
118
  const binding = __require("@rolldown/binding-android-arm-eabi");
119
119
  const bindingPackageVersion = __require("@rolldown/binding-android-arm-eabi/package.json").version;
120
- if (bindingPackageVersion !== "1.0.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
120
+ if (bindingPackageVersion !== "1.0.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
121
121
  return binding;
122
122
  } catch (e) {
123
123
  loadErrors.push(e);
@@ -132,7 +132,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
132
132
  try {
133
133
  const binding = __require("@rolldown/binding-win32-x64-gnu");
134
134
  const bindingPackageVersion = __require("@rolldown/binding-win32-x64-gnu/package.json").version;
135
- if (bindingPackageVersion !== "1.0.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
135
+ if (bindingPackageVersion !== "1.0.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
136
136
  return binding;
137
137
  } catch (e) {
138
138
  loadErrors.push(e);
@@ -146,7 +146,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
146
146
  try {
147
147
  const binding = __require("@rolldown/binding-win32-x64-msvc");
148
148
  const bindingPackageVersion = __require("@rolldown/binding-win32-x64-msvc/package.json").version;
149
- if (bindingPackageVersion !== "1.0.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
149
+ if (bindingPackageVersion !== "1.0.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
150
150
  return binding;
151
151
  } catch (e) {
152
152
  loadErrors.push(e);
@@ -161,7 +161,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
161
161
  try {
162
162
  const binding = __require("@rolldown/binding-win32-ia32-msvc");
163
163
  const bindingPackageVersion = __require("@rolldown/binding-win32-ia32-msvc/package.json").version;
164
- if (bindingPackageVersion !== "1.0.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
164
+ if (bindingPackageVersion !== "1.0.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
165
165
  return binding;
166
166
  } catch (e) {
167
167
  loadErrors.push(e);
@@ -175,7 +175,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
175
175
  try {
176
176
  const binding = __require("@rolldown/binding-win32-arm64-msvc");
177
177
  const bindingPackageVersion = __require("@rolldown/binding-win32-arm64-msvc/package.json").version;
178
- if (bindingPackageVersion !== "1.0.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
178
+ if (bindingPackageVersion !== "1.0.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
179
179
  return binding;
180
180
  } catch (e) {
181
181
  loadErrors.push(e);
@@ -190,7 +190,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
190
190
  try {
191
191
  const binding = __require("@rolldown/binding-darwin-universal");
192
192
  const bindingPackageVersion = __require("@rolldown/binding-darwin-universal/package.json").version;
193
- if (bindingPackageVersion !== "1.0.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
193
+ if (bindingPackageVersion !== "1.0.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
194
194
  return binding;
195
195
  } catch (e) {
196
196
  loadErrors.push(e);
@@ -204,7 +204,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
204
204
  try {
205
205
  const binding = __require("@rolldown/binding-darwin-x64");
206
206
  const bindingPackageVersion = __require("@rolldown/binding-darwin-x64/package.json").version;
207
- if (bindingPackageVersion !== "1.0.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
207
+ if (bindingPackageVersion !== "1.0.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
208
208
  return binding;
209
209
  } catch (e) {
210
210
  loadErrors.push(e);
@@ -218,7 +218,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
218
218
  try {
219
219
  const binding = __require("@rolldown/binding-darwin-arm64");
220
220
  const bindingPackageVersion = __require("@rolldown/binding-darwin-arm64/package.json").version;
221
- if (bindingPackageVersion !== "1.0.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
221
+ if (bindingPackageVersion !== "1.0.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
222
222
  return binding;
223
223
  } catch (e) {
224
224
  loadErrors.push(e);
@@ -233,7 +233,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
233
233
  try {
234
234
  const binding = __require("@rolldown/binding-freebsd-x64");
235
235
  const bindingPackageVersion = __require("@rolldown/binding-freebsd-x64/package.json").version;
236
- if (bindingPackageVersion !== "1.0.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
236
+ if (bindingPackageVersion !== "1.0.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
237
237
  return binding;
238
238
  } catch (e) {
239
239
  loadErrors.push(e);
@@ -247,7 +247,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
247
247
  try {
248
248
  const binding = __require("@rolldown/binding-freebsd-arm64");
249
249
  const bindingPackageVersion = __require("@rolldown/binding-freebsd-arm64/package.json").version;
250
- if (bindingPackageVersion !== "1.0.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
250
+ if (bindingPackageVersion !== "1.0.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
251
251
  return binding;
252
252
  } catch (e) {
253
253
  loadErrors.push(e);
@@ -262,7 +262,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
262
262
  try {
263
263
  const binding = __require("@rolldown/binding-linux-x64-musl");
264
264
  const bindingPackageVersion = __require("@rolldown/binding-linux-x64-musl/package.json").version;
265
- if (bindingPackageVersion !== "1.0.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
265
+ if (bindingPackageVersion !== "1.0.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
266
266
  return binding;
267
267
  } catch (e) {
268
268
  loadErrors.push(e);
@@ -276,7 +276,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
276
276
  try {
277
277
  const binding = __require("@rolldown/binding-linux-x64-gnu");
278
278
  const bindingPackageVersion = __require("@rolldown/binding-linux-x64-gnu/package.json").version;
279
- if (bindingPackageVersion !== "1.0.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
279
+ if (bindingPackageVersion !== "1.0.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
280
280
  return binding;
281
281
  } catch (e) {
282
282
  loadErrors.push(e);
@@ -291,7 +291,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
291
291
  try {
292
292
  const binding = __require("@rolldown/binding-linux-arm64-musl");
293
293
  const bindingPackageVersion = __require("@rolldown/binding-linux-arm64-musl/package.json").version;
294
- if (bindingPackageVersion !== "1.0.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
294
+ if (bindingPackageVersion !== "1.0.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
295
295
  return binding;
296
296
  } catch (e) {
297
297
  loadErrors.push(e);
@@ -305,7 +305,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
305
305
  try {
306
306
  const binding = __require("@rolldown/binding-linux-arm64-gnu");
307
307
  const bindingPackageVersion = __require("@rolldown/binding-linux-arm64-gnu/package.json").version;
308
- if (bindingPackageVersion !== "1.0.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
308
+ if (bindingPackageVersion !== "1.0.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
309
309
  return binding;
310
310
  } catch (e) {
311
311
  loadErrors.push(e);
@@ -320,7 +320,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
320
320
  try {
321
321
  const binding = __require("@rolldown/binding-linux-arm-musleabihf");
322
322
  const bindingPackageVersion = __require("@rolldown/binding-linux-arm-musleabihf/package.json").version;
323
- if (bindingPackageVersion !== "1.0.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
323
+ if (bindingPackageVersion !== "1.0.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
324
324
  return binding;
325
325
  } catch (e) {
326
326
  loadErrors.push(e);
@@ -334,7 +334,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
334
334
  try {
335
335
  const binding = __require("@rolldown/binding-linux-arm-gnueabihf");
336
336
  const bindingPackageVersion = __require("@rolldown/binding-linux-arm-gnueabihf/package.json").version;
337
- if (bindingPackageVersion !== "1.0.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
337
+ if (bindingPackageVersion !== "1.0.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
338
338
  return binding;
339
339
  } catch (e) {
340
340
  loadErrors.push(e);
@@ -349,7 +349,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
349
349
  try {
350
350
  const binding = __require("@rolldown/binding-linux-loong64-musl");
351
351
  const bindingPackageVersion = __require("@rolldown/binding-linux-loong64-musl/package.json").version;
352
- if (bindingPackageVersion !== "1.0.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
352
+ if (bindingPackageVersion !== "1.0.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
353
353
  return binding;
354
354
  } catch (e) {
355
355
  loadErrors.push(e);
@@ -363,7 +363,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
363
363
  try {
364
364
  const binding = __require("@rolldown/binding-linux-loong64-gnu");
365
365
  const bindingPackageVersion = __require("@rolldown/binding-linux-loong64-gnu/package.json").version;
366
- if (bindingPackageVersion !== "1.0.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
366
+ if (bindingPackageVersion !== "1.0.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
367
367
  return binding;
368
368
  } catch (e) {
369
369
  loadErrors.push(e);
@@ -378,7 +378,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
378
378
  try {
379
379
  const binding = __require("@rolldown/binding-linux-riscv64-musl");
380
380
  const bindingPackageVersion = __require("@rolldown/binding-linux-riscv64-musl/package.json").version;
381
- if (bindingPackageVersion !== "1.0.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
381
+ if (bindingPackageVersion !== "1.0.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
382
382
  return binding;
383
383
  } catch (e) {
384
384
  loadErrors.push(e);
@@ -392,7 +392,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
392
392
  try {
393
393
  const binding = __require("@rolldown/binding-linux-riscv64-gnu");
394
394
  const bindingPackageVersion = __require("@rolldown/binding-linux-riscv64-gnu/package.json").version;
395
- if (bindingPackageVersion !== "1.0.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
395
+ if (bindingPackageVersion !== "1.0.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
396
396
  return binding;
397
397
  } catch (e) {
398
398
  loadErrors.push(e);
@@ -407,7 +407,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
407
407
  try {
408
408
  const binding = __require("@rolldown/binding-linux-ppc64-gnu");
409
409
  const bindingPackageVersion = __require("@rolldown/binding-linux-ppc64-gnu/package.json").version;
410
- if (bindingPackageVersion !== "1.0.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
410
+ if (bindingPackageVersion !== "1.0.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
411
411
  return binding;
412
412
  } catch (e) {
413
413
  loadErrors.push(e);
@@ -421,7 +421,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
421
421
  try {
422
422
  const binding = __require("@rolldown/binding-linux-s390x-gnu");
423
423
  const bindingPackageVersion = __require("@rolldown/binding-linux-s390x-gnu/package.json").version;
424
- if (bindingPackageVersion !== "1.0.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
424
+ if (bindingPackageVersion !== "1.0.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
425
425
  return binding;
426
426
  } catch (e) {
427
427
  loadErrors.push(e);
@@ -436,7 +436,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
436
436
  try {
437
437
  const binding = __require("@rolldown/binding-openharmony-arm64");
438
438
  const bindingPackageVersion = __require("@rolldown/binding-openharmony-arm64/package.json").version;
439
- if (bindingPackageVersion !== "1.0.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
439
+ if (bindingPackageVersion !== "1.0.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
440
440
  return binding;
441
441
  } catch (e) {
442
442
  loadErrors.push(e);
@@ -450,7 +450,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
450
450
  try {
451
451
  const binding = __require("@rolldown/binding-openharmony-x64");
452
452
  const bindingPackageVersion = __require("@rolldown/binding-openharmony-x64/package.json").version;
453
- if (bindingPackageVersion !== "1.0.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
453
+ if (bindingPackageVersion !== "1.0.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
454
454
  return binding;
455
455
  } catch (e) {
456
456
  loadErrors.push(e);
@@ -464,7 +464,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
464
464
  try {
465
465
  const binding = __require("@rolldown/binding-openharmony-arm");
466
466
  const bindingPackageVersion = __require("@rolldown/binding-openharmony-arm/package.json").version;
467
- if (bindingPackageVersion !== "1.0.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
467
+ if (bindingPackageVersion !== "1.0.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
468
468
  return binding;
469
469
  } catch (e) {
470
470
  loadErrors.push(e);
@@ -511,6 +511,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
511
511
  throw new Error(`Failed to load native binding`);
512
512
  }
513
513
  module.exports = nativeBinding;
514
+ module.exports.LegalCommentsMode = nativeBinding.LegalCommentsMode;
514
515
  module.exports.minify = nativeBinding.minify;
515
516
  module.exports.minifySync = nativeBinding.minifySync;
516
517
  module.exports.Severity = nativeBinding.Severity;
@@ -1,14 +1,14 @@
1
- import { n as __toESM, t as require_binding } from "./binding-lLxFxuG-.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-CXquf8ay.mjs";
2
2
  import { a as logInvalidLogPosition, c as logPluginError, n as error, r as logCycleLoading, t as augmentCodeLocation } from "./logs-aMKUxRpj.mjs";
3
- import { i as bindingifyManifestPlugin, n as BuiltinPlugin, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-DqWsYC5b.mjs";
3
+ import { i as bindingifyManifestPlugin, n as BuiltinPlugin, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-CNPF6PU9.mjs";
4
4
  import { a as unreachable, o as unsupported, r as noop, t as arraify } from "./misc-CoQm4NHO.mjs";
5
- import { a as bindingifySourcemap, i as unwrapBindingResult, t as aggregateBindingErrorsIntoJsError } from "./error-B8po7KiL.mjs";
5
+ import { a as bindingifySourcemap, i as unwrapBindingResult, t as aggregateBindingErrorsIntoJsError } from "./error-BuvQYXuZ.mjs";
6
6
  import { parseAst } from "../parse-ast-index.mjs";
7
7
  import path from "node:path";
8
8
  import * as filter from "@rolldown/pluginutils";
9
9
  import fsp from "node:fs/promises";
10
10
  //#region package.json
11
- var version = "1.0.2";
11
+ var version = "1.0.3";
12
12
  var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
13
13
  //#endregion
14
14
  //#region src/constants/version.ts
@@ -219,7 +219,7 @@ function bindingAssetSource(source) {
219
219
  return { inner: source };
220
220
  }
221
221
  //#endregion
222
- //#region \0@oxc-project+runtime@0.132.0/helpers/decorate.js
222
+ //#region \0@oxc-project+runtime@0.133.0/helpers/esm/decorate.js
223
223
  function __decorate(decorators, target, key, desc) {
224
224
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
225
225
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -516,7 +516,7 @@ function transformToOutputBundle(context, output, changed) {
516
516
  const originalStackTraceLimit = Error.stackTraceLimit;
517
517
  Error.stackTraceLimit = 2;
518
518
  const message = "This plugin assigns to bundle variable. This is discouraged by Rollup and is not supported by Rolldown. This will be ignored. https://rollupjs.org/plugin-development/#generatebundle:~:text=DANGER,this.emitFile.";
519
- const stack = new Error(message).stack ?? message;
519
+ const stack = (/* @__PURE__ */ new Error(message)).stack ?? message;
520
520
  Error.stackTraceLimit = originalStackTraceLimit;
521
521
  context.warn({
522
522
  message: stack,
@@ -1201,7 +1201,7 @@ function bindingifyTransform(args) {
1201
1201
  }
1202
1202
  return {
1203
1203
  code: normalizedCode,
1204
- map: bindingifySourcemap(normalizeTransformHookSourcemap(id, code, map)),
1204
+ map: bindingifySourcemap(normalizeTransformHookSourcemap(id, code, map)) ?? (ret.map === null ? null : void 0),
1205
1205
  moduleSideEffects: moduleOption.moduleSideEffects ?? void 0,
1206
1206
  moduleType: ret.moduleType
1207
1207
  };
@@ -1,4 +1,4 @@
1
- import { a as makeBuiltinPluginCallable, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-DqWsYC5b.mjs";
1
+ import { a as makeBuiltinPluginCallable, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-CNPF6PU9.mjs";
2
2
  //#region src/builtin-plugin/constructors.ts
3
3
  function viteModulePreloadPolyfillPlugin(config) {
4
4
  return new BuiltinPlugin("builtin:vite-module-preload-polyfill", config);
@@ -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-DktDDYoY.mjs";
2
- import { P as BuiltinPlugin, Ut as StringOrRegExp } from "./define-config-Bo24xyUK.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-BaCZTfMx.mjs";
2
+ import { P as BuiltinPlugin, Ut as StringOrRegExp } from "./define-config-3BX_X2Am.mjs";
3
3
 
4
4
  //#region src/builtin-plugin/constructors.d.ts
5
5
  declare function viteModulePreloadPolyfillPlugin(config?: BindingViteModulePreloadPolyfillPluginConfig): BuiltinPlugin;
@@ -1,5 +1,5 @@
1
1
  import { a as RolldownLog, i as RolldownError, n as LogLevelOption, o as RolldownLogWithString, r as LogOrStringHandler, t as LogLevel } from "./logging-BSNejiLS.mjs";
2
- import { A as ExternalMemoryStatus, N as JsxOptions, P as MinifyOptions$1, R as ParserOptions, U as TransformOptions$1, c as BindingHookResolveIdExtraArgs, d as BindingPluginContextResolveOptions, h as BindingTransformHookExtraArgs, k as BindingWatcherBundler, p as BindingRenderedChunk, t as BindingBuiltinPluginName, u as BindingMagicString, z as PreRenderedChunk } from "./binding-DktDDYoY.mjs";
2
+ import { A as ExternalMemoryStatus, N as JsxOptions, P as MinifyOptions$1, R as ParserOptions, U as TransformOptions$1, c as BindingHookResolveIdExtraArgs, d as BindingPluginContextResolveOptions, h as BindingTransformHookExtraArgs, k as BindingWatcherBundler, p as BindingRenderedChunk, t as BindingBuiltinPluginName, u as BindingMagicString, z as PreRenderedChunk } from "./binding-BaCZTfMx.mjs";
3
3
  import { TopLevelFilterExpression } from "@rolldown/pluginutils";
4
4
  import { Program } from "@oxc-project/types";
5
5
 
@@ -1631,6 +1631,8 @@ interface ChecksOptions {
1631
1631
  * Such modules can significantly slow down module resolution. Consider using
1632
1632
  * [`@rolldown/plugin-transform-imports`](https://github.com/rolldown/plugins/tree/main/packages/transform-imports)
1633
1633
  * to rewrite barrel imports at the source level so the barrel file is never loaded.
1634
+ *
1635
+ * See [Large barrel modules](https://rolldown.rs/in-depth/lazy-barrel-optimization#large-barrel-modules) for more details.
1634
1636
  * @default true
1635
1637
  * */
1636
1638
  largeBarrelModules?: boolean;
@@ -1,4 +1,4 @@
1
- import { t as require_binding } from "./binding-lLxFxuG-.mjs";
1
+ import { t as require_binding } from "./binding-CXquf8ay.mjs";
2
2
  //#region src/types/sourcemap.ts
3
3
  function bindingifySourcemap(map) {
4
4
  if (map == null) return;
@@ -1,4 +1,4 @@
1
- import { t as rolldown } from "./rolldown-B9_Kw98b.mjs";
1
+ import { t as rolldown } from "./rolldown-BjTk_MS0.mjs";
2
2
  import fs from "node:fs";
3
3
  import path from "node:path";
4
4
  import { readdir } from "node:fs/promises";
@@ -1,4 +1,4 @@
1
- import { n as __toESM, t as require_binding } from "./binding-lLxFxuG-.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-CXquf8ay.mjs";
2
2
  import { c as logPluginError, n as error } from "./logs-aMKUxRpj.mjs";
3
3
  //#region src/builtin-plugin/utils.ts
4
4
  var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
@@ -1,5 +1,5 @@
1
- import { n as __toESM, t as require_binding } from "./binding-lLxFxuG-.mjs";
2
- //#region ../../node_modules/.pnpm/oxc-parser@0.132.0/node_modules/oxc-parser/src-js/wrap.js
1
+ import { n as __toESM, t as require_binding } from "./binding-CXquf8ay.mjs";
2
+ //#region ../../node_modules/.pnpm/oxc-parser@0.133.0/node_modules/oxc-parser/src-js/wrap.js
3
3
  var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
4
4
  function wrap(result) {
5
5
  let program, module, comments, errors;
@@ -134,7 +134,7 @@ function requirePicocolors() {
134
134
  picocolors.exports.createColors = createColors;
135
135
  return picocolors.exports;
136
136
  }
137
- const e = /* @__PURE__ */ getDefaultExportFromCjs(/* @__PURE__ */ requirePicocolors());
137
+ const e = /*@__PURE__*/ getDefaultExportFromCjs(/* @__PURE__ */ requirePicocolors());
138
138
  function J({ onlyFirst: t = false } = {}) {
139
139
  const F = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");
140
140
  return new RegExp(F, t ? void 0 : "g");
@@ -1,5 +1,5 @@
1
- import { n as __toESM, t as require_binding } from "./binding-lLxFxuG-.mjs";
2
- import { a as bindingifySourcemap, n as normalizeBindingError } from "./error-B8po7KiL.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-CXquf8ay.mjs";
2
+ import { a as bindingifySourcemap, n as normalizeBindingError } from "./error-BuvQYXuZ.mjs";
3
3
  //#region src/utils/minify.ts
4
4
  var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
5
5
  /**
@@ -37,6 +37,17 @@ function minifySync(filename, sourceText, options) {
37
37
  //#endregion
38
38
  //#region src/utils/transform.ts
39
39
  const yarnPnp$1 = typeof process === "object" && !!process.versions?.pnp;
40
+ function normalizeBindingWarning(warning) {
41
+ if (warning.type === "JsError") return warning.field0;
42
+ return {
43
+ code: warning.field0.kind,
44
+ message: warning.field0.message,
45
+ id: warning.field0.id,
46
+ exporter: warning.field0.exporter,
47
+ loc: warning.field0.loc,
48
+ pos: warning.field0.pos
49
+ };
50
+ }
40
51
  /**
41
52
  * Transpile a JavaScript or TypeScript into a target ECMAScript version, asynchronously.
42
53
  *
@@ -60,7 +71,7 @@ async function transform(filename, sourceText, options, cache) {
60
71
  return {
61
72
  ...result,
62
73
  errors: result.errors.map(normalizeBindingError),
63
- warnings: result.warnings.map((w) => w.field0)
74
+ warnings: result.warnings.map(normalizeBindingWarning)
64
75
  };
65
76
  }
66
77
  /**
@@ -84,7 +95,7 @@ function transformSync(filename, sourceText, options, cache) {
84
95
  return {
85
96
  ...result,
86
97
  errors: result.errors.map(normalizeBindingError),
87
- warnings: result.warnings.map((w) => w.field0)
98
+ warnings: result.warnings.map(normalizeBindingWarning)
88
99
  };
89
100
  }
90
101
  //#endregion
@@ -1,4 +1,4 @@
1
- import { c as validateOption, t as RolldownBuild, u as PluginDriver } from "./rolldown-build-9MccaWPU.mjs";
1
+ import { c as validateOption, t as RolldownBuild, u as PluginDriver } from "./rolldown-build-CrPk_lZe.mjs";
2
2
  //#region src/api/rolldown/index.ts
3
3
  /**
4
4
  * The API compatible with Rollup's `rollup` function.
@@ -1,9 +1,9 @@
1
- import { n as __toESM, t as require_binding } from "./binding-lLxFxuG-.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-CXquf8ay.mjs";
2
2
  import { i as logInputHookInOutputPlugin, n as error } from "./logs-aMKUxRpj.mjs";
3
- import { n as BuiltinPlugin } from "./normalize-string-or-regex-DqWsYC5b.mjs";
4
- import { c as __decorate, d as PlainObjectLike, f as MinimalPluginContextImpl, h as LOG_LEVEL_DEBUG, i as transformModuleInfo, l as transformAssetSource, m as normalizeLog, o as transformToRollupOutput, p as normalizeHook, s as transformRenderedChunk, t as bindingifyInputOptions, u as lazyProp, v as LOG_LEVEL_WARN, x as VERSION, y as logLevelPriority } from "./bindingify-input-options-DmY7myA4.mjs";
3
+ import { n as BuiltinPlugin } from "./normalize-string-or-regex-CNPF6PU9.mjs";
4
+ import { c as __decorate, d as PlainObjectLike, f as MinimalPluginContextImpl, h as LOG_LEVEL_DEBUG, i as transformModuleInfo, l as transformAssetSource, m as normalizeLog, o as transformToRollupOutput, p as normalizeHook, s as transformRenderedChunk, t as bindingifyInputOptions, u as lazyProp, v as LOG_LEVEL_WARN, x as VERSION, y as logLevelPriority } from "./bindingify-input-options-ClrST5Xx.mjs";
5
5
  import { i as unimplemented } from "./misc-CoQm4NHO.mjs";
6
- import { i as unwrapBindingResult } from "./error-B8po7KiL.mjs";
6
+ import { i as unwrapBindingResult } from "./error-BuvQYXuZ.mjs";
7
7
  import { Worker } from "node:worker_threads";
8
8
  import path, { sep } from "node:path";
9
9
  import { formatWithOptions, styleText } from "node:util";
@@ -1444,7 +1444,8 @@ const TransformOptionsSchema = /* @__PURE__ */ object({
1444
1444
  helpers: /* @__PURE__ */ optional(/* @__PURE__ */ object({ mode: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("Runtime"), /* @__PURE__ */ literal("External")])) })),
1445
1445
  decorator: /* @__PURE__ */ optional(/* @__PURE__ */ object({
1446
1446
  legacy: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1447
- emitDecoratorMetadata: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1447
+ emitDecoratorMetadata: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1448
+ strictNullChecks: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1448
1449
  })),
1449
1450
  jsx: /* @__PURE__ */ optional(/* @__PURE__ */ union([
1450
1451
  /* @__PURE__ */ literal(false),
@@ -1545,7 +1546,16 @@ const MinifyOptionsSchema = /* @__PURE__ */ strictObject({
1545
1546
  })])),
1546
1547
  debug: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1547
1548
  })])),
1548
- codegen: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({ removeWhitespace: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()) })]))
1549
+ codegen: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
1550
+ removeWhitespace: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1551
+ legalComments: /* @__PURE__ */ optional(/* @__PURE__ */ union([
1552
+ /* @__PURE__ */ literal("none"),
1553
+ /* @__PURE__ */ literal("inline"),
1554
+ /* @__PURE__ */ literal("eof"),
1555
+ /* @__PURE__ */ literal("external"),
1556
+ /* @__PURE__ */ strictObject({ linked: /* @__PURE__ */ string() })
1557
+ ]))
1558
+ })]))
1549
1559
  });
1550
1560
  const ResolveOptionsSchema = /* @__PURE__ */ strictObject({
1551
1561
  alias: /* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ union([
@@ -2857,7 +2867,7 @@ function createConsola(options = {}) {
2857
2867
  defaults: { level },
2858
2868
  stdout: process.stdout,
2859
2869
  stderr: process.stderr,
2860
- prompt: (...args) => import("./prompt-DewH0PjV.mjs").then((m) => m.prompt(...args)),
2870
+ prompt: (...args) => import("./prompt-DYnaB1Nb.mjs").then((m) => m.prompt(...args)),
2861
2871
  reporters: options.reporters || [options.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()],
2862
2872
  ...options
2863
2873
  });
@@ -1,5 +1,5 @@
1
1
  import { a as RolldownLog } from "./logging-BSNejiLS.mjs";
2
- import { F as MinifyResult$1, H as SourceMap, L as ParseResult$1, P as MinifyOptions$1, R as ParserOptions$1, W as TsconfigCache$1, a as BindingEnhancedTransformOptions, o as BindingEnhancedTransformResult, v as BindingTsconfigResult } from "./binding-DktDDYoY.mjs";
2
+ import { F as MinifyResult$1, H as SourceMap, L as ParseResult$1, P as MinifyOptions$1, R as ParserOptions$1, W as TsconfigCache$1, a as BindingEnhancedTransformOptions, o as BindingEnhancedTransformResult, v as BindingTsconfigResult } from "./binding-BaCZTfMx.mjs";
3
3
 
4
4
  //#region src/utils/resolve-tsconfig.d.ts
5
5
  /**
@@ -1,9 +1,9 @@
1
- import { n as __toESM, t as require_binding } from "./binding-lLxFxuG-.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-CXquf8ay.mjs";
2
2
  import { o as logMultipleWatcherOption } from "./logs-aMKUxRpj.mjs";
3
- import { v as LOG_LEVEL_WARN } from "./bindingify-input-options-DmY7myA4.mjs";
3
+ import { v as LOG_LEVEL_WARN } from "./bindingify-input-options-ClrST5Xx.mjs";
4
4
  import { t as arraify } from "./misc-CoQm4NHO.mjs";
5
- import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-9MccaWPU.mjs";
6
- import { t as aggregateBindingErrorsIntoJsError } from "./error-B8po7KiL.mjs";
5
+ import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-CrPk_lZe.mjs";
6
+ import { t as aggregateBindingErrorsIntoJsError } from "./error-BuvQYXuZ.mjs";
7
7
  //#region ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
8
8
  /**
9
9
  * This is not the set of all possible signals.
@@ -1,9 +1,9 @@
1
- import { _ as BindingTsconfigRawOptions, g as BindingTsconfigCompilerOptions } from "./shared/binding-DktDDYoY.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-BpeSEA-X.mjs";
1
+ import { _ as BindingTsconfigRawOptions, g as BindingTsconfigCompilerOptions } from "./shared/binding-BaCZTfMx.mjs";
2
+ import { a as MinifyOptions, c as minifySync, d as parse, f as parseSync, i as transformSync, l as ParseResult, n as TransformResult, o as MinifyResult, p as TsconfigCache, r as transform, s as minify, t as TransformOptions, u as ParserOptions } from "./shared/transform-7xCUVrpL.mjs";
3
3
  import * as ESTree from "@oxc-project/types";
4
4
  import { Program } from "@oxc-project/types";
5
5
 
6
- //#region ../../node_modules/.pnpm/oxc-parser@0.132.0/node_modules/oxc-parser/src-js/generated/visit/visitor.d.ts
6
+ //#region ../../node_modules/.pnpm/oxc-parser@0.133.0/node_modules/oxc-parser/src-js/generated/visit/visitor.d.ts
7
7
  interface VisitorObject$1 {
8
8
  DebuggerStatement?: (node: ESTree.DebuggerStatement) => void;
9
9
  "DebuggerStatement:exit"?: (node: ESTree.DebuggerStatement) => void;
@@ -1,6 +1,6 @@
1
- import { n as parseSync, t as parse } from "./shared/parse-DRL-bdRR.mjs";
2
- import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-B5gzX9_3.mjs";
3
- //#region ../../node_modules/.pnpm/oxc-parser@0.132.0/node_modules/oxc-parser/src-js/generated/visit/walk.js
1
+ import { n as parseSync, t as parse } from "./shared/parse-Bg2pr2Q5.mjs";
2
+ import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-CcfxWrib.mjs";
3
+ //#region ../../node_modules/.pnpm/oxc-parser@0.133.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,7 +2010,7 @@ function walkTSUnionType(node, visitors) {
2010
2010
  exit !== null && exit(node);
2011
2011
  }
2012
2012
  //#endregion
2013
- //#region ../../node_modules/.pnpm/oxc-parser@0.132.0/node_modules/oxc-parser/src-js/generated/visit/type_ids.js
2013
+ //#region ../../node_modules/.pnpm/oxc-parser@0.133.0/node_modules/oxc-parser/src-js/generated/visit/type_ids.js
2014
2014
  /** Mapping from node type name to node type ID */
2015
2015
  const NODE_TYPE_IDS_MAP = new Map([
2016
2016
  ["DebuggerStatement", 0],
@@ -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.132.0/node_modules/oxc-parser/src-js/visit/visitor.js
2183
+ //#region ../../node_modules/.pnpm/oxc-parser@0.133.0/node_modules/oxc-parser/src-js/visit/visitor.js
2184
2184
  let compiledVisitor;
2185
2185
  function createCompiledVisitor() {
2186
2186
  compiledVisitor = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rolldown",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
5
5
  "keywords": [
6
6
  "bundler",
@@ -53,7 +53,7 @@
53
53
  "registry": "https://registry.npmjs.org/"
54
54
  },
55
55
  "dependencies": {
56
- "@oxc-project/types": "=0.132.0",
56
+ "@oxc-project/types": "=0.133.0",
57
57
  "@rolldown/pluginutils": "^1.0.0"
58
58
  },
59
59
  "devDependencies": {
@@ -66,7 +66,7 @@
66
66
  "consola": "^3.4.2",
67
67
  "execa": "^9.2.0",
68
68
  "glob": "^13.0.0",
69
- "oxc-parser": "=0.132.0",
69
+ "oxc-parser": "=0.133.0",
70
70
  "pathe": "^2.0.3",
71
71
  "remeda": "^2.34.1",
72
72
  "rolldown-plugin-dts": "^0.25.1",
@@ -75,7 +75,7 @@
75
75
  "source-map": "0.7.6",
76
76
  "typescript": "^6.0.0",
77
77
  "valibot": "1.4.0",
78
- "rolldown": "1.0.2"
78
+ "rolldown": "1.0.3"
79
79
  },
80
80
  "napi": {
81
81
  "binaryName": "rolldown-binding",
@@ -111,21 +111,21 @@
111
111
  "node": "^20.19.0 || >=22.12.0"
112
112
  },
113
113
  "optionalDependencies": {
114
- "@rolldown/binding-darwin-x64": "1.0.2",
115
- "@rolldown/binding-win32-x64-msvc": "1.0.2",
116
- "@rolldown/binding-linux-x64-gnu": "1.0.2",
117
- "@rolldown/binding-linux-x64-musl": "1.0.2",
118
- "@rolldown/binding-freebsd-x64": "1.0.2",
119
- "@rolldown/binding-linux-arm-gnueabihf": "1.0.2",
120
- "@rolldown/binding-linux-arm64-gnu": "1.0.2",
121
- "@rolldown/binding-darwin-arm64": "1.0.2",
122
- "@rolldown/binding-linux-arm64-musl": "1.0.2",
123
- "@rolldown/binding-openharmony-arm64": "1.0.2",
124
- "@rolldown/binding-win32-arm64-msvc": "1.0.2",
125
- "@rolldown/binding-android-arm64": "1.0.2",
126
- "@rolldown/binding-wasm32-wasi": "1.0.2",
127
- "@rolldown/binding-linux-s390x-gnu": "1.0.2",
128
- "@rolldown/binding-linux-ppc64-gnu": "1.0.2"
114
+ "@rolldown/binding-darwin-x64": "1.0.3",
115
+ "@rolldown/binding-win32-x64-msvc": "1.0.3",
116
+ "@rolldown/binding-linux-x64-gnu": "1.0.3",
117
+ "@rolldown/binding-linux-x64-musl": "1.0.3",
118
+ "@rolldown/binding-freebsd-x64": "1.0.3",
119
+ "@rolldown/binding-linux-arm-gnueabihf": "1.0.3",
120
+ "@rolldown/binding-linux-arm64-gnu": "1.0.3",
121
+ "@rolldown/binding-darwin-arm64": "1.0.3",
122
+ "@rolldown/binding-linux-arm64-musl": "1.0.3",
123
+ "@rolldown/binding-openharmony-arm64": "1.0.3",
124
+ "@rolldown/binding-win32-arm64-msvc": "1.0.3",
125
+ "@rolldown/binding-android-arm64": "1.0.3",
126
+ "@rolldown/binding-wasm32-wasi": "1.0.3",
127
+ "@rolldown/binding-linux-s390x-gnu": "1.0.3",
128
+ "@rolldown/binding-linux-ppc64-gnu": "1.0.3"
129
129
  },
130
130
  "scripts": {
131
131
  "# Scrips for binding #": "_",