@rollipop/rolldown 1.0.0-rc.4 → 1.0.0-rc.5

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 (32) hide show
  1. package/dist/cli.mjs +9 -9
  2. package/dist/config.d.mts +2 -2
  3. package/dist/config.mjs +8 -8
  4. package/dist/experimental-index.d.mts +11 -5
  5. package/dist/experimental-index.mjs +24 -9
  6. package/dist/filter-index.d.mts +2 -2
  7. package/dist/index.d.mts +2 -2
  8. package/dist/index.mjs +8 -8
  9. package/dist/parallel-plugin-worker.mjs +5 -5
  10. package/dist/parallel-plugin.d.mts +2 -2
  11. package/dist/parse-ast-index.d.mts +1 -1
  12. package/dist/parse-ast-index.mjs +2 -2
  13. package/dist/plugins-index.d.mts +3 -3
  14. package/dist/plugins-index.mjs +3 -3
  15. package/dist/shared/{binding-BuW0Fhs2.mjs → binding-BpAdsRMp.mjs} +26 -26
  16. package/dist/shared/{binding-BohGL_65.d.mts → binding-MOe7QjvW.d.mts} +13 -2
  17. package/dist/shared/{bindingify-input-options-o_7NioSs.mjs → bindingify-input-options-DlgCN9zc.mjs} +6 -5
  18. package/dist/shared/{constructors-Dg8A45sy.d.mts → constructors-BVMsBEI4.d.mts} +2 -2
  19. package/dist/shared/{constructors-FqGyV5fj.mjs → constructors-ByA8Vmcs.mjs} +1 -1
  20. package/dist/shared/{define-config-BvszQ-i2.d.mts → define-config-D2erlXSV.d.mts} +10 -1
  21. package/dist/shared/{error-BjNWBTlf.mjs → error-Rnftw-T1.mjs} +1 -1
  22. package/dist/shared/{load-config-2dmAH96P.mjs → load-config-C1TxsD8r.mjs} +1 -1
  23. package/dist/shared/{normalize-string-or-regex-BU5HSJy4.mjs → normalize-string-or-regex-BFIgWR19.mjs} +1 -1
  24. package/dist/shared/{parse-Bt4kI3ey.mjs → parse-BuECM1WH.mjs} +1 -1
  25. package/dist/shared/{rolldown-B4lV-glW.mjs → rolldown-BpbRpba4.mjs} +1 -1
  26. package/dist/shared/{rolldown-build-tLuGZc7p.mjs → rolldown-build-Cc7GWaEw.mjs} +8 -5
  27. package/dist/shared/{transform-Cbhgjik0.mjs → transform-CFiExOzd.mjs} +2 -2
  28. package/dist/shared/{transform-BoJxrM-e.d.mts → transform-DKslvixZ.d.mts} +1 -1
  29. package/dist/shared/{watch-hs9ntURJ.mjs → watch-BBA-reCD.mjs} +4 -4
  30. package/dist/utils-index.d.mts +2 -2
  31. package/dist/utils-index.mjs +4 -4
  32. package/package.json +11 -11
package/dist/cli.mjs CHANGED
@@ -1,13 +1,13 @@
1
- import "./shared/binding-BuW0Fhs2.mjs";
2
- import { n as onExit, t as watch } from "./shared/watch-hs9ntURJ.mjs";
3
- import "./shared/normalize-string-or-regex-BU5HSJy4.mjs";
4
- import { S as version, x as description } from "./shared/bindingify-input-options-o_7NioSs.mjs";
1
+ import "./shared/binding-BpAdsRMp.mjs";
2
+ import { n as onExit, t as watch } from "./shared/watch-BBA-reCD.mjs";
3
+ import "./shared/normalize-string-or-regex-BFIgWR19.mjs";
4
+ import { S as version, x as description } from "./shared/bindingify-input-options-DlgCN9zc.mjs";
5
5
  import { t as arraify } from "./shared/misc-DJYbNKZX.mjs";
6
- import { a as getInputCliKeys, i as getCliSchemaInfo, l as styleText$1, o as getOutputCliKeys, r as logger, s as validateCliOptions } from "./shared/rolldown-build-tLuGZc7p.mjs";
7
- import "./shared/error-BjNWBTlf.mjs";
8
- import "./shared/parse-Bt4kI3ey.mjs";
9
- import { t as rolldown } from "./shared/rolldown-B4lV-glW.mjs";
10
- import { t as loadConfig } from "./shared/load-config-2dmAH96P.mjs";
6
+ import { a as getInputCliKeys, i as getCliSchemaInfo, l as styleText$1, o as getOutputCliKeys, r as logger, s as validateCliOptions } from "./shared/rolldown-build-Cc7GWaEw.mjs";
7
+ import "./shared/error-Rnftw-T1.mjs";
8
+ import "./shared/parse-BuECM1WH.mjs";
9
+ import { t as rolldown } from "./shared/rolldown-BpbRpba4.mjs";
10
+ import { t as loadConfig } from "./shared/load-config-C1TxsD8r.mjs";
11
11
  import path from "node:path";
12
12
  import { parseArgs } from "node:util";
13
13
  import process$1 from "node:process";
package/dist/config.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import "./shared/binding-BohGL_65.mjs";
2
- import { F as VERSION, r as defineConfig, t as ConfigExport } from "./shared/define-config-BvszQ-i2.mjs";
1
+ import "./shared/binding-MOe7QjvW.mjs";
2
+ import { F as VERSION, r as defineConfig, t as ConfigExport } from "./shared/define-config-D2erlXSV.mjs";
3
3
 
4
4
  //#region src/utils/load-config.d.ts
5
5
  /**
package/dist/config.mjs CHANGED
@@ -1,10 +1,10 @@
1
- import "./shared/binding-BuW0Fhs2.mjs";
2
- import "./shared/normalize-string-or-regex-BU5HSJy4.mjs";
3
- import { b as VERSION } from "./shared/bindingify-input-options-o_7NioSs.mjs";
4
- import "./shared/rolldown-build-tLuGZc7p.mjs";
5
- import "./shared/error-BjNWBTlf.mjs";
6
- import "./shared/parse-Bt4kI3ey.mjs";
7
- import "./shared/rolldown-B4lV-glW.mjs";
1
+ import "./shared/binding-BpAdsRMp.mjs";
2
+ import "./shared/normalize-string-or-regex-BFIgWR19.mjs";
3
+ import { b as VERSION } from "./shared/bindingify-input-options-DlgCN9zc.mjs";
4
+ import "./shared/rolldown-build-Cc7GWaEw.mjs";
5
+ import "./shared/error-Rnftw-T1.mjs";
6
+ import "./shared/parse-BuECM1WH.mjs";
7
+ import "./shared/rolldown-BpbRpba4.mjs";
8
8
  import { t as defineConfig } from "./shared/define-config-DJOr6Iwt.mjs";
9
- import { t as loadConfig } from "./shared/load-config-2dmAH96P.mjs";
9
+ import { t as loadConfig } from "./shared/load-config-C1TxsD8r.mjs";
10
10
  export { VERSION, defineConfig, loadConfig };
@@ -1,7 +1,7 @@
1
- import { A as IsolatedDeclarationsOptions, B as ResolverFactory, D as BindingViteTransformPluginConfig, F as NapiResolveOptions, G as isolatedDeclarationSync, K as moduleRunnerTransform, S as BindingViteManifestPluginConfig, U as TsconfigCache$1, W as isolatedDeclaration, _ as BindingTsconfigRawOptions, f as BindingRebuildStrategy, g as BindingTsconfigCompilerOptions, i as BindingClientHmrUpdate, j as IsolatedDeclarationsResult, n as BindingBundleAnalyzerPluginConfig, q as resolveTsconfig, r as BindingBundleState, z as ResolveResult } from "./shared/binding-BohGL_65.mjs";
2
- import { Gt as RolldownOutput, It as OutputOptions, N as BuiltinPlugin, X as defineParallelPlugin, c as InputOptions, qt as freeExternalMemory, st as NormalizedOutputOptions } from "./shared/define-config-BvszQ-i2.mjs";
3
- import { a as viteImportGlobPlugin, c as viteModulePreloadPolyfillPlugin, d as viteResolvePlugin, f as viteWasmFallbackPlugin, i as viteDynamicImportVarsPlugin, l as viteReactRefreshWrapperPlugin, n as isolatedDeclarationPlugin, o as viteJsonPlugin, p as viteWebWorkerPostPlugin, r as viteBuildImportAnalysisPlugin, s as viteLoadFallbackPlugin, u as viteReporterPlugin } from "./shared/constructors-Dg8A45sy.mjs";
4
- import { a as MinifyOptions$1, c as minifySync$1, d as parse$1, f as parseSync$1, i as transformSync$1, l as ParseResult$1, n as TransformResult$1, o as MinifyResult$1, r as transform$1, s as minify$1, t as TransformOptions$1, u as ParserOptions$1 } from "./shared/transform-BoJxrM-e.mjs";
1
+ import { G as TsconfigCache$1, H as ResolverFactory, J as moduleRunnerTransform, K as isolatedDeclaration, L as NapiResolveOptions, M as IsolatedDeclarationsOptions, N as IsolatedDeclarationsResult, V as ResolveResult, Y as resolveTsconfig, f as BindingRebuildStrategy, g as BindingRollipopWorkletsPluginConfig, h as BindingRollipopReactRefreshWrapperPluginConfig, i as BindingClientHmrUpdate, k as BindingViteTransformPluginConfig, n as BindingBundleAnalyzerPluginConfig, q as isolatedDeclarationSync, r as BindingBundleState, v as BindingTsconfigCompilerOptions, w as BindingViteManifestPluginConfig, y as BindingTsconfigRawOptions } from "./shared/binding-MOe7QjvW.mjs";
2
+ import { Gt as RolldownOutput, It as OutputOptions, N as BuiltinPlugin, X as defineParallelPlugin, c as InputOptions, qt as freeExternalMemory, st as NormalizedOutputOptions } from "./shared/define-config-D2erlXSV.mjs";
3
+ import { a as viteImportGlobPlugin, c as viteModulePreloadPolyfillPlugin, d as viteResolvePlugin, f as viteWasmFallbackPlugin, i as viteDynamicImportVarsPlugin, l as viteReactRefreshWrapperPlugin, n as isolatedDeclarationPlugin, o as viteJsonPlugin, p as viteWebWorkerPostPlugin, r as viteBuildImportAnalysisPlugin, s as viteLoadFallbackPlugin, u as viteReporterPlugin } from "./shared/constructors-BVMsBEI4.mjs";
4
+ import { a as MinifyOptions$1, c as minifySync$1, d as parse$1, f as parseSync$1, i as transformSync$1, l as ParseResult$1, n as TransformResult$1, o as MinifyResult$1, r as transform$1, s as minify$1, t as TransformOptions$1, u as ParserOptions$1 } from "./shared/transform-DKslvixZ.mjs";
5
5
 
6
6
  //#region src/api/dev/dev-options.d.ts
7
7
  type DevOnHmrUpdates = (result: Error | {
@@ -187,6 +187,12 @@ type ViteManifestPluginConfig = Omit<BindingViteManifestPluginConfig, "isLegacy"
187
187
  };
188
188
  declare function viteManifestPlugin(config: ViteManifestPluginConfig): BuiltinPlugin;
189
189
  //#endregion
190
+ //#region src/builtin-plugin/rollipop-react-refresh-wrapper-plugin.d.ts
191
+ declare function rollipopReactRefreshWrapperPlugin(config: BindingRollipopReactRefreshWrapperPluginConfig): BuiltinPlugin;
192
+ //#endregion
193
+ //#region src/builtin-plugin/rollipop-worklets-plugin.d.ts
194
+ declare function rollipopWorkletsPlugin(config: BindingRollipopWorkletsPluginConfig): BuiltinPlugin;
195
+ //#endregion
190
196
  //#region src/experimental-index.d.ts
191
197
  /**
192
198
  * In-memory file system for browser builds.
@@ -250,4 +256,4 @@ type TsconfigRawOptions = BindingTsconfigRawOptions;
250
256
  /** @deprecated Use from `rolldown/utils` instead. */
251
257
  type TsconfigCompilerOptions = BindingTsconfigCompilerOptions;
252
258
  //#endregion
253
- export { type BindingClientHmrUpdate, BindingRebuildStrategy, DevEngine, type DevOptions, type DevWatchOptions, type IsolatedDeclarationsOptions, type IsolatedDeclarationsResult, MinifyOptions, MinifyResult, ParseResult, ParserOptions, type NapiResolveOptions as ResolveOptions, type ResolveResult, ResolverFactory, TransformOptions, TransformResult, TsconfigCache, TsconfigCompilerOptions, TsconfigRawOptions, bundleAnalyzerPlugin, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, parse, parseSync, resolveTsconfig, scan, transform, transformSync, viteAliasPlugin, viteBuildImportAnalysisPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWasmFallbackPlugin, viteWebWorkerPostPlugin };
259
+ export { type BindingClientHmrUpdate, BindingRebuildStrategy, DevEngine, type DevOptions, type DevWatchOptions, type IsolatedDeclarationsOptions, type IsolatedDeclarationsResult, MinifyOptions, MinifyResult, ParseResult, ParserOptions, type NapiResolveOptions as ResolveOptions, type ResolveResult, ResolverFactory, type BindingRollipopReactRefreshWrapperPluginConfig as RollipopReactRefreshWrapperPluginConfig, type BindingRollipopWorkletsPluginConfig as RollipopWorkletsPluginConfig, TransformOptions, TransformResult, TsconfigCache, TsconfigCompilerOptions, TsconfigRawOptions, bundleAnalyzerPlugin, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, parse, parseSync, resolveTsconfig, rollipopReactRefreshWrapperPlugin, rollipopWorkletsPlugin, scan, transform, transformSync, viteAliasPlugin, viteBuildImportAnalysisPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWasmFallbackPlugin, viteWebWorkerPostPlugin };
@@ -1,11 +1,11 @@
1
- import { n as __toESM, t as require_binding } from "./shared/binding-BuW0Fhs2.mjs";
2
- import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-BU5HSJy4.mjs";
3
- import { a as transformToRollupOutput } from "./shared/bindingify-input-options-o_7NioSs.mjs";
4
- import { c as validateOption, n as createBundlerOptions, t as RolldownBuild, u as PluginDriver } from "./shared/rolldown-build-tLuGZc7p.mjs";
5
- import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-BjNWBTlf.mjs";
6
- import { n as parseSync$1, t as parse$1 } from "./shared/parse-Bt4kI3ey.mjs";
7
- import { a as viteImportGlobPlugin, c as viteModulePreloadPolyfillPlugin, d as viteResolvePlugin, f as viteWasmFallbackPlugin, i as viteDynamicImportVarsPlugin, l as viteReactRefreshWrapperPlugin, n as isolatedDeclarationPlugin, o as viteJsonPlugin, p as viteWebWorkerPostPlugin, r as viteBuildImportAnalysisPlugin, s as viteLoadFallbackPlugin, u as viteReporterPlugin } from "./shared/constructors-FqGyV5fj.mjs";
8
- import { a as minifySync$1, i as minify$1, n as transform$1, r as transformSync$1, t as import_binding$1 } from "./shared/transform-Cbhgjik0.mjs";
1
+ import { n as __toESM, t as require_binding } from "./shared/binding-BpAdsRMp.mjs";
2
+ import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-BFIgWR19.mjs";
3
+ import { a as transformToRollupOutput } from "./shared/bindingify-input-options-DlgCN9zc.mjs";
4
+ import { c as validateOption, n as createBundlerOptions, t as RolldownBuild, u as PluginDriver } from "./shared/rolldown-build-Cc7GWaEw.mjs";
5
+ import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-Rnftw-T1.mjs";
6
+ import { n as parseSync$1, t as parse$1 } from "./shared/parse-BuECM1WH.mjs";
7
+ import { a as viteImportGlobPlugin, c as viteModulePreloadPolyfillPlugin, d as viteResolvePlugin, f as viteWasmFallbackPlugin, i as viteDynamicImportVarsPlugin, l as viteReactRefreshWrapperPlugin, n as isolatedDeclarationPlugin, o as viteJsonPlugin, p as viteWebWorkerPostPlugin, r as viteBuildImportAnalysisPlugin, s as viteLoadFallbackPlugin, u as viteReporterPlugin } from "./shared/constructors-ByA8Vmcs.mjs";
8
+ import { a as minifySync$1, i as minify$1, n as transform$1, r as transformSync$1, t as import_binding$1 } from "./shared/transform-CFiExOzd.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);
@@ -268,6 +268,21 @@ function viteManifestPlugin(config) {
268
268
  return new BuiltinPlugin("builtin:vite-manifest", config);
269
269
  }
270
270
  //#endregion
271
+ //#region src/builtin-plugin/rollipop-react-refresh-wrapper-plugin.ts
272
+ function rollipopReactRefreshWrapperPlugin(config) {
273
+ return new BuiltinPlugin("builtin:rollipop-react-refresh-wrapper", {
274
+ cwd: config.cwd,
275
+ include: normalizedStringOrRegex(config.include),
276
+ exclude: normalizedStringOrRegex(config.exclude),
277
+ jsxImportSource: config.jsxImportSource
278
+ });
279
+ }
280
+ //#endregion
281
+ //#region src/builtin-plugin/rollipop-worklets-plugin.ts
282
+ function rollipopWorkletsPlugin(config) {
283
+ return new BuiltinPlugin("builtin:rollipop-worklets", config);
284
+ }
285
+ //#endregion
271
286
  //#region src/experimental-index.ts
272
287
  /**
273
288
  * In-memory file system for browser builds.
@@ -318,4 +333,4 @@ var isolatedDeclaration = import_binding.isolatedDeclaration;
318
333
  var isolatedDeclarationSync = import_binding.isolatedDeclarationSync;
319
334
  var moduleRunnerTransform = import_binding.moduleRunnerTransform;
320
335
  var resolveTsconfig = import_binding.resolveTsconfig;
321
- export { BindingRebuildStrategy, DevEngine, ResolverFactory, TsconfigCache, bundleAnalyzerPlugin, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, parse, parseSync, resolveTsconfig, scan, transform, transformSync, viteAliasPlugin, viteBuildImportAnalysisPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWasmFallbackPlugin, viteWebWorkerPostPlugin };
336
+ export { BindingRebuildStrategy, DevEngine, ResolverFactory, TsconfigCache, bundleAnalyzerPlugin, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, parse, parseSync, resolveTsconfig, rollipopReactRefreshWrapperPlugin, rollipopWorkletsPlugin, scan, transform, transformSync, viteAliasPlugin, viteBuildImportAnalysisPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWasmFallbackPlugin, viteWebWorkerPostPlugin };
@@ -1,5 +1,5 @@
1
- import "./shared/binding-BohGL_65.mjs";
2
- import { M as withFilter } from "./shared/define-config-BvszQ-i2.mjs";
1
+ import "./shared/binding-MOe7QjvW.mjs";
2
+ import { M as withFilter } from "./shared/define-config-D2erlXSV.mjs";
3
3
 
4
4
  //#region ../pluginutils/dist/filter/composable-filters.d.ts
5
5
  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-C6h4g8dA.mjs";
2
- import { R as PreRenderedChunk, u as BindingMagicString } from "./shared/binding-BohGL_65.mjs";
3
- import { $ as GeneralHookFilter, A as SourceDescription, At as CommentsOptions, B as TreeshakingOptions, C as PartialResolvedId, Ct as AdvancedChunksGroup, D as ResolvedId, Dt as CodeSplittingGroup, E as ResolveIdResult, Et as ChunkingContext, F as VERSION, Ft as ModuleFormat, G as EmittedPrebuiltChunk, Gt as RolldownOutput, H as EmittedAsset, Ht as OutputChunk, I as BundleError, It as OutputOptions, J as PluginContextResolveOptions, Jt as ModuleInfo, K as GetModuleInfo, Kt as SourceMap, L as ExistingRawSourceMap, Lt as PreRenderedAsset, Mt as GeneratedCodePreset, Nt as GlobalsFunction, O as RolldownPlugin, Ot as CodeSplittingNameFunction, P as RUNTIME_MODULE_ID, Pt as MinifyOptions, Q as PluginContextMeta, R as SourceMapInput, S as ParallelPluginHooks, St as AddonFunction, T as ResolveIdExtraOptions, Tt as ChunkFileNamesFunction, U as EmittedChunk, Ut as RenderedChunk, V as TransformPluginContext, Vt as OutputAsset, W as EmittedFile, Wt as RenderedModule, Y as DefineParallelPluginResult, Yt as SourcemapIgnoreListOption, Z as MinimalPluginContext, _ as ImportKind, _t as WatchOptions, a as ExternalOption, at as RolldownFsModule, b as ModuleType, bt as BuildOptions, c as InputOptions, ct as NormalizedInputOptions, d as WatcherFileWatcherOptions, dt as LoggingFunction, et as HookFilter, f as WatcherOptions, ft as WarningHandlerWithDefault, g as HookFilterExtension, gt as RolldownWatcherWatcherEventMap, h as FunctionPluginHooks, ht as RolldownWatcherEvent, i as RolldownOptions, it as RolldownFileStats, j as TransformResult, jt as GeneratedCodeOptions, k as RolldownPluginOption, kt as CodeSplittingOptions, l as ModuleTypes, lt as TransformOptions, m as CustomPluginOptions, mt as RolldownWatcher, n as RolldownOptionsFunction, nt as BufferEncoding, o as ExternalOptionFunction, ot as InternalModuleFormat, p as AsyncPluginHooks, pt as watch, q as PluginContext, r as defineConfig, rt as RolldownDirectoryEntry, s as InputOption, st as NormalizedOutputOptions, t as ConfigExport, tt as ModuleTypeFilter, u as OptimizationOptions, ut as ChecksOptions, v as LoadResult, vt as rolldown, w as Plugin, wt as AdvancedChunksOptions, x as ObjectHook, xt as build, y as ModuleOptions, yt as RolldownBuild, z as OutputBundle, zt as PartialNull } from "./shared/define-config-BvszQ-i2.mjs";
2
+ import { B as PreRenderedChunk, u as BindingMagicString } from "./shared/binding-MOe7QjvW.mjs";
3
+ import { $ as GeneralHookFilter, A as SourceDescription, At as CommentsOptions, B as TreeshakingOptions, C as PartialResolvedId, Ct as AdvancedChunksGroup, D as ResolvedId, Dt as CodeSplittingGroup, E as ResolveIdResult, Et as ChunkingContext, F as VERSION, Ft as ModuleFormat, G as EmittedPrebuiltChunk, Gt as RolldownOutput, H as EmittedAsset, Ht as OutputChunk, I as BundleError, It as OutputOptions, J as PluginContextResolveOptions, Jt as ModuleInfo, K as GetModuleInfo, Kt as SourceMap, L as ExistingRawSourceMap, Lt as PreRenderedAsset, Mt as GeneratedCodePreset, Nt as GlobalsFunction, O as RolldownPlugin, Ot as CodeSplittingNameFunction, P as RUNTIME_MODULE_ID, Pt as MinifyOptions, Q as PluginContextMeta, R as SourceMapInput, S as ParallelPluginHooks, St as AddonFunction, T as ResolveIdExtraOptions, Tt as ChunkFileNamesFunction, U as EmittedChunk, Ut as RenderedChunk, V as TransformPluginContext, Vt as OutputAsset, W as EmittedFile, Wt as RenderedModule, Y as DefineParallelPluginResult, Yt as SourcemapIgnoreListOption, Z as MinimalPluginContext, _ as ImportKind, _t as WatchOptions, a as ExternalOption, at as RolldownFsModule, b as ModuleType, bt as BuildOptions, c as InputOptions, ct as NormalizedInputOptions, d as WatcherFileWatcherOptions, dt as LoggingFunction, et as HookFilter, f as WatcherOptions, ft as WarningHandlerWithDefault, g as HookFilterExtension, gt as RolldownWatcherWatcherEventMap, h as FunctionPluginHooks, ht as RolldownWatcherEvent, i as RolldownOptions, it as RolldownFileStats, j as TransformResult, jt as GeneratedCodeOptions, k as RolldownPluginOption, kt as CodeSplittingOptions, l as ModuleTypes, lt as TransformOptions, m as CustomPluginOptions, mt as RolldownWatcher, n as RolldownOptionsFunction, nt as BufferEncoding, o as ExternalOptionFunction, ot as InternalModuleFormat, p as AsyncPluginHooks, pt as watch, q as PluginContext, r as defineConfig, rt as RolldownDirectoryEntry, s as InputOption, st as NormalizedOutputOptions, t as ConfigExport, tt as ModuleTypeFilter, u as OptimizationOptions, ut as ChecksOptions, v as LoadResult, vt as rolldown, w as Plugin, wt as AdvancedChunksOptions, x as ObjectHook, xt as build, y as ModuleOptions, yt as RolldownBuild, z as OutputBundle, zt as PartialNull } from "./shared/define-config-D2erlXSV.mjs";
4
4
  export { AddonFunction, AdvancedChunksGroup, AdvancedChunksOptions, AsyncPluginHooks, BindingMagicString, BufferEncoding, BuildOptions, BundleError, ChecksOptions, ChunkFileNamesFunction, 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, 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 };
package/dist/index.mjs CHANGED
@@ -1,11 +1,11 @@
1
- import { n as __toESM, t as require_binding } from "./shared/binding-BuW0Fhs2.mjs";
2
- import { n as onExit, t as watch } from "./shared/watch-hs9ntURJ.mjs";
3
- import "./shared/normalize-string-or-regex-BU5HSJy4.mjs";
4
- import { b as VERSION, y as RUNTIME_MODULE_ID } from "./shared/bindingify-input-options-o_7NioSs.mjs";
5
- import "./shared/rolldown-build-tLuGZc7p.mjs";
6
- import "./shared/error-BjNWBTlf.mjs";
7
- import "./shared/parse-Bt4kI3ey.mjs";
8
- import { t as rolldown } from "./shared/rolldown-B4lV-glW.mjs";
1
+ import { n as __toESM, t as require_binding } from "./shared/binding-BpAdsRMp.mjs";
2
+ import { n as onExit, t as watch } from "./shared/watch-BBA-reCD.mjs";
3
+ import "./shared/normalize-string-or-regex-BFIgWR19.mjs";
4
+ import { b as VERSION, y as RUNTIME_MODULE_ID } from "./shared/bindingify-input-options-DlgCN9zc.mjs";
5
+ import "./shared/rolldown-build-Cc7GWaEw.mjs";
6
+ import "./shared/error-Rnftw-T1.mjs";
7
+ import "./shared/parse-BuECM1WH.mjs";
8
+ import { t as rolldown } from "./shared/rolldown-BpbRpba4.mjs";
9
9
  import { t as defineConfig } from "./shared/define-config-DJOr6Iwt.mjs";
10
10
  import { isMainThread } from "node:worker_threads";
11
11
  //#region src/setup.ts
@@ -1,8 +1,8 @@
1
- import { n as __toESM, t as require_binding } from "./shared/binding-BuW0Fhs2.mjs";
2
- import "./shared/normalize-string-or-regex-BU5HSJy4.mjs";
3
- import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-o_7NioSs.mjs";
4
- import "./shared/error-BjNWBTlf.mjs";
5
- import "./shared/parse-Bt4kI3ey.mjs";
1
+ import { n as __toESM, t as require_binding } from "./shared/binding-BpAdsRMp.mjs";
2
+ import "./shared/normalize-string-or-regex-BFIgWR19.mjs";
3
+ import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-DlgCN9zc.mjs";
4
+ import "./shared/error-Rnftw-T1.mjs";
5
+ import "./shared/parse-BuECM1WH.mjs";
6
6
  import { parentPort, workerData } from "node:worker_threads";
7
7
  //#region src/parallel-plugin-worker.ts
8
8
  var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
@@ -1,5 +1,5 @@
1
- import "./shared/binding-BohGL_65.mjs";
2
- import { Rt as MaybePromise, w as Plugin } from "./shared/define-config-BvszQ-i2.mjs";
1
+ import "./shared/binding-MOe7QjvW.mjs";
2
+ import { Rt as MaybePromise, w as Plugin } from "./shared/define-config-D2erlXSV.mjs";
3
3
 
4
4
  //#region src/plugin/parallel-plugin-implementation.d.ts
5
5
  type ParallelPluginImplementation = Plugin;
@@ -1,4 +1,4 @@
1
- import { I as ParseResult$1, L as ParserOptions$1 } from "./shared/binding-BohGL_65.mjs";
1
+ import { R as ParseResult$1, z as ParserOptions$1 } from "./shared/binding-MOe7QjvW.mjs";
2
2
  import { Program } from "@oxc-project/types";
3
3
 
4
4
  //#region src/parse-ast-index.d.ts
@@ -1,6 +1,6 @@
1
- import "./shared/binding-BuW0Fhs2.mjs";
1
+ import "./shared/binding-BpAdsRMp.mjs";
2
2
  import { l as locate, n as error, s as logParseError, t as augmentCodeLocation, u as getCodeFrame } from "./shared/logs-D80CXhvg.mjs";
3
- import { n as parseSync, t as parse } from "./shared/parse-Bt4kI3ey.mjs";
3
+ import { n as parseSync, t as parse } from "./shared/parse-BuECM1WH.mjs";
4
4
  //#region src/parse-ast-index.ts
5
5
  function wrap(result, filename, sourceText) {
6
6
  if (result.errors.length > 0) return normalizeParseError(filename, sourceText, result.errors);
@@ -1,6 +1,6 @@
1
- import { m as BindingReplacePluginConfig } from "./shared/binding-BohGL_65.mjs";
2
- import { N as BuiltinPlugin } from "./shared/define-config-BvszQ-i2.mjs";
3
- import { t as esmExternalRequirePlugin } from "./shared/constructors-Dg8A45sy.mjs";
1
+ import { m as BindingReplacePluginConfig } from "./shared/binding-MOe7QjvW.mjs";
2
+ import { N as BuiltinPlugin } from "./shared/define-config-D2erlXSV.mjs";
3
+ import { t as esmExternalRequirePlugin } from "./shared/constructors-BVMsBEI4.mjs";
4
4
 
5
5
  //#region src/builtin-plugin/replace-plugin.d.ts
6
6
  /**
@@ -1,6 +1,6 @@
1
- import "./shared/binding-BuW0Fhs2.mjs";
2
- import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./shared/normalize-string-or-regex-BU5HSJy4.mjs";
3
- import { t as esmExternalRequirePlugin } from "./shared/constructors-FqGyV5fj.mjs";
1
+ import "./shared/binding-BpAdsRMp.mjs";
2
+ import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./shared/normalize-string-or-regex-BFIgWR19.mjs";
3
+ import { t as esmExternalRequirePlugin } from "./shared/constructors-ByA8Vmcs.mjs";
4
4
  //#region src/builtin-plugin/replace-plugin.ts
5
5
  /**
6
6
  * Replaces targeted strings in files while bundling.
@@ -103,7 +103,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
103
103
  try {
104
104
  const binding = __require("@rollipop/rolldown-binding-android-arm64");
105
105
  const bindingPackageVersion = __require("@rollipop/rolldown-binding-android-arm64/package.json").version;
106
- if (bindingPackageVersion !== "1.0.0-rc.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
106
+ if (bindingPackageVersion !== "1.0.0-rc.5" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.5 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("@rollipop/rolldown-binding-android-arm-eabi");
119
119
  const bindingPackageVersion = __require("@rollipop/rolldown-binding-android-arm-eabi/package.json").version;
120
- if (bindingPackageVersion !== "1.0.0-rc.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
120
+ if (bindingPackageVersion !== "1.0.0-rc.5" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.5 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("@rollipop/rolldown-binding-win32-x64-gnu");
134
134
  const bindingPackageVersion = __require("@rollipop/rolldown-binding-win32-x64-gnu/package.json").version;
135
- if (bindingPackageVersion !== "1.0.0-rc.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
135
+ if (bindingPackageVersion !== "1.0.0-rc.5" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.5 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("@rollipop/rolldown-binding-win32-x64-msvc");
148
148
  const bindingPackageVersion = __require("@rollipop/rolldown-binding-win32-x64-msvc/package.json").version;
149
- if (bindingPackageVersion !== "1.0.0-rc.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
149
+ if (bindingPackageVersion !== "1.0.0-rc.5" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.5 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("@rollipop/rolldown-binding-win32-ia32-msvc");
163
163
  const bindingPackageVersion = __require("@rollipop/rolldown-binding-win32-ia32-msvc/package.json").version;
164
- if (bindingPackageVersion !== "1.0.0-rc.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
164
+ if (bindingPackageVersion !== "1.0.0-rc.5" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.5 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("@rollipop/rolldown-binding-win32-arm64-msvc");
177
177
  const bindingPackageVersion = __require("@rollipop/rolldown-binding-win32-arm64-msvc/package.json").version;
178
- if (bindingPackageVersion !== "1.0.0-rc.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
178
+ if (bindingPackageVersion !== "1.0.0-rc.5" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.5 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("@rollipop/rolldown-binding-darwin-universal");
192
192
  const bindingPackageVersion = __require("@rollipop/rolldown-binding-darwin-universal/package.json").version;
193
- if (bindingPackageVersion !== "1.0.0-rc.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
193
+ if (bindingPackageVersion !== "1.0.0-rc.5" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.5 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("@rollipop/rolldown-binding-darwin-x64");
206
206
  const bindingPackageVersion = __require("@rollipop/rolldown-binding-darwin-x64/package.json").version;
207
- if (bindingPackageVersion !== "1.0.0-rc.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
207
+ if (bindingPackageVersion !== "1.0.0-rc.5" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.5 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("@rollipop/rolldown-binding-darwin-arm64");
220
220
  const bindingPackageVersion = __require("@rollipop/rolldown-binding-darwin-arm64/package.json").version;
221
- if (bindingPackageVersion !== "1.0.0-rc.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
221
+ if (bindingPackageVersion !== "1.0.0-rc.5" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.5 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("@rollipop/rolldown-binding-freebsd-x64");
235
235
  const bindingPackageVersion = __require("@rollipop/rolldown-binding-freebsd-x64/package.json").version;
236
- if (bindingPackageVersion !== "1.0.0-rc.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
236
+ if (bindingPackageVersion !== "1.0.0-rc.5" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.5 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("@rollipop/rolldown-binding-freebsd-arm64");
249
249
  const bindingPackageVersion = __require("@rollipop/rolldown-binding-freebsd-arm64/package.json").version;
250
- if (bindingPackageVersion !== "1.0.0-rc.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
250
+ if (bindingPackageVersion !== "1.0.0-rc.5" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.5 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("@rollipop/rolldown-binding-linux-x64-musl");
264
264
  const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-x64-musl/package.json").version;
265
- if (bindingPackageVersion !== "1.0.0-rc.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
265
+ if (bindingPackageVersion !== "1.0.0-rc.5" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.5 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("@rollipop/rolldown-binding-linux-x64-gnu");
278
278
  const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-x64-gnu/package.json").version;
279
- if (bindingPackageVersion !== "1.0.0-rc.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
279
+ if (bindingPackageVersion !== "1.0.0-rc.5" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.5 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("@rollipop/rolldown-binding-linux-arm64-musl");
293
293
  const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-arm64-musl/package.json").version;
294
- if (bindingPackageVersion !== "1.0.0-rc.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
294
+ if (bindingPackageVersion !== "1.0.0-rc.5" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.5 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("@rollipop/rolldown-binding-linux-arm64-gnu");
307
307
  const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-arm64-gnu/package.json").version;
308
- if (bindingPackageVersion !== "1.0.0-rc.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
308
+ if (bindingPackageVersion !== "1.0.0-rc.5" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.5 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("@rollipop/rolldown-binding-linux-arm-musleabihf");
322
322
  const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-arm-musleabihf/package.json").version;
323
- if (bindingPackageVersion !== "1.0.0-rc.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
323
+ if (bindingPackageVersion !== "1.0.0-rc.5" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.5 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("@rollipop/rolldown-binding-linux-arm-gnueabihf");
336
336
  const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-arm-gnueabihf/package.json").version;
337
- if (bindingPackageVersion !== "1.0.0-rc.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
337
+ if (bindingPackageVersion !== "1.0.0-rc.5" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.5 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("@rollipop/rolldown-binding-linux-loong64-musl");
351
351
  const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-loong64-musl/package.json").version;
352
- if (bindingPackageVersion !== "1.0.0-rc.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
352
+ if (bindingPackageVersion !== "1.0.0-rc.5" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.5 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("@rollipop/rolldown-binding-linux-loong64-gnu");
365
365
  const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-loong64-gnu/package.json").version;
366
- if (bindingPackageVersion !== "1.0.0-rc.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
366
+ if (bindingPackageVersion !== "1.0.0-rc.5" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.5 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("@rollipop/rolldown-binding-linux-riscv64-musl");
380
380
  const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-riscv64-musl/package.json").version;
381
- if (bindingPackageVersion !== "1.0.0-rc.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
381
+ if (bindingPackageVersion !== "1.0.0-rc.5" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.5 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("@rollipop/rolldown-binding-linux-riscv64-gnu");
394
394
  const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-riscv64-gnu/package.json").version;
395
- if (bindingPackageVersion !== "1.0.0-rc.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
395
+ if (bindingPackageVersion !== "1.0.0-rc.5" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.5 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("@rollipop/rolldown-binding-linux-ppc64-gnu");
409
409
  const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-ppc64-gnu/package.json").version;
410
- if (bindingPackageVersion !== "1.0.0-rc.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
410
+ if (bindingPackageVersion !== "1.0.0-rc.5" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.5 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("@rollipop/rolldown-binding-linux-s390x-gnu");
423
423
  const bindingPackageVersion = __require("@rollipop/rolldown-binding-linux-s390x-gnu/package.json").version;
424
- if (bindingPackageVersion !== "1.0.0-rc.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
424
+ if (bindingPackageVersion !== "1.0.0-rc.5" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.5 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("@rollipop/rolldown-binding-openharmony-arm64");
438
438
  const bindingPackageVersion = __require("@rollipop/rolldown-binding-openharmony-arm64/package.json").version;
439
- if (bindingPackageVersion !== "1.0.0-rc.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
439
+ if (bindingPackageVersion !== "1.0.0-rc.5" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.5 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("@rollipop/rolldown-binding-openharmony-x64");
452
452
  const bindingPackageVersion = __require("@rollipop/rolldown-binding-openharmony-x64/package.json").version;
453
- if (bindingPackageVersion !== "1.0.0-rc.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
453
+ if (bindingPackageVersion !== "1.0.0-rc.5" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.5 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("@rollipop/rolldown-binding-openharmony-arm");
466
466
  const bindingPackageVersion = __require("@rollipop/rolldown-binding-openharmony-arm/package.json").version;
467
- if (bindingPackageVersion !== "1.0.0-rc.4" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
467
+ if (bindingPackageVersion !== "1.0.0-rc.5" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
468
468
  return binding;
469
469
  } catch (e) {
470
470
  loadErrors.push(e);
@@ -1374,7 +1374,7 @@ declare class TsconfigCache {
1374
1374
  /** Get the number of cached entries. */
1375
1375
  size(): number;
1376
1376
  }
1377
- type BindingBuiltinPluginName = 'builtin:bundle-analyzer' | 'builtin:esm-external-require' | 'builtin:isolated-declaration' | 'builtin:replace' | 'builtin:vite-alias' | 'builtin:vite-build-import-analysis' | 'builtin:vite-dynamic-import-vars' | 'builtin:vite-import-glob' | 'builtin:vite-json' | 'builtin:vite-load-fallback' | 'builtin:vite-manifest' | 'builtin:vite-module-preload-polyfill' | 'builtin:vite-react-refresh-wrapper' | 'builtin:vite-reporter' | 'builtin:vite-resolve' | 'builtin:vite-transform' | 'builtin:vite-wasm-fallback' | 'builtin:vite-web-worker-post';
1377
+ type BindingBuiltinPluginName = 'builtin:bundle-analyzer' | 'builtin:esm-external-require' | 'builtin:isolated-declaration' | 'builtin:replace' | 'builtin:vite-alias' | 'builtin:vite-build-import-analysis' | 'builtin:vite-dynamic-import-vars' | 'builtin:vite-import-glob' | 'builtin:vite-json' | 'builtin:vite-load-fallback' | 'builtin:vite-manifest' | 'builtin:vite-module-preload-polyfill' | 'builtin:vite-react-refresh-wrapper' | 'builtin:vite-reporter' | 'builtin:vite-resolve' | 'builtin:vite-transform' | 'builtin:vite-wasm-fallback' | 'builtin:vite-web-worker-post' | 'builtin:rollipop-react-refresh-wrapper' | 'builtin:rollipop-worklets';
1378
1378
  interface BindingBundleAnalyzerPluginConfig {
1379
1379
  /** Output filename for the bundle analysis data (default: "analyze-data.json") */
1380
1380
  fileName?: string;
@@ -1642,6 +1642,17 @@ interface BindingReplacePluginConfig {
1642
1642
  objectGuards?: boolean;
1643
1643
  sourcemap?: boolean;
1644
1644
  }
1645
+ interface BindingRollipopReactRefreshWrapperPluginConfig {
1646
+ cwd: string;
1647
+ include?: Array<BindingStringOrRegex>;
1648
+ exclude?: Array<BindingStringOrRegex>;
1649
+ jsxImportSource?: string;
1650
+ }
1651
+ interface BindingRollipopWorkletsPluginConfig {
1652
+ root: string;
1653
+ pluginVersion: string;
1654
+ isRelease: boolean;
1655
+ }
1645
1656
  interface BindingSourceMapOptions {
1646
1657
  /** The filename for the generated file (goes into `map.file`) */
1647
1658
  file?: string;
@@ -1851,4 +1862,4 @@ interface ViteImportGlobMeta {
1851
1862
  isSubImportsPattern?: boolean;
1852
1863
  }
1853
1864
  //#endregion
1854
- export { IsolatedDeclarationsOptions as A, ResolverFactory as B, BindingViteModulePreloadPolyfillPluginConfig as C, BindingViteTransformPluginConfig as D, BindingViteResolvePluginConfig as E, NapiResolveOptions as F, isolatedDeclarationSync as G, TransformOptions as H, ParseResult as I, moduleRunnerTransform as K, ParserOptions as L, JsxOptions as M, MinifyOptions as N, BindingWatcherBundler as O, MinifyResult as P, PreRenderedChunk as R, BindingViteManifestPluginConfig as S, BindingViteReporterPluginConfig as T, TsconfigCache as U, SourceMap as V, isolatedDeclaration as W, BindingTsconfigRawOptions as _, BindingEnhancedTransformOptions as a, BindingViteImportGlobPluginConfig as b, BindingHookResolveIdExtraArgs as c, BindingPluginContextResolveOptions as d, BindingRebuildStrategy as f, BindingTsconfigCompilerOptions as g, BindingTransformHookExtraArgs as h, BindingClientHmrUpdate as i, IsolatedDeclarationsResult as j, ExternalMemoryStatus as k, BindingIsolatedDeclarationPluginConfig as l, BindingReplacePluginConfig as m, BindingBundleAnalyzerPluginConfig as n, BindingEnhancedTransformResult as o, BindingRenderedChunk as p, resolveTsconfig as q, BindingBundleState as r, BindingEsmExternalRequirePluginConfig as s, BindingBuiltinPluginName as t, BindingMagicString as u, BindingViteBuildImportAnalysisPluginConfig as v, BindingViteReactRefreshWrapperPluginConfig as w, BindingViteJsonPluginConfig as x, BindingViteDynamicImportVarsPluginConfig as y, ResolveResult as z };
1865
+ export { BindingWatcherBundler as A, PreRenderedChunk as B, BindingViteJsonPluginConfig as C, BindingViteReporterPluginConfig as D, BindingViteReactRefreshWrapperPluginConfig as E, MinifyOptions as F, TsconfigCache as G, ResolverFactory as H, MinifyResult as I, moduleRunnerTransform as J, isolatedDeclaration as K, NapiResolveOptions as L, IsolatedDeclarationsOptions as M, IsolatedDeclarationsResult as N, BindingViteResolvePluginConfig as O, JsxOptions as P, ParseResult as R, BindingViteImportGlobPluginConfig as S, BindingViteModulePreloadPolyfillPluginConfig as T, SourceMap as U, ResolveResult as V, TransformOptions as W, resolveTsconfig as Y, BindingTransformHookExtraArgs as _, BindingEnhancedTransformOptions as a, BindingViteBuildImportAnalysisPluginConfig as b, BindingHookResolveIdExtraArgs as c, BindingPluginContextResolveOptions as d, BindingRebuildStrategy as f, BindingRollipopWorkletsPluginConfig as g, BindingRollipopReactRefreshWrapperPluginConfig as h, BindingClientHmrUpdate as i, ExternalMemoryStatus as j, BindingViteTransformPluginConfig as k, BindingIsolatedDeclarationPluginConfig as l, BindingReplacePluginConfig as m, BindingBundleAnalyzerPluginConfig as n, BindingEnhancedTransformResult as o, BindingRenderedChunk as p, isolatedDeclarationSync as q, BindingBundleState as r, BindingEsmExternalRequirePluginConfig as s, BindingBuiltinPluginName as t, BindingMagicString as u, BindingTsconfigCompilerOptions as v, BindingViteManifestPluginConfig as w, BindingViteDynamicImportVarsPluginConfig as x, BindingTsconfigRawOptions as y, ParserOptions as z };
@@ -1,14 +1,14 @@
1
- import { n as __toESM, t as require_binding } from "./binding-BuW0Fhs2.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-BpAdsRMp.mjs";
2
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-BU5HSJy4.mjs";
3
+ import { i as bindingifyManifestPlugin, n as BuiltinPlugin, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-BFIgWR19.mjs";
4
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-BjNWBTlf.mjs";
5
+ import { a as bindingifySourcemap, i as unwrapBindingResult, t as aggregateBindingErrorsIntoJsError } from "./error-Rnftw-T1.mjs";
6
6
  import { parseAst } from "../parse-ast-index.mjs";
7
7
  import path from "node:path";
8
8
  import * as filter from "@rollipop/rolldown-pluginutils";
9
9
  import fsp from "node:fs/promises";
10
10
  //#region package.json
11
- var version = "1.0.0-rc.4";
11
+ var version = "1.0.0-rc.5";
12
12
  var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
13
13
  //#endregion
14
14
  //#region src/constants/version.ts
@@ -1962,7 +1962,8 @@ function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, normali
1962
1962
  preserveEntrySignatures: bindingifyPreserveEntrySignatures(inputOptions.preserveEntrySignatures),
1963
1963
  optimization: inputOptions.optimization,
1964
1964
  context: inputOptions.context,
1965
- tsconfig: inputOptions.resolve?.tsconfigFilename ?? inputOptions.tsconfig
1965
+ tsconfig: inputOptions.resolve?.tsconfigFilename ?? inputOptions.tsconfig,
1966
+ id: inputOptions.id
1966
1967
  };
1967
1968
  }
1968
1969
  function bindingifyDevMode(devMode) {
@@ -1,5 +1,5 @@
1
- import { C as BindingViteModulePreloadPolyfillPluginConfig, E as BindingViteResolvePluginConfig, T as BindingViteReporterPluginConfig, b as BindingViteImportGlobPluginConfig, l as BindingIsolatedDeclarationPluginConfig, s as BindingEsmExternalRequirePluginConfig, v as BindingViteBuildImportAnalysisPluginConfig, w as BindingViteReactRefreshWrapperPluginConfig, x as BindingViteJsonPluginConfig, y as BindingViteDynamicImportVarsPluginConfig } from "./binding-BohGL_65.mjs";
2
- import { Bt as StringOrRegExp, N as BuiltinPlugin } from "./define-config-BvszQ-i2.mjs";
1
+ import { C as BindingViteJsonPluginConfig, D as BindingViteReporterPluginConfig, E as BindingViteReactRefreshWrapperPluginConfig, O as BindingViteResolvePluginConfig, S as BindingViteImportGlobPluginConfig, T as BindingViteModulePreloadPolyfillPluginConfig, b as BindingViteBuildImportAnalysisPluginConfig, l as BindingIsolatedDeclarationPluginConfig, s as BindingEsmExternalRequirePluginConfig, x as BindingViteDynamicImportVarsPluginConfig } from "./binding-MOe7QjvW.mjs";
2
+ import { Bt as StringOrRegExp, N as BuiltinPlugin } from "./define-config-D2erlXSV.mjs";
3
3
 
4
4
  //#region src/builtin-plugin/constructors.d.ts
5
5
  declare function viteModulePreloadPolyfillPlugin(config?: BindingViteModulePreloadPolyfillPluginConfig): BuiltinPlugin;
@@ -1,4 +1,4 @@
1
- import { a as makeBuiltinPluginCallable, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-BU5HSJy4.mjs";
1
+ import { a as makeBuiltinPluginCallable, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-BFIgWR19.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
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 { H as TransformOptions$1, L as ParserOptions, M as JsxOptions, N as MinifyOptions$1, O as BindingWatcherBundler, R as PreRenderedChunk, c as BindingHookResolveIdExtraArgs, d as BindingPluginContextResolveOptions, h as BindingTransformHookExtraArgs, k as ExternalMemoryStatus, p as BindingRenderedChunk, t as BindingBuiltinPluginName, u as BindingMagicString } from "./binding-BohGL_65.mjs";
2
+ import { A as BindingWatcherBundler, B as PreRenderedChunk, F as MinifyOptions$1, P as JsxOptions, W as TransformOptions$1, _ as BindingTransformHookExtraArgs, c as BindingHookResolveIdExtraArgs, d as BindingPluginContextResolveOptions, j as ExternalMemoryStatus, p as BindingRenderedChunk, t as BindingBuiltinPluginName, u as BindingMagicString, z as ParserOptions } from "./binding-MOe7QjvW.mjs";
3
3
  import { TopLevelFilterExpression } from "@rollipop/rolldown-pluginutils";
4
4
  import { Program } from "@oxc-project/types";
5
5
 
@@ -949,6 +949,11 @@ interface OutputOptions {
949
949
  * @default []
950
950
  */
951
951
  globalIdentifiers?: string[];
952
+ /**
953
+ * Enable persistent transform cache to disk.
954
+ * @default false
955
+ */
956
+ persistentCache?: boolean;
952
957
  }
953
958
  type CodeSplittingGroup = {
954
959
  /**
@@ -3712,6 +3717,10 @@ interface InputOptions {
3712
3717
  * @default true
3713
3718
  */
3714
3719
  tsconfig?: boolean | string;
3720
+ /**
3721
+ * Unique identifier for build task.
3722
+ */
3723
+ id?: string;
3715
3724
  }
3716
3725
  //#endregion
3717
3726
  //#region src/types/rolldown-options.d.ts
@@ -1,4 +1,4 @@
1
- import { t as require_binding } from "./binding-BuW0Fhs2.mjs";
1
+ import { t as require_binding } from "./binding-BpAdsRMp.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-B4lV-glW.mjs";
1
+ import { t as rolldown } from "./rolldown-BpbRpba4.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-BuW0Fhs2.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-BpAdsRMp.mjs";
2
2
  import { c as logPluginError, n as error } from "./logs-D80CXhvg.mjs";
3
3
  //#region src/builtin-plugin/utils.ts
4
4
  var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
@@ -1,4 +1,4 @@
1
- import { n as __toESM, t as require_binding } from "./binding-BuW0Fhs2.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-BpAdsRMp.mjs";
2
2
  //#region ../../node_modules/.pnpm/oxc-parser@0.115.0/node_modules/oxc-parser/src-js/wrap.js
3
3
  function wrap(result) {
4
4
  let program, module, comments, errors;
@@ -1,4 +1,4 @@
1
- import { c as validateOption, t as RolldownBuild, u as PluginDriver } from "./rolldown-build-tLuGZc7p.mjs";
1
+ import { c as validateOption, t as RolldownBuild, u as PluginDriver } from "./rolldown-build-Cc7GWaEw.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-BuW0Fhs2.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-BpAdsRMp.mjs";
2
2
  import { i as logInputHookInOutputPlugin, n as error } from "./logs-D80CXhvg.mjs";
3
- import { n as BuiltinPlugin } from "./normalize-string-or-regex-BU5HSJy4.mjs";
4
- import { _ as LOG_LEVEL_WARN, a as transformToRollupOutput, b as VERSION, c as transformAssetSource, d as MinimalPluginContextImpl, f as normalizeHook, i as transformModuleInfo, l as lazyProp, m as LOG_LEVEL_DEBUG, o as transformRenderedChunk, p as normalizeLog, s as __decorate, t as bindingifyInputOptions, u as PlainObjectLike, v as logLevelPriority } from "./bindingify-input-options-o_7NioSs.mjs";
3
+ import { n as BuiltinPlugin } from "./normalize-string-or-regex-BFIgWR19.mjs";
4
+ import { _ as LOG_LEVEL_WARN, a as transformToRollupOutput, b as VERSION, c as transformAssetSource, d as MinimalPluginContextImpl, f as normalizeHook, i as transformModuleInfo, l as lazyProp, m as LOG_LEVEL_DEBUG, o as transformRenderedChunk, p as normalizeLog, s as __decorate, t as bindingifyInputOptions, u as PlainObjectLike, v as logLevelPriority } from "./bindingify-input-options-DlgCN9zc.mjs";
5
5
  import { i as unimplemented } from "./misc-DJYbNKZX.mjs";
6
- import { i as unwrapBindingResult } from "./error-BjNWBTlf.mjs";
6
+ import { i as unwrapBindingResult } from "./error-Rnftw-T1.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";
@@ -1707,7 +1707,8 @@ const InputOptionsSchema = /* @__PURE__ */ strictObject({
1707
1707
  /* @__PURE__ */ literal(false)
1708
1708
  ]))),
1709
1709
  context: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("The value of `this` at the top level of each module.")),
1710
- tsconfig: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ string()])), /* @__PURE__ */ description("Path to the tsconfig.json file."))
1710
+ tsconfig: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ string()])), /* @__PURE__ */ description("Path to the tsconfig.json file.")),
1711
+ id: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Unique identifier for build task"))
1711
1712
  });
1712
1713
  isTypeTrue();
1713
1714
  const InputCliOverrideSchema = /* @__PURE__ */ strictObject({
@@ -1866,6 +1867,7 @@ const OutputOptionsSchema = /* @__PURE__ */ strictObject({
1866
1867
  keepNames: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Keep function and class names after bundling")),
1867
1868
  strictExecutionOrder: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Lets modules be executed in the order they are declared.")),
1868
1869
  strict: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ literal("auto")])), /* @__PURE__ */ description("Whether to always output `\"use strict\"` directive in non-ES module outputs.")),
1870
+ persistentCache: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Enable persistent transform cache to disk.")),
1869
1871
  globalIdentifiers: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())), /* @__PURE__ */ description("Reserved global identifiers to be avoided when generating export binding names for module chunks"))
1870
1872
  });
1871
1873
  isTypeTrue();
@@ -3018,6 +3020,7 @@ function bindingifyOutputOptions(outputOptions) {
3018
3020
  cleanDir,
3019
3021
  strictExecutionOrder,
3020
3022
  strict: outputOptions.strict,
3023
+ persistentCache: outputOptions.persistentCache,
3021
3024
  globalIdentifiers
3022
3025
  };
3023
3026
  }
@@ -1,5 +1,5 @@
1
- import { n as __toESM, t as require_binding } from "./binding-BuW0Fhs2.mjs";
2
- import { a as bindingifySourcemap, n as normalizeBindingError } from "./error-BjNWBTlf.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-BpAdsRMp.mjs";
2
+ import { a as bindingifySourcemap, n as normalizeBindingError } from "./error-Rnftw-T1.mjs";
3
3
  //#region src/utils/minify.ts
4
4
  var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import { a as RolldownLog } from "./logging-C6h4g8dA.mjs";
2
- import { I as ParseResult$1, L as ParserOptions$1, N as MinifyOptions$1, P as MinifyResult$1, U as TsconfigCache, V as SourceMap, a as BindingEnhancedTransformOptions, o as BindingEnhancedTransformResult } from "./binding-BohGL_65.mjs";
2
+ import { F as MinifyOptions$1, G as TsconfigCache, I as MinifyResult$1, R as ParseResult$1, U as SourceMap, a as BindingEnhancedTransformOptions, o as BindingEnhancedTransformResult, z as ParserOptions$1 } from "./binding-MOe7QjvW.mjs";
3
3
 
4
4
  //#region src/utils/parse.d.ts
5
5
  /**
@@ -1,9 +1,9 @@
1
- import { n as __toESM, t as require_binding } from "./binding-BuW0Fhs2.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-BpAdsRMp.mjs";
2
2
  import { o as logMultipleWatcherOption } from "./logs-D80CXhvg.mjs";
3
- import { _ as LOG_LEVEL_WARN } from "./bindingify-input-options-o_7NioSs.mjs";
3
+ import { _ as LOG_LEVEL_WARN } from "./bindingify-input-options-DlgCN9zc.mjs";
4
4
  import { t as arraify } from "./misc-DJYbNKZX.mjs";
5
- import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-tLuGZc7p.mjs";
6
- import { t as aggregateBindingErrorsIntoJsError } from "./error-BjNWBTlf.mjs";
5
+ import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-Cc7GWaEw.mjs";
6
+ import { t as aggregateBindingErrorsIntoJsError } from "./error-Rnftw-T1.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,5 +1,5 @@
1
- import { U as TsconfigCache, _ as BindingTsconfigRawOptions, g as BindingTsconfigCompilerOptions } from "./shared/binding-BohGL_65.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, r as transform, s as minify, t as TransformOptions, u as ParserOptions } from "./shared/transform-BoJxrM-e.mjs";
1
+ import { G as TsconfigCache, v as BindingTsconfigCompilerOptions, y as BindingTsconfigRawOptions } from "./shared/binding-MOe7QjvW.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, r as transform, s as minify, t as TransformOptions, u as ParserOptions } from "./shared/transform-DKslvixZ.mjs";
3
3
  import * as ESTree from "@oxc-project/types";
4
4
  import { Program } from "@oxc-project/types";
5
5
 
@@ -1,7 +1,7 @@
1
- import "./shared/binding-BuW0Fhs2.mjs";
2
- import "./shared/error-BjNWBTlf.mjs";
3
- import { n as parseSync, t as parse } from "./shared/parse-Bt4kI3ey.mjs";
4
- import { a as minifySync, i as minify, n as transform, r as transformSync, t as import_binding } from "./shared/transform-Cbhgjik0.mjs";
1
+ import "./shared/binding-BpAdsRMp.mjs";
2
+ import "./shared/error-Rnftw-T1.mjs";
3
+ import { n as parseSync, t as parse } from "./shared/parse-BuECM1WH.mjs";
4
+ import { a as minifySync, i as minify, n as transform, r as transformSync, t as import_binding } from "./shared/transform-CFiExOzd.mjs";
5
5
  //#region ../../node_modules/.pnpm/oxc-parser@0.115.0/node_modules/oxc-parser/src-js/generated/visit/walk.js
6
6
  function walkNode(node, visitors) {
7
7
  if (node == null) return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rollipop/rolldown",
3
- "version": "1.0.0-rc.4",
3
+ "version": "1.0.0-rc.5",
4
4
  "description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
5
5
  "keywords": [
6
6
  "bundler",
@@ -54,7 +54,7 @@
54
54
  },
55
55
  "dependencies": {
56
56
  "@oxc-project/types": "=0.115.0",
57
- "@rollipop/rolldown-pluginutils": "1.0.0-rc.4"
57
+ "@rollipop/rolldown-pluginutils": "1.0.0-rc.5"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@napi-rs/cli": "^3.4.1",
@@ -75,7 +75,7 @@
75
75
  "source-map": "0.7.6",
76
76
  "typescript": "^5.8.3",
77
77
  "valibot": "1.2.0",
78
- "@rollipop/rolldown": "1.0.0-rc.4"
78
+ "@rollipop/rolldown": "1.0.0-rc.5"
79
79
  },
80
80
  "napi": {
81
81
  "binaryName": "rolldown-binding",
@@ -96,14 +96,14 @@
96
96
  "node": "^20.19.0 || >=22.12.0"
97
97
  },
98
98
  "optionalDependencies": {
99
- "@rollipop/rolldown-binding-darwin-x64": "1.0.0-rc.4",
100
- "@rollipop/rolldown-binding-win32-x64-msvc": "1.0.0-rc.4",
101
- "@rollipop/rolldown-binding-linux-x64-gnu": "1.0.0-rc.4",
102
- "@rollipop/rolldown-binding-linux-x64-musl": "1.0.0-rc.4",
103
- "@rollipop/rolldown-binding-linux-arm64-gnu": "1.0.0-rc.4",
104
- "@rollipop/rolldown-binding-darwin-arm64": "1.0.0-rc.4",
105
- "@rollipop/rolldown-binding-linux-arm64-musl": "1.0.0-rc.4",
106
- "@rollipop/rolldown-binding-win32-arm64-msvc": "1.0.0-rc.4"
99
+ "@rollipop/rolldown-binding-darwin-x64": "1.0.0-rc.5",
100
+ "@rollipop/rolldown-binding-win32-x64-msvc": "1.0.0-rc.5",
101
+ "@rollipop/rolldown-binding-linux-x64-gnu": "1.0.0-rc.5",
102
+ "@rollipop/rolldown-binding-linux-x64-musl": "1.0.0-rc.5",
103
+ "@rollipop/rolldown-binding-linux-arm64-gnu": "1.0.0-rc.5",
104
+ "@rollipop/rolldown-binding-darwin-arm64": "1.0.0-rc.5",
105
+ "@rollipop/rolldown-binding-linux-arm64-musl": "1.0.0-rc.5",
106
+ "@rollipop/rolldown-binding-win32-arm64-msvc": "1.0.0-rc.5"
107
107
  },
108
108
  "scripts": {
109
109
  "# Scrips for binding #": "_",