rolldown 1.0.1 → 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 (40) hide show
  1. package/dist/cli.mjs +7 -7
  2. package/dist/config.d.mts +1 -1
  3. package/dist/config.mjs +3 -3
  4. package/dist/experimental-index.d.mts +21 -4
  5. package/dist/experimental-index.mjs +14 -9
  6. package/dist/filter-index.d.mts +1 -1
  7. package/dist/filter-index.mjs +1 -1
  8. package/dist/get-log-filter.d.mts +3 -3
  9. package/dist/index.d.mts +4 -4
  10. package/dist/index.mjs +5 -5
  11. package/dist/parallel-plugin-worker.mjs +2 -2
  12. package/dist/parallel-plugin.d.mts +1 -1
  13. package/dist/parse-ast-index.d.mts +1 -1
  14. package/dist/parse-ast-index.mjs +2 -2
  15. package/dist/plugins-index.d.mts +3 -3
  16. package/dist/plugins-index.mjs +2 -2
  17. package/dist/shared/{binding-zH1vcmbM.d.mts → binding-BaCZTfMx.d.mts} +32 -3
  18. package/dist/shared/{binding-C9S351wt.mjs → binding-CXquf8ay.mjs} +27 -26
  19. package/dist/shared/{bindingify-input-options-BnfFBV6b.mjs → bindingify-input-options-ClrST5Xx.mjs} +13 -13
  20. package/dist/shared/{constructors-Ciqn_yS7.mjs → constructors-BiPdtLBB.mjs} +1 -4
  21. package/dist/shared/{constructors-DAnSz-_I.d.mts → constructors-CbNaT434.d.mts} +2 -2
  22. package/dist/shared/{define-config-CeKzMIcs.d.mts → define-config-3BX_X2Am.d.mts} +18 -4
  23. package/dist/shared/{error-CkdMJ9ps.mjs → error-BuvQYXuZ.mjs} +1 -1
  24. package/dist/shared/{get-log-filter-semyr3Lj.d.mts → get-log-filter-BpNVNJ5-.d.mts} +1 -1
  25. package/dist/shared/{load-config-CYoi2Wo1.mjs → load-config-K94jokAZ.mjs} +1 -1
  26. package/dist/shared/{normalize-string-or-regex-C-WttzRA.mjs → normalize-string-or-regex-CNPF6PU9.mjs} +2 -2
  27. package/dist/shared/{parse-Ch28GO2f.mjs → parse-Bg2pr2Q5.mjs} +2 -2
  28. package/dist/shared/{prompt-U5ajztzG.mjs → prompt-DYnaB1Nb.mjs} +1 -1
  29. package/dist/shared/{resolve-tsconfig-DkVV0OYf.mjs → resolve-tsconfig-CcfxWrib.mjs} +15 -4
  30. package/dist/shared/{rolldown-CWsV1rrO.mjs → rolldown-BjTk_MS0.mjs} +1 -1
  31. package/dist/shared/{rolldown-build-BVD3dIdE.mjs → rolldown-build-CrPk_lZe.mjs} +24 -53
  32. package/dist/shared/{transform-DgZ3paSD.d.mts → transform-7xCUVrpL.d.mts} +2 -2
  33. package/dist/shared/{watch-RBs0UNYA.mjs → watch-BZza93fH.mjs} +6 -6
  34. package/dist/utils-index.d.mts +3 -3
  35. package/dist/utils-index.mjs +5 -5
  36. package/package.json +22 -22
  37. /package/dist/shared/{define-config-DJOr6Iwt.mjs → define-config-Demdg3_4.mjs} +0 -0
  38. /package/dist/shared/{logging-C6h4g8dA.d.mts → logging-BSNejiLS.d.mts} +0 -0
  39. /package/dist/shared/{logs-D80CXhvg.mjs → logs-aMKUxRpj.mjs} +0 -0
  40. /package/dist/shared/{misc-DJYbNKZX.mjs → misc-CoQm4NHO.mjs} +0 -0
package/dist/cli.mjs CHANGED
@@ -1,9 +1,9 @@
1
- import { n as onExit, t as watch } from "./shared/watch-RBs0UNYA.mjs";
2
- import { C as version, S as description } from "./shared/bindingify-input-options-BnfFBV6b.mjs";
3
- import { t as arraify } from "./shared/misc-DJYbNKZX.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-BVD3dIdE.mjs";
5
- import { t as rolldown } from "./shared/rolldown-CWsV1rrO.mjs";
6
- import { t as loadConfig } from "./shared/load-config-CYoi2Wo1.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
+ 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-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.130.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-CeKzMIcs.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-BnfFBV6b.mjs";
2
- import { t as defineConfig } from "./shared/define-config-DJOr6Iwt.mjs";
3
- import { t as loadConfig } from "./shared/load-config-CYoi2Wo1.mjs";
1
+ import { x as VERSION } from "./shared/bindingify-input-options-ClrST5Xx.mjs";
2
+ import { t as defineConfig } from "./shared/define-config-Demdg3_4.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-zH1vcmbM.mjs";
2
- import { Jt as RolldownOutput, P as BuiltinPlugin, Xt as freeExternalMemory, Z as defineParallelPlugin, ct as NormalizedOutputOptions, l as InputOptions, zt as OutputOptions } from "./shared/define-config-CeKzMIcs.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-DgZ3paSD.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-DAnSz-_I.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 | {
@@ -48,6 +48,22 @@ interface DevWatchOptions {
48
48
  * @default undefined (auto-select)
49
49
  */
50
50
  debounceTickRate?: number;
51
+ /**
52
+ * Filter to limit which discovered files are registered with the file watcher.
53
+ *
54
+ * Strings are treated as glob patterns.
55
+ *
56
+ * @default []
57
+ */
58
+ include?: StringOrRegExp | StringOrRegExp[];
59
+ /**
60
+ * Filter to prevent discovered files from being registered with the file watcher.
61
+ *
62
+ * Strings are treated as glob patterns.
63
+ *
64
+ * @default []
65
+ */
66
+ exclude?: StringOrRegExp | StringOrRegExp[];
51
67
  }
52
68
  interface DevOptions {
53
69
  onHmrUpdates?: DevOnHmrUpdates;
@@ -72,6 +88,7 @@ declare class DevEngine {
72
88
  ensureCurrentBuildFinish(): Promise<void>;
73
89
  getBundleState(): Promise<BindingBundleState>;
74
90
  ensureLatestBuildOutput(): Promise<void>;
91
+ triggerFullBuild(): void;
75
92
  invalidate(file: string, firstInvalidatedBy?: string): Promise<BindingClientHmrUpdate[]>;
76
93
  registerModules(clientId: string, modules: string[]): Promise<void>;
77
94
  removeClient(clientId: string): Promise<void>;
@@ -1,11 +1,11 @@
1
- import { n as __toESM, t as require_binding } from "./shared/binding-C9S351wt.mjs";
2
- import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-C-WttzRA.mjs";
3
- import { o as transformToRollupOutput } from "./shared/bindingify-input-options-BnfFBV6b.mjs";
4
- import { c as validateOption, n as createBundlerOptions, t as RolldownBuild, u as PluginDriver } from "./shared/rolldown-build-BVD3dIdE.mjs";
5
- import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-CkdMJ9ps.mjs";
6
- import { n as parseSync$1, t as parse$1 } from "./shared/parse-Ch28GO2f.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-Ciqn_yS7.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-DkVV0OYf.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);
@@ -47,7 +47,9 @@ var DevEngine = class DevEngine {
47
47
  useDebounce: devOptions.watch.useDebounce,
48
48
  debounceDuration: devOptions.watch.debounceDuration,
49
49
  compareContentsForPolling: devOptions.watch.compareContentsForPolling,
50
- debounceTickRate: devOptions.watch.debounceTickRate
50
+ debounceTickRate: devOptions.watch.debounceTickRate,
51
+ include: normalizedStringOrRegex(devOptions.watch.include),
52
+ exclude: normalizedStringOrRegex(devOptions.watch.exclude)
51
53
  }
52
54
  };
53
55
  return new DevEngine(new import_binding.BindingDevEngine(options.bundlerOptions, bindingDevOptions));
@@ -72,6 +74,9 @@ var DevEngine = class DevEngine {
72
74
  async ensureLatestBuildOutput() {
73
75
  await this.#inner.ensureLatestBuildOutput();
74
76
  }
77
+ triggerFullBuild() {
78
+ this.#inner.triggerFullBuild();
79
+ }
75
80
  async invalidate(file, firstInvalidatedBy) {
76
81
  return this.#inner.invalidate(file, firstInvalidatedBy);
77
82
  }
@@ -1,4 +1,4 @@
1
- import { N as withFilter } from "./shared/define-config-CeKzMIcs.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;
@@ -1,4 +1,4 @@
1
- import { n as isPromiseLike, t as arraify } from "./shared/misc-DJYbNKZX.mjs";
1
+ import { n as isPromiseLike, t as arraify } from "./shared/misc-CoQm4NHO.mjs";
2
2
  //#region ../../node_modules/.pnpm/@rolldown+pluginutils@1.0.0/node_modules/@rolldown/pluginutils/dist/utils.js
3
3
  const postfixRE = /[?#].*$/;
4
4
  function cleanUrl(url) {
@@ -1,3 +1,3 @@
1
- import { a as RolldownLog } from "./shared/logging-C6h4g8dA.mjs";
2
- import { n as getLogFilter, t as GetLogFilter } from "./shared/get-log-filter-semyr3Lj.mjs";
3
- export { GetLogFilter, RolldownLog, RolldownLog as RollupLog, getLogFilter as default };
1
+ import { a as RolldownLog } from "./shared/logging-BSNejiLS.mjs";
2
+ import { n as getLogFilter, t as GetLogFilter } from "./shared/get-log-filter-BpNVNJ5-.mjs";
3
+ export { GetLogFilter, type RolldownLog, type RolldownLog as RollupLog, getLogFilter as default };
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as RolldownLog, i as RolldownError, n as LogLevelOption, o as RolldownLogWithString, r as LogOrStringHandler, t as LogLevel } from "./shared/logging-C6h4g8dA.mjs";
2
- import { z as PreRenderedChunk } from "./shared/binding-zH1vcmbM.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-CeKzMIcs.mjs";
4
- export { AddonFunction, AdvancedChunksGroup, AdvancedChunksOptions, AsyncPluginHooks, BufferEncoding, BuildOptions, BuiltinModuleTag, BundleError, ChecksOptions, ChunkFileNamesFunction, ChunkOptimizationOptions, ChunkingContext, CodeSplittingGroup, CodeSplittingNameFunction, CodeSplittingOptions, CommentsOptions, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedChunk, EmittedFile, EmittedPrebuiltChunk, ExistingRawSourceMap, ExternalOption, ExternalOptionFunction, 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, PluginContextResolveOptions, PreRenderedAsset, PreRenderedChunk, RUNTIME_MODULE_ID, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownDirectoryEntry, RolldownError, RolldownError as RollupError, RolldownFileStats, RolldownFsModule, RolldownLog, RolldownLog as RollupLog, RolldownLogWithString, RolldownLogWithString as RollupLogWithString, RolldownMagicString, RolldownOptions, RolldownOptionsFunction, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RolldownWatcherWatcherEventMap, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformOptions, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherFileWatcherOptions, WatcherOptions, build, defineConfig, rolldown, watch };
1
+ import { a as RolldownLog, i as RolldownError, n as LogLevelOption, o as RolldownLogWithString, r as LogOrStringHandler, t as LogLevel } from "./shared/logging-BSNejiLS.mjs";
2
+ import { z as PreRenderedChunk } from "./shared/binding-BaCZTfMx.mjs";
3
+ import { $ as PluginContextMeta, A as RolldownPluginOption, At as CodeSplittingGroup, B as OutputBundle, Bt as PreRenderedAsset, C as ParallelPluginHooks, Ct as build, D as ResolveIdResult, Dt as BuiltinModuleTag, E as ResolveIdExtraOptions, Et as AdvancedChunksOptions, F as RUNTIME_MODULE_ID, Ft as GeneratedCodePreset, G as EmittedFile, Gt as OutputChunk, H as TransformPluginContext, Ht as PartialNull, I as VERSION, It as GlobalsFunction, J as PluginContext, Jt as RolldownOutput, K as EmittedPrebuiltChunk, Kt as RenderedChunk, L as BundleError, Lt as MinifyOptions, M as TransformResult, Mt as CodeSplittingOptions, Nt as CommentsOptions, O as ResolvedId, Ot as ChunkFileNamesFunction, Pt as GeneratedCodeOptions, Q as MinimalPluginContext, Qt as SourcemapIgnoreListOption, R as ExistingRawSourceMap, Rt as ModuleFormat, S as ObjectHook, St as BuildOptions, T as Plugin, Tt as AdvancedChunksGroup, U as EmittedAsset, V as TreeshakingOptions, W as EmittedChunk, Wt as OutputAsset, X as DefineParallelPluginResult, Y as PluginContextResolveOptions, Yt as SourceMap, Zt as ModuleInfo, _ as HookFilterExtension, _t as RolldownWatcherEvent, a as ChunkOptimizationOptions, at as RolldownFileStats, b as ModuleOptions, bt as rolldown, c as InputOption, ct as NormalizedOutputOptions, d as OptimizationOptions, dt as ChecksOptions, et as GeneralHookFilter, f as WatcherFileWatcherOptions, ft as LoggingFunction, g as FunctionPluginHooks, gt as RolldownWatcher, h as CustomPluginOptions, ht as watch, i as RolldownOptions, it as RolldownDirectoryEntry, j as SourceDescription, jt as CodeSplittingNameFunction, k as RolldownPlugin, kt as ChunkingContext, l as InputOptions, lt as NormalizedInputOptions, m as AsyncPluginHooks, mt as RolldownMagicString, n as RolldownOptionsFunction, nt as ModuleTypeFilter, o as ExternalOption, ot as RolldownFsModule, p as WatcherOptions, pt as WarningHandlerWithDefault, q as GetModuleInfo, qt as RenderedModule, r as defineConfig, rt as BufferEncoding, s as ExternalOptionFunction, st as InternalModuleFormat, t as ConfigExport, tt as HookFilter, u as ModuleTypes, ut as TransformOptions, v as ImportKind, vt as RolldownWatcherWatcherEventMap, w as PartialResolvedId, wt as AddonFunction, x as ModuleType, xt as RolldownBuild, y as LoadResult, yt as WatchOptions, z as SourceMapInput, zt as OutputOptions } from "./shared/define-config-3BX_X2Am.mjs";
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,8 +1,8 @@
1
- import { n as __toESM, t as require_binding } from "./shared/binding-C9S351wt.mjs";
2
- import { n as onExit, t as watch } from "./shared/watch-RBs0UNYA.mjs";
3
- import { a as RolldownMagicString, b as RUNTIME_MODULE_ID, x as VERSION } from "./shared/bindingify-input-options-BnfFBV6b.mjs";
4
- import { t as rolldown } from "./shared/rolldown-CWsV1rrO.mjs";
5
- import { t as defineConfig } from "./shared/define-config-DJOr6Iwt.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
+ 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
8
8
  var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
@@ -1,5 +1,5 @@
1
- import { n as __toESM, t as require_binding } from "./shared/binding-C9S351wt.mjs";
2
- import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-BnfFBV6b.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-CeKzMIcs.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-zH1vcmbM.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
- import { l as locate, n as error, s as logParseError, t as augmentCodeLocation, u as getCodeFrame } from "./shared/logs-D80CXhvg.mjs";
2
- import { n as parseSync, t as parse } from "./shared/parse-Ch28GO2f.mjs";
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-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-zH1vcmbM.mjs";
2
- import { P as BuiltinPlugin } from "./shared/define-config-CeKzMIcs.mjs";
3
- import { t as esmExternalRequirePlugin } from "./shared/constructors-DAnSz-_I.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-C-WttzRA.mjs";
2
- import { t as esmExternalRequirePlugin } from "./shared/constructors-Ciqn_yS7.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.
@@ -1,5 +1,3 @@
1
- import * as _$_oxc_project_types0 from "@oxc-project/types";
2
-
3
1
  //#region src/binding.d.cts
4
2
  type MaybePromise<T> = T | Promise<T>;
5
3
  type VoidNullable<T = void> = T | null | undefined | void;
@@ -11,6 +9,20 @@ interface CodegenOptions {
11
9
  * @default true
12
10
  */
13
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
+ };
14
26
  }
15
27
  interface CompressOptions {
16
28
  /**
@@ -136,6 +148,11 @@ interface MinifyResult {
136
148
  code: string;
137
149
  map?: SourceMap;
138
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>;
139
156
  }
140
157
  interface TreeShakeOptions {
141
158
  /**
@@ -208,7 +225,7 @@ interface OxcError {
208
225
  }
209
226
  type Severity = 'Error' | 'Warning' | 'Advice';
210
227
  declare class ParseResult {
211
- get program(): _$_oxc_project_types0.Program;
228
+ get program(): import("@oxc-project/types").Program;
212
229
  get module(): EcmaScriptModule;
213
230
  get comments(): Array<Comment>;
214
231
  get errors(): Array<OxcError>;
@@ -775,6 +792,18 @@ interface DecoratorOptions {
775
792
  * @default false
776
793
  */
777
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;
778
807
  }
779
808
  type HelperMode =
780
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.1" && 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.1 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.1" && 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.1 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.1" && 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.1 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.1" && 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.1 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.1" && 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.1 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.1" && 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.1 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.1" && 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.1 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.1" && 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.1 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.1" && 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.1 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.1" && 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.1 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.1" && 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.1 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.1" && 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.1 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.1" && 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.1 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.1" && 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.1 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.1" && 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.1 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.1" && 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.1 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.1" && 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.1 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.1" && 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.1 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.1" && 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.1 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.1" && 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.1 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.1" && 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.1 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.1" && 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.1 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.1" && 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.1 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.1" && 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.1 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.1" && 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.1 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.1" && 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.1 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-C9S351wt.mjs";
2
- import { a as logInvalidLogPosition, c as logPluginError, n as error, r as logCycleLoading, t as augmentCodeLocation } from "./logs-D80CXhvg.mjs";
3
- import { i as bindingifyManifestPlugin, n as BuiltinPlugin, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-C-WttzRA.mjs";
4
- import { a as unreachable, o as unsupported, r as noop, t as arraify } from "./misc-DJYbNKZX.mjs";
5
- import { a as bindingifySourcemap, i as unwrapBindingResult, t as aggregateBindingErrorsIntoJsError } from "./error-CkdMJ9ps.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-CXquf8ay.mjs";
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-CNPF6PU9.mjs";
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-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.1";
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.130.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,
@@ -674,7 +674,7 @@ function normalizeTransformHookSourcemap(id, originalCode, rawMap) {
674
674
  return map;
675
675
  }
676
676
  //#endregion
677
- //#region ../../node_modules/.pnpm/remeda@2.34.0/node_modules/remeda/dist/lazyDataLastImpl-DtF3cihj.js
677
+ //#region ../../node_modules/.pnpm/remeda@2.34.1/node_modules/remeda/dist/lazyDataLastImpl-DtF3cihj.js
678
678
  function e(e, t, n) {
679
679
  let r = (n) => e(n, ...t);
680
680
  return n === void 0 ? r : Object.assign(r, {
@@ -683,7 +683,7 @@ function e(e, t, n) {
683
683
  });
684
684
  }
685
685
  //#endregion
686
- //#region ../../node_modules/.pnpm/remeda@2.34.0/node_modules/remeda/dist/purry.js
686
+ //#region ../../node_modules/.pnpm/remeda@2.34.1/node_modules/remeda/dist/purry.js
687
687
  function t$1(t, n, r) {
688
688
  let i = t.length - n.length;
689
689
  if (i === 0) return t(...n);
@@ -691,7 +691,7 @@ function t$1(t, n, r) {
691
691
  throw Error(`Wrong number of arguments`);
692
692
  }
693
693
  //#endregion
694
- //#region ../../node_modules/.pnpm/remeda@2.34.0/node_modules/remeda/dist/partition.js
694
+ //#region ../../node_modules/.pnpm/remeda@2.34.1/node_modules/remeda/dist/partition.js
695
695
  function t(...t) {
696
696
  return t$1(n, t);
697
697
  }
@@ -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
  };
@@ -2010,7 +2010,7 @@ function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, normali
2010
2010
  platform: inputOptions.platform,
2011
2011
  shimMissingExports: inputOptions.shimMissingExports,
2012
2012
  logLevel: bindingifyLogLevel(logLevel),
2013
- onLog: async (level, log) => onLog(level, log),
2013
+ onLog,
2014
2014
  treeshake: bindingifyTreeshakeOptions(inputOptions.treeshake),
2015
2015
  moduleTypes: inputOptions.moduleTypes,
2016
2016
  define: normalizedTransform.define,
@@ -1,4 +1,4 @@
1
- import { a as makeBuiltinPluginCallable, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-C-WttzRA.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);
@@ -31,9 +31,6 @@ function viteBuildImportAnalysisPlugin(config) {
31
31
  function viteResolvePlugin(config) {
32
32
  return makeBuiltinPluginCallable(new BuiltinPlugin("builtin:vite-resolve", {
33
33
  ...config,
34
- async resolveSubpathImports(id, importer, isRequire, scan) {
35
- return config.resolveSubpathImports(id, importer, isRequire, scan);
36
- },
37
34
  yarnPnp: typeof process === "object" && !!process.versions?.pnp
38
35
  }));
39
36
  }
@@ -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-zH1vcmbM.mjs";
2
- import { P as BuiltinPlugin, Ut as StringOrRegExp } from "./define-config-CeKzMIcs.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
- import { a as RolldownLog, i as RolldownError, n as LogLevelOption, o as RolldownLogWithString, r as LogOrStringHandler, t as LogLevel } from "./logging-C6h4g8dA.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-zH1vcmbM.mjs";
1
+ import { a as RolldownLog, i as RolldownError, n as LogLevelOption, o as RolldownLogWithString, r as LogOrStringHandler, t as LogLevel } from "./logging-BSNejiLS.mjs";
2
+ import { A as ExternalMemoryStatus, N as JsxOptions, P as MinifyOptions$1, R as ParserOptions, U as TransformOptions$1, c as BindingHookResolveIdExtraArgs, d as BindingPluginContextResolveOptions, h as BindingTransformHookExtraArgs, k as BindingWatcherBundler, p as BindingRenderedChunk, t as BindingBuiltinPluginName, u as BindingMagicString, z as PreRenderedChunk } from "./binding-BaCZTfMx.mjs";
3
3
  import { TopLevelFilterExpression } from "@rolldown/pluginutils";
4
4
  import { Program } from "@oxc-project/types";
5
5
 
@@ -861,8 +861,6 @@ interface OutputOptions {
861
861
  *
862
862
  * When both `legalComments` and `comments.legal` are set, `comments.legal` takes priority.
863
863
  *
864
- *
865
- *
866
864
  * @default true
867
865
  */
868
866
  comments?: boolean | CommentsOptions;
@@ -1511,6 +1509,15 @@ interface ChecksOptions {
1511
1509
  * */
1512
1510
  missingNameOptionForIifeExport?: boolean;
1513
1511
  /**
1512
+ * Whether to emit warnings when a `#__PURE__` / `@__PURE__` annotation has no effect due to its position.
1513
+ *
1514
+ * Annotations placed where they cannot annotate a call expression (e.g. before a non-call expression,
1515
+ * before a statement declaration, or between an identifier and `=` in a variable declarator) are
1516
+ * ignored by the parser. Matches Rollup's `INVALID_ANNOTATION` log code.
1517
+ * @default true
1518
+ * */
1519
+ invalidAnnotation?: boolean;
1520
+ /**
1514
1521
  * Whether to emit warnings when the way to export values is ambiguous.
1515
1522
  *
1516
1523
  * See [`output.exports`](https://rolldown.rs/reference/OutputOptions.exports).
@@ -1624,6 +1631,8 @@ interface ChecksOptions {
1624
1631
  * Such modules can significantly slow down module resolution. Consider using
1625
1632
  * [`@rolldown/plugin-transform-imports`](https://github.com/rolldown/plugins/tree/main/packages/transform-imports)
1626
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.
1627
1636
  * @default true
1628
1637
  * */
1629
1638
  largeBarrelModules?: boolean;
@@ -3789,6 +3798,11 @@ interface InputOptions {
3789
3798
  makeAbsoluteExternalsRelative?: MakeAbsoluteExternalsRelative;
3790
3799
  /**
3791
3800
  * Devtools integration options.
3801
+ *
3802
+ * When enabled, Rolldown writes JSON-lines devtools output under
3803
+ * `node_modules/.rolldown/{session_id}/`. Consumers can parse the output with
3804
+ * `@rolldown/debug` after `await bundle.close()` resolves.
3805
+ *
3792
3806
  * @experimental
3793
3807
  */
3794
3808
  devtools?: {
@@ -1,4 +1,4 @@
1
- import { t as require_binding } from "./binding-C9S351wt.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 { a as RolldownLog } from "./logging-C6h4g8dA.mjs";
1
+ import { a as RolldownLog } from "./logging-BSNejiLS.mjs";
2
2
 
3
3
  //#region src/get-log-filter.d.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { t as rolldown } from "./rolldown-CWsV1rrO.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,5 +1,5 @@
1
- import { n as __toESM, t as require_binding } from "./binding-C9S351wt.mjs";
2
- import { c as logPluginError, n as error } from "./logs-D80CXhvg.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-CXquf8ay.mjs";
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);
5
5
  var BuiltinPlugin = class {
@@ -1,5 +1,5 @@
1
- import { n as __toESM, t as require_binding } from "./binding-C9S351wt.mjs";
2
- //#region ../../node_modules/.pnpm/oxc-parser@0.130.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-C9S351wt.mjs";
2
- import { a as bindingifySourcemap, n as normalizeBindingError } from "./error-CkdMJ9ps.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-BVD3dIdE.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-C9S351wt.mjs";
2
- import { i as logInputHookInOutputPlugin, n as error } from "./logs-D80CXhvg.mjs";
3
- import { n as BuiltinPlugin } from "./normalize-string-or-regex-C-WttzRA.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-BnfFBV6b.mjs";
5
- import { i as unimplemented } from "./misc-DJYbNKZX.mjs";
6
- import { i as unwrapBindingResult } from "./error-CkdMJ9ps.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-CXquf8ay.mjs";
2
+ import { i as logInputHookInOutputPlugin, n as error } from "./logs-aMKUxRpj.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
+ import { i as unimplemented } from "./misc-CoQm4NHO.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";
@@ -211,9 +211,6 @@ function getSortedPlugins(hookName, plugins) {
211
211
  ...post
212
212
  ];
213
213
  }
214
- //#endregion
215
- //#region ../../node_modules/.pnpm/valibot@1.4.0_typescript@6.0.3/node_modules/valibot/dist/index.mjs
216
- let store$4;
217
214
  const DEFAULT_CONFIG = {
218
215
  lang: void 0,
219
216
  message: void 0,
@@ -231,49 +228,12 @@ const DEFAULT_CONFIG = {
231
228
  function getGlobalConfig(config$1) {
232
229
  if (!config$1 && true) return DEFAULT_CONFIG;
233
230
  return {
234
- lang: config$1?.lang ?? store$4?.lang,
231
+ lang: config$1?.lang ?? void 0,
235
232
  message: config$1?.message,
236
- abortEarly: config$1?.abortEarly ?? store$4?.abortEarly,
237
- abortPipeEarly: config$1?.abortPipeEarly ?? store$4?.abortPipeEarly
233
+ abortEarly: config$1?.abortEarly ?? void 0,
234
+ abortPipeEarly: config$1?.abortPipeEarly ?? void 0
238
235
  };
239
236
  }
240
- let store$3;
241
- /**
242
- * Returns a global error message.
243
- *
244
- * @param lang The language of the message.
245
- *
246
- * @returns The error message.
247
- */
248
- /* @__NO_SIDE_EFFECTS__ */
249
- function getGlobalMessage(lang) {
250
- return store$3?.get(lang);
251
- }
252
- let store$2;
253
- /**
254
- * Returns a schema error message.
255
- *
256
- * @param lang The language of the message.
257
- *
258
- * @returns The error message.
259
- */
260
- /* @__NO_SIDE_EFFECTS__ */
261
- function getSchemaMessage(lang) {
262
- return store$2?.get(lang);
263
- }
264
- let store$1;
265
- /**
266
- * Returns a specific error message.
267
- *
268
- * @param reference The identifier reference.
269
- * @param lang The language of the message.
270
- *
271
- * @returns The error message.
272
- */
273
- /* @__NO_SIDE_EFFECTS__ */
274
- function getSpecificMessage(reference, lang) {
275
- return store$1?.get(reference)?.get(lang);
276
- }
277
237
  /**
278
238
  * Stringifies an unknown input to a literal or type string.
279
239
  *
@@ -321,7 +281,7 @@ function _addIssue(context, label, dataset, config$1, other) {
321
281
  abortPipeEarly: config$1.abortPipeEarly
322
282
  };
323
283
  const isSchema = context.kind === "schema";
324
- const message$1 = other?.message ?? context.message ?? /* @__PURE__ */ getSpecificMessage(context.reference, issue.lang) ?? (isSchema ? /* @__PURE__ */ getSchemaMessage(issue.lang) : null) ?? config$1.message ?? /* @__PURE__ */ getGlobalMessage(issue.lang);
284
+ const message$1 = other?.message ?? context.message ?? (context.reference, issue.lang, void 0) ?? (isSchema ? (issue.lang, void 0) : null) ?? config$1.message ?? (issue.lang, void 0);
325
285
  if (message$1 !== void 0) issue.message = typeof message$1 === "function" ? message$1(issue) : message$1;
326
286
  if (isSchema) dataset.typed = false;
327
287
  if (dataset.issues) dataset.issues.push(issue);
@@ -1484,7 +1444,8 @@ const TransformOptionsSchema = /* @__PURE__ */ object({
1484
1444
  helpers: /* @__PURE__ */ optional(/* @__PURE__ */ object({ mode: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("Runtime"), /* @__PURE__ */ literal("External")])) })),
1485
1445
  decorator: /* @__PURE__ */ optional(/* @__PURE__ */ object({
1486
1446
  legacy: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1487
- emitDecoratorMetadata: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1447
+ emitDecoratorMetadata: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1448
+ strictNullChecks: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1488
1449
  })),
1489
1450
  jsx: /* @__PURE__ */ optional(/* @__PURE__ */ union([
1490
1451
  /* @__PURE__ */ literal(false),
@@ -1535,6 +1496,7 @@ const ChecksOptionsSchema = /* @__PURE__ */ strictObject({
1535
1496
  eval: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when detecting uses of direct `eval`s")),
1536
1497
  missingGlobalName: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when the `output.globals` option is missing when needed")),
1537
1498
  missingNameOptionForIifeExport: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when the `output.name` option is missing when needed")),
1499
+ invalidAnnotation: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a `#__PURE__` / `@__PURE__` annotation has no effect due to its position")),
1538
1500
  mixedExports: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when the way to export values is ambiguous")),
1539
1501
  unresolvedEntry: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when an entrypoint cannot be resolved")),
1540
1502
  unresolvedImport: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when an import cannot be resolved")),
@@ -1584,7 +1546,16 @@ const MinifyOptionsSchema = /* @__PURE__ */ strictObject({
1584
1546
  })])),
1585
1547
  debug: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1586
1548
  })])),
1587
- 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
+ })]))
1588
1559
  });
1589
1560
  const ResolveOptionsSchema = /* @__PURE__ */ strictObject({
1590
1561
  alias: /* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ union([
@@ -2896,7 +2867,7 @@ function createConsola(options = {}) {
2896
2867
  defaults: { level },
2897
2868
  stdout: process.stdout,
2898
2869
  stderr: process.stderr,
2899
- prompt: (...args) => import("./prompt-U5ajztzG.mjs").then((m) => m.prompt(...args)),
2870
+ prompt: (...args) => import("./prompt-DYnaB1Nb.mjs").then((m) => m.prompt(...args)),
2900
2871
  reporters: options.reporters || [options.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()],
2901
2872
  ...options
2902
2873
  });
@@ -1,5 +1,5 @@
1
- import { a as RolldownLog } from "./logging-C6h4g8dA.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-zH1vcmbM.mjs";
1
+ import { a as RolldownLog } from "./logging-BSNejiLS.mjs";
2
+ import { F as MinifyResult$1, H as SourceMap, L as ParseResult$1, P as MinifyOptions$1, R as ParserOptions$1, W as TsconfigCache$1, a as BindingEnhancedTransformOptions, o as BindingEnhancedTransformResult, v as BindingTsconfigResult } from "./binding-BaCZTfMx.mjs";
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-C9S351wt.mjs";
2
- import { o as logMultipleWatcherOption } from "./logs-D80CXhvg.mjs";
3
- import { v as LOG_LEVEL_WARN } from "./bindingify-input-options-BnfFBV6b.mjs";
4
- import { t as arraify } from "./misc-DJYbNKZX.mjs";
5
- import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-BVD3dIdE.mjs";
6
- import { t as aggregateBindingErrorsIntoJsError } from "./error-CkdMJ9ps.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-CXquf8ay.mjs";
2
+ import { o as logMultipleWatcherOption } from "./logs-aMKUxRpj.mjs";
3
+ import { v as LOG_LEVEL_WARN } from "./bindingify-input-options-ClrST5Xx.mjs";
4
+ import { t as arraify } from "./misc-CoQm4NHO.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-zH1vcmbM.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-DgZ3paSD.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.130.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-Ch28GO2f.mjs";
2
- import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-DkVV0OYf.mjs";
3
- //#region ../../node_modules/.pnpm/oxc-parser@0.130.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.130.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.130.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.1",
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.130.0",
56
+ "@oxc-project/types": "=0.133.0",
57
57
  "@rolldown/pluginutils": "^1.0.0"
58
58
  },
59
59
  "devDependencies": {
@@ -66,16 +66,16 @@
66
66
  "consola": "^3.4.2",
67
67
  "execa": "^9.2.0",
68
68
  "glob": "^13.0.0",
69
- "oxc-parser": "=0.130.0",
69
+ "oxc-parser": "=0.133.0",
70
70
  "pathe": "^2.0.3",
71
- "remeda": "^2.10.0",
72
- "rolldown-plugin-dts": "^0.25.0",
73
- "rollup": "^4.18.0",
71
+ "remeda": "^2.34.1",
72
+ "rolldown-plugin-dts": "^0.25.1",
73
+ "rollup": "^4.60.4",
74
74
  "signal-exit": "4.1.0",
75
75
  "source-map": "0.7.6",
76
76
  "typescript": "^6.0.0",
77
77
  "valibot": "1.4.0",
78
- "rolldown": "1.0.1"
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.1",
115
- "@rolldown/binding-win32-x64-msvc": "1.0.1",
116
- "@rolldown/binding-linux-x64-gnu": "1.0.1",
117
- "@rolldown/binding-linux-x64-musl": "1.0.1",
118
- "@rolldown/binding-freebsd-x64": "1.0.1",
119
- "@rolldown/binding-linux-arm-gnueabihf": "1.0.1",
120
- "@rolldown/binding-linux-arm64-gnu": "1.0.1",
121
- "@rolldown/binding-darwin-arm64": "1.0.1",
122
- "@rolldown/binding-linux-arm64-musl": "1.0.1",
123
- "@rolldown/binding-openharmony-arm64": "1.0.1",
124
- "@rolldown/binding-win32-arm64-msvc": "1.0.1",
125
- "@rolldown/binding-android-arm64": "1.0.1",
126
- "@rolldown/binding-wasm32-wasi": "1.0.1",
127
- "@rolldown/binding-linux-s390x-gnu": "1.0.1",
128
- "@rolldown/binding-linux-ppc64-gnu": "1.0.1"
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 #": "_",