rolldown 1.0.0-beta.27 → 1.0.0-beta.28-commit.cd50e5f

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 (36) hide show
  1. package/dist/cli.cjs +5 -5
  2. package/dist/cli.mjs +5 -5
  3. package/dist/config.cjs +3 -3
  4. package/dist/config.d.cts +2 -2
  5. package/dist/config.d.mts +2 -2
  6. package/dist/config.mjs +3 -3
  7. package/dist/experimental-index.cjs +2 -2
  8. package/dist/experimental-index.d.cts +3 -3
  9. package/dist/experimental-index.d.mts +3 -3
  10. package/dist/experimental-index.mjs +2 -2
  11. package/dist/experimental-runtime-types.d.ts +19 -6
  12. package/dist/filter-index.d.cts +2 -2
  13. package/dist/filter-index.d.mts +2 -2
  14. package/dist/index.cjs +2 -2
  15. package/dist/index.d.cts +2 -2
  16. package/dist/index.d.mts +2 -2
  17. package/dist/index.mjs +2 -2
  18. package/dist/parallel-plugin-worker.cjs +2 -2
  19. package/dist/parallel-plugin-worker.mjs +2 -2
  20. package/dist/parallel-plugin.d.cts +3 -3
  21. package/dist/parallel-plugin.d.mts +3 -3
  22. package/dist/parse-ast-index.cjs +1 -1
  23. package/dist/parse-ast-index.d.cts +2 -2
  24. package/dist/parse-ast-index.d.mts +2 -2
  25. package/dist/parse-ast-index.mjs +1 -1
  26. package/dist/shared/{binding-CCU51T2Z.d.mts → binding-BO7hG1pA.d.mts} +2 -1
  27. package/dist/shared/{binding-Drc5ua4y.d.cts → binding-D1lW862e.d.cts} +2 -1
  28. package/dist/shared/{define-config-BBCw1iOI.d.mts → define-config-Dwhdw7Gl.d.mts} +10 -2
  29. package/dist/shared/{define-config-DarysRyQ.d.cts → define-config-QTGzJj6S.d.cts} +10 -2
  30. package/dist/shared/{load-config-B6iEN4up.mjs → load-config-C23Zy1y1.mjs} +1 -1
  31. package/dist/shared/{load-config-DZsqrBDl.cjs → load-config-_nDApJ4k.cjs} +1 -1
  32. package/dist/shared/{parse-ast-index-P8896Zx2.cjs → parse-ast-index-C8M9mL2v.cjs} +1 -1
  33. package/dist/shared/{parse-ast-index-DMSgO0V6.mjs → parse-ast-index-H6yPBJEa.mjs} +1 -1
  34. package/dist/shared/{src-BFxSfxJH.mjs → src-9SN6aVII.mjs} +19 -9
  35. package/dist/shared/{src-CW8YHwuU.cjs → src-9tzio12N.cjs} +19 -9
  36. package/package.json +34 -34
package/dist/cli.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  const require_chunk = require('./shared/chunk-DDkG_k5U.cjs');
2
- const require_src = require('./shared/src-CW8YHwuU.cjs');
3
- require('./shared/parse-ast-index-P8896Zx2.cjs');
2
+ const require_src = require('./shared/src-9tzio12N.cjs');
3
+ require('./shared/parse-ast-index-C8M9mL2v.cjs');
4
4
  const require_misc = require('./shared/misc-DksvspN4.cjs');
5
- const require_load_config = require('./shared/load-config-DZsqrBDl.cjs');
5
+ const require_load_config = require('./shared/load-config-_nDApJ4k.cjs');
6
6
  const node_path = require_chunk.__toESM(require("node:path"));
7
7
  const ansis = require_chunk.__toESM(require("ansis"));
8
8
  const node_process = require_chunk.__toESM(require("node:process"));
@@ -1424,8 +1424,8 @@ const process$2 = globalThis.process;
1424
1424
  const { onExit, load, unload } = signalExitWrap(processOk(process$2) ? new SignalExit(process$2) : new SignalExitFallback());
1425
1425
 
1426
1426
  //#endregion
1427
- //#region ../../node_modules/.pnpm/@oxc-project+runtime@0.77.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js
1428
- var require_usingCtx = require_chunk.__commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.77.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(exports, module) {
1427
+ //#region ../../node_modules/.pnpm/@oxc-project+runtime@0.77.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js
1428
+ var require_usingCtx = require_chunk.__commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.77.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(exports, module) {
1429
1429
  function _usingCtx() {
1430
1430
  var r$1 = "function" == typeof SuppressedError ? SuppressedError : function(r$2, e$1) {
1431
1431
  var n$2 = Error();
package/dist/cli.mjs CHANGED
@@ -1,7 +1,7 @@
1
- import { __commonJS, __toESM } from "./shared/parse-ast-index-DMSgO0V6.mjs";
2
- import { description, getInputCliKeys, getJsonSchema, getOutputCliKeys, rolldown, validateCliOptions, version, watch } from "./shared/src-BFxSfxJH.mjs";
1
+ import { __commonJS, __toESM } from "./shared/parse-ast-index-H6yPBJEa.mjs";
2
+ import { description, getInputCliKeys, getJsonSchema, getOutputCliKeys, rolldown, validateCliOptions, version, watch } from "./shared/src-9SN6aVII.mjs";
3
3
  import { arraify } from "./shared/misc-CQeo-AFx.mjs";
4
- import { loadConfig } from "./shared/load-config-B6iEN4up.mjs";
4
+ import { loadConfig } from "./shared/load-config-C23Zy1y1.mjs";
5
5
  import path, { sep } from "node:path";
6
6
  import colors from "ansis";
7
7
  import process$1 from "node:process";
@@ -1423,8 +1423,8 @@ const process$2 = globalThis.process;
1423
1423
  const { onExit, load, unload } = signalExitWrap(processOk(process$2) ? new SignalExit(process$2) : new SignalExitFallback());
1424
1424
 
1425
1425
  //#endregion
1426
- //#region ../../node_modules/.pnpm/@oxc-project+runtime@0.77.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js
1427
- var require_usingCtx = __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.77.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(exports, module) {
1426
+ //#region ../../node_modules/.pnpm/@oxc-project+runtime@0.77.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js
1427
+ var require_usingCtx = __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.77.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(exports, module) {
1428
1428
  function _usingCtx() {
1429
1429
  var r$1 = "function" == typeof SuppressedError ? SuppressedError : function(r$2, e$1) {
1430
1430
  var n$2 = Error();
package/dist/config.cjs CHANGED
@@ -1,7 +1,7 @@
1
- const require_src = require('./shared/src-CW8YHwuU.cjs');
2
- require('./shared/parse-ast-index-P8896Zx2.cjs');
1
+ const require_src = require('./shared/src-9tzio12N.cjs');
2
+ require('./shared/parse-ast-index-C8M9mL2v.cjs');
3
3
  require('./shared/misc-DksvspN4.cjs');
4
- const require_load_config = require('./shared/load-config-DZsqrBDl.cjs');
4
+ const require_load_config = require('./shared/load-config-_nDApJ4k.cjs');
5
5
 
6
6
  //#region src/config.ts
7
7
  const VERSION = require_src.version;
package/dist/config.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import "./shared/binding-Drc5ua4y.cjs";
2
- import { ConfigExport, defineConfig } from "./shared/define-config-DarysRyQ.cjs";
1
+ import "./shared/binding-D1lW862e.cjs";
2
+ import { ConfigExport, defineConfig } from "./shared/define-config-QTGzJj6S.cjs";
3
3
 
4
4
  //#region src/utils/load-config.d.ts
5
5
  declare function loadConfig(configPath: string): Promise<ConfigExport>;
package/dist/config.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import "./shared/binding-CCU51T2Z.mjs";
2
- import { ConfigExport, defineConfig } from "./shared/define-config-BBCw1iOI.mjs";
1
+ import "./shared/binding-BO7hG1pA.mjs";
2
+ import { ConfigExport, defineConfig } from "./shared/define-config-Dwhdw7Gl.mjs";
3
3
 
4
4
  //#region src/utils/load-config.d.ts
5
5
  declare function loadConfig(configPath: string): Promise<ConfigExport>;
package/dist/config.mjs CHANGED
@@ -1,7 +1,7 @@
1
- import "./shared/parse-ast-index-DMSgO0V6.mjs";
2
- import { defineConfig, version } from "./shared/src-BFxSfxJH.mjs";
1
+ import "./shared/parse-ast-index-H6yPBJEa.mjs";
2
+ import { defineConfig, version } from "./shared/src-9SN6aVII.mjs";
3
3
  import "./shared/misc-CQeo-AFx.mjs";
4
- import { loadConfig } from "./shared/load-config-B6iEN4up.mjs";
4
+ import { loadConfig } from "./shared/load-config-C23Zy1y1.mjs";
5
5
 
6
6
  //#region src/config.ts
7
7
  const VERSION = version;
@@ -1,6 +1,6 @@
1
1
  const require_chunk = require('./shared/chunk-DDkG_k5U.cjs');
2
- const require_src = require('./shared/src-CW8YHwuU.cjs');
3
- const require_parse_ast_index = require('./shared/parse-ast-index-P8896Zx2.cjs');
2
+ const require_src = require('./shared/src-9tzio12N.cjs');
3
+ const require_parse_ast_index = require('./shared/parse-ast-index-C8M9mL2v.cjs');
4
4
  require('./shared/misc-DksvspN4.cjs');
5
5
  const node_url = require_chunk.__toESM(require("node:url"));
6
6
 
@@ -1,5 +1,5 @@
1
- import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding-Drc5ua4y.cjs";
2
- import { BuiltinPlugin, InputOptions, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config-DarysRyQ.cjs";
1
+ import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding-D1lW862e.cjs";
2
+ import { BuiltinPlugin, InputOptions, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config-QTGzJj6S.cjs";
3
3
 
4
4
  //#region src/api/experimental.d.ts
5
5
 
@@ -55,4 +55,4 @@ type TransformPluginConfig = Omit<BindingTransformPluginConfig, "include" | "exc
55
55
  };
56
56
  declare function transformPlugin(config?: TransformPluginConfig): BuiltinPlugin;
57
57
  //#endregion
58
- export { IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions as ResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, aliasPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, moduleRunnerTransform, replacePlugin, reporterPlugin, experimental_scan as scan, transform, transformPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin };
58
+ export { type IsolatedDeclarationsOptions, type IsolatedDeclarationsResult, type NapiResolveOptions as ResolveOptions, type ResolveResult, ResolverFactory, type TransformOptions, type TransformResult, aliasPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, moduleRunnerTransform, replacePlugin, reporterPlugin, experimental_scan as scan, transform, transformPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin };
@@ -1,5 +1,5 @@
1
- import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding-CCU51T2Z.mjs";
2
- import { BuiltinPlugin, InputOptions, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config-BBCw1iOI.mjs";
1
+ import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding-BO7hG1pA.mjs";
2
+ import { BuiltinPlugin, InputOptions, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config-Dwhdw7Gl.mjs";
3
3
 
4
4
  //#region src/api/experimental.d.ts
5
5
 
@@ -55,4 +55,4 @@ type TransformPluginConfig = Omit<BindingTransformPluginConfig, "include" | "exc
55
55
  };
56
56
  declare function transformPlugin(config?: TransformPluginConfig): BuiltinPlugin;
57
57
  //#endregion
58
- export { IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions as ResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, aliasPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, moduleRunnerTransform, replacePlugin, reporterPlugin, experimental_scan as scan, transform, transformPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin };
58
+ export { type IsolatedDeclarationsOptions, type IsolatedDeclarationsResult, type NapiResolveOptions as ResolveOptions, type ResolveResult, ResolverFactory, type TransformOptions, type TransformResult, aliasPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, moduleRunnerTransform, replacePlugin, reporterPlugin, experimental_scan as scan, transform, transformPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin };
@@ -1,5 +1,5 @@
1
- import { BindingBundler, ResolverFactory, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/parse-ast-index-DMSgO0V6.mjs";
2
- import { BuiltinPlugin, PluginDriver, assetPlugin, buildImportAnalysisPlugin, createBundlerImpl, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/src-BFxSfxJH.mjs";
1
+ import { BindingBundler, ResolverFactory, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/parse-ast-index-H6yPBJEa.mjs";
2
+ import { BuiltinPlugin, PluginDriver, assetPlugin, buildImportAnalysisPlugin, createBundlerImpl, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/src-9SN6aVII.mjs";
3
3
  import "./shared/misc-CQeo-AFx.mjs";
4
4
  import { pathToFileURL } from "node:url";
5
5
 
@@ -1,10 +1,8 @@
1
1
  export class DevRuntime {
2
2
  /**
3
- * @type {Record<string, { exports: any }>}
3
+ * @type {Record<string, Module>}
4
4
  */
5
- modules: Record<string, {
6
- exports: any;
7
- }>;
5
+ modules: Record<string, Module>;
8
6
  /**
9
7
  * @param {string} _moduleId
10
8
  */
@@ -15,9 +13,9 @@ export class DevRuntime {
15
13
  applyUpdates(_boundaries: string[]): void;
16
14
  /**
17
15
  * @param {string} id
18
- * @param {{ exports: any }} module
16
+ * @param {{ exports: any }} meta
19
17
  */
20
- registerModule(id: string, module: {
18
+ registerModule(id: string, meta: {
21
19
  exports: any;
22
20
  }): void;
23
21
  /**
@@ -51,3 +49,18 @@ export class DevRuntime {
51
49
  /** @internal */
52
50
  __toDynamicImportESM: any;
53
51
  }
52
+ declare class Module {
53
+ /**
54
+ * @param {string} id
55
+ */
56
+ constructor(id: string);
57
+ /**
58
+ * @type {any}
59
+ */
60
+ exports: any;
61
+ /**
62
+ * @type {string}
63
+ */
64
+ id: string;
65
+ }
66
+ export {};
@@ -1,4 +1,4 @@
1
- import "./shared/binding-Drc5ua4y.cjs";
2
- import { withFilter } from "./shared/define-config-DarysRyQ.cjs";
1
+ import "./shared/binding-D1lW862e.cjs";
2
+ import { withFilter } from "./shared/define-config-QTGzJj6S.cjs";
3
3
  import { and, code, exclude, id, include, moduleType, not, or, queries, query } from "@rolldown/pluginutils";
4
4
  export { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter };
@@ -1,4 +1,4 @@
1
- import "./shared/binding-CCU51T2Z.mjs";
2
- import { withFilter } from "./shared/define-config-BBCw1iOI.mjs";
1
+ import "./shared/binding-BO7hG1pA.mjs";
2
+ import { withFilter } from "./shared/define-config-Dwhdw7Gl.mjs";
3
3
  import { and, code, exclude, id, include, moduleType, not, or, queries, query } from "@rolldown/pluginutils";
4
4
  export { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter };
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
- const require_src = require('./shared/src-CW8YHwuU.cjs');
2
- require('./shared/parse-ast-index-P8896Zx2.cjs');
1
+ const require_src = require('./shared/src-9tzio12N.cjs');
2
+ require('./shared/parse-ast-index-C8M9mL2v.cjs');
3
3
  require('./shared/misc-DksvspN4.cjs');
4
4
 
5
5
  exports.VERSION = require_src.VERSION;
package/dist/index.d.cts CHANGED
@@ -1,3 +1,3 @@
1
- import { PreRenderedChunk } from "./shared/binding-Drc5ua4y.cjs";
2
- import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ChunkingContext, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OptimizationOptions, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch } from "./shared/define-config-DarysRyQ.cjs";
1
+ import { PreRenderedChunk } from "./shared/binding-D1lW862e.cjs";
2
+ import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ChunkingContext, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OptimizationOptions, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch } from "./shared/define-config-QTGzJj6S.cjs";
3
3
  export { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ChunkingContext, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OptimizationOptions, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, PreRenderedChunk, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch };
package/dist/index.d.mts CHANGED
@@ -1,3 +1,3 @@
1
- import { PreRenderedChunk } from "./shared/binding-CCU51T2Z.mjs";
2
- import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ChunkingContext, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OptimizationOptions, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch } from "./shared/define-config-BBCw1iOI.mjs";
1
+ import { PreRenderedChunk } from "./shared/binding-BO7hG1pA.mjs";
2
+ import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ChunkingContext, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OptimizationOptions, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch } from "./shared/define-config-Dwhdw7Gl.mjs";
3
3
  export { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ChunkingContext, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OptimizationOptions, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, PreRenderedChunk, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch };
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import "./shared/parse-ast-index-DMSgO0V6.mjs";
2
- import { VERSION, build, defineConfig, rolldown, watch } from "./shared/src-BFxSfxJH.mjs";
1
+ import "./shared/parse-ast-index-H6yPBJEa.mjs";
2
+ import { VERSION, build, defineConfig, rolldown, watch } from "./shared/src-9SN6aVII.mjs";
3
3
  import "./shared/misc-CQeo-AFx.mjs";
4
4
 
5
5
  export { VERSION, build, defineConfig, rolldown, watch };
@@ -1,6 +1,6 @@
1
1
  const require_chunk = require('./shared/chunk-DDkG_k5U.cjs');
2
- const require_src = require('./shared/src-CW8YHwuU.cjs');
3
- const require_parse_ast_index = require('./shared/parse-ast-index-P8896Zx2.cjs');
2
+ const require_src = require('./shared/src-9tzio12N.cjs');
3
+ const require_parse_ast_index = require('./shared/parse-ast-index-C8M9mL2v.cjs');
4
4
  require('./shared/misc-DksvspN4.cjs');
5
5
  const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
6
6
 
@@ -1,5 +1,5 @@
1
- import { registerPlugins } from "./shared/parse-ast-index-DMSgO0V6.mjs";
2
- import { PluginContextData, bindingifyPlugin } from "./shared/src-BFxSfxJH.mjs";
1
+ import { registerPlugins } from "./shared/parse-ast-index-H6yPBJEa.mjs";
2
+ import { PluginContextData, bindingifyPlugin } from "./shared/src-9SN6aVII.mjs";
3
3
  import "./shared/misc-CQeo-AFx.mjs";
4
4
  import { parentPort, workerData } from "node:worker_threads";
5
5
 
@@ -1,5 +1,5 @@
1
- import "./shared/binding-Drc5ua4y.cjs";
2
- import { MaybePromise, Plugin } from "./shared/define-config-DarysRyQ.cjs";
1
+ import "./shared/binding-D1lW862e.cjs";
2
+ import { MaybePromise, Plugin } from "./shared/define-config-QTGzJj6S.cjs";
3
3
 
4
4
  //#region src/plugin/parallel-plugin-implementation.d.ts
5
5
  type ParallelPluginImplementation = Plugin;
@@ -11,4 +11,4 @@ type Context = {
11
11
  };
12
12
  declare function defineParallelPluginImplementation<Options>(plugin: (Options: Options, context: Context) => MaybePromise<ParallelPluginImplementation>): (Options: Options, context: Context) => MaybePromise<ParallelPluginImplementation>;
13
13
  //#endregion
14
- export { Context, ParallelPluginImplementation, defineParallelPluginImplementation };
14
+ export { type Context, type ParallelPluginImplementation, defineParallelPluginImplementation };
@@ -1,5 +1,5 @@
1
- import "./shared/binding-CCU51T2Z.mjs";
2
- import { MaybePromise, Plugin } from "./shared/define-config-BBCw1iOI.mjs";
1
+ import "./shared/binding-BO7hG1pA.mjs";
2
+ import { MaybePromise, Plugin } from "./shared/define-config-Dwhdw7Gl.mjs";
3
3
 
4
4
  //#region src/plugin/parallel-plugin-implementation.d.ts
5
5
  type ParallelPluginImplementation = Plugin;
@@ -11,4 +11,4 @@ type Context = {
11
11
  };
12
12
  declare function defineParallelPluginImplementation<Options>(plugin: (Options: Options, context: Context) => MaybePromise<ParallelPluginImplementation>): (Options: Options, context: Context) => MaybePromise<ParallelPluginImplementation>;
13
13
  //#endregion
14
- export { Context, ParallelPluginImplementation, defineParallelPluginImplementation };
14
+ export { type Context, type ParallelPluginImplementation, defineParallelPluginImplementation };
@@ -1,4 +1,4 @@
1
- const require_parse_ast_index = require('./shared/parse-ast-index-P8896Zx2.cjs');
1
+ const require_parse_ast_index = require('./shared/parse-ast-index-C8M9mL2v.cjs');
2
2
 
3
3
  exports.parseAst = require_parse_ast_index.parseAst;
4
4
  exports.parseAstAsync = require_parse_ast_index.parseAstAsync;
@@ -1,8 +1,8 @@
1
- import { ParseResult, ParserOptions } from "./shared/binding-Drc5ua4y.cjs";
1
+ import { ParseResult, ParserOptions } from "./shared/binding-D1lW862e.cjs";
2
2
  import { Program } from "@oxc-project/types";
3
3
 
4
4
  //#region src/parse-ast-index.d.ts
5
5
  declare function parseAst(sourceText: string, options?: ParserOptions | undefined | null, filename?: string): Program;
6
6
  declare function parseAstAsync(sourceText: string, options?: ParserOptions | undefined | null, filename?: string): Promise<Program>;
7
7
  //#endregion
8
- export { ParseResult, ParserOptions, parseAst, parseAstAsync };
8
+ export { type ParseResult, type ParserOptions, parseAst, parseAstAsync };
@@ -1,8 +1,8 @@
1
- import { ParseResult, ParserOptions } from "./shared/binding-CCU51T2Z.mjs";
1
+ import { ParseResult, ParserOptions } from "./shared/binding-BO7hG1pA.mjs";
2
2
  import { Program } from "@oxc-project/types";
3
3
 
4
4
  //#region src/parse-ast-index.d.ts
5
5
  declare function parseAst(sourceText: string, options?: ParserOptions | undefined | null, filename?: string): Program;
6
6
  declare function parseAstAsync(sourceText: string, options?: ParserOptions | undefined | null, filename?: string): Promise<Program>;
7
7
  //#endregion
8
- export { ParseResult, ParserOptions, parseAst, parseAstAsync };
8
+ export { type ParseResult, type ParserOptions, parseAst, parseAstAsync };
@@ -1,3 +1,3 @@
1
- import { parseAst, parseAstAsync } from "./shared/parse-ast-index-DMSgO0V6.mjs";
1
+ import { parseAst, parseAstAsync } from "./shared/parse-ast-index-H6yPBJEa.mjs";
2
2
 
3
3
  export { parseAst, parseAstAsync };
@@ -296,6 +296,7 @@ interface NapiResolveOptions {
296
296
  * AliasValue::Path(String)`
297
297
  * Create aliases to import or require certain modules more easily.
298
298
  * A trailing $ can also be added to the given object's keys to signify an exact match.
299
+ * Default `{}`
299
300
  */
300
301
  alias?: Record<string, Array<string | undefined | null>>;
301
302
  /**
@@ -358,7 +359,7 @@ interface NapiResolveOptions {
358
359
  /**
359
360
  * Redirect module requests when normal resolving fails.
360
361
  *
361
- * Default `[]`
362
+ * Default `{}`
362
363
  */
363
364
  fallback?: Record<string, Array<string | undefined | null>>;
364
365
  /**
@@ -296,6 +296,7 @@ interface NapiResolveOptions {
296
296
  * AliasValue::Path(String)`
297
297
  * Create aliases to import or require certain modules more easily.
298
298
  * A trailing $ can also be added to the given object's keys to signify an exact match.
299
+ * Default `{}`
299
300
  */
300
301
  alias?: Record<string, Array<string | undefined | null>>;
301
302
  /**
@@ -358,7 +359,7 @@ interface NapiResolveOptions {
358
359
  /**
359
360
  * Redirect module requests when normal resolving fails.
360
361
  *
361
- * Default `[]`
362
+ * Default `{}`
362
363
  */
363
364
  fallback?: Record<string, Array<string | undefined | null>>;
364
365
  /**
@@ -1,4 +1,4 @@
1
- import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingBundlerImpl, BindingDynamicImportVarsPluginConfig, BindingHmrOutputPatch, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWasmHelperPluginConfig, BindingWatcherEvent, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding-CCU51T2Z.mjs";
1
+ import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingBundlerImpl, BindingDynamicImportVarsPluginConfig, BindingHmrOutputPatch, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWasmHelperPluginConfig, BindingWatcherEvent, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding-BO7hG1pA.mjs";
2
2
  import { TopLevelFilterExpression } from "@rolldown/pluginutils";
3
3
  import { Program } from "@oxc-project/types";
4
4
 
@@ -504,6 +504,7 @@ declare class WatcherEmitter {
504
504
  on(event: "event", listener: (data: RolldownWatcherEvent) => MaybePromise<void>): this;
505
505
  on(event: "restart" | "close", listener: () => MaybePromise<void>): this;
506
506
  off(event: WatcherEvent, listener: (...parameters: any[]) => MaybePromise<void>): this;
507
+ clear(event: WatcherEvent): void;
507
508
  onEvent(event: BindingWatcherEvent): Promise<void>;
508
509
  close(): Promise<void>;
509
510
  }
@@ -983,6 +984,7 @@ interface WatcherOptions {
983
984
  };
984
985
  include?: StringOrRegExp | StringOrRegExp[];
985
986
  exclude?: StringOrRegExp | StringOrRegExp[];
987
+ onInvalidate?: (id: string) => void;
986
988
  }
987
989
  type MakeAbsoluteExternalsRelative = boolean | "ifRelativeSource";
988
990
  type HmrOptions = boolean | {
@@ -1078,6 +1080,12 @@ interface InputOptions {
1078
1080
  * > You shouldn't use `full` in the production build.
1079
1081
  */
1080
1082
  attachDebugInfo?: AttachDebugOptions;
1083
+ chunkImportMap?: boolean;
1084
+ onDemandWrapping?: boolean;
1085
+ /**
1086
+ * Required to be used with `watch` mode.
1087
+ */
1088
+ incrementalBuild?: boolean;
1081
1089
  };
1082
1090
  /**
1083
1091
  * Replace global variables or [property accessors](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Property_accessors) with the provided values.
@@ -1206,4 +1214,4 @@ declare function defineConfig(config: RolldownOptions): RolldownOptions;
1206
1214
  declare function defineConfig(config: RolldownOptions[]): RolldownOptions[];
1207
1215
  declare function defineConfig(config: ConfigExport): ConfigExport;
1208
1216
  //#endregion
1209
- export { AddonFunction, AsyncPluginHooks, BuildOptions, BuiltinPlugin, ChunkFileNamesFunction, ChunkingContext, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MaybePromise, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OptimizationOptions, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, assetPlugin, build, buildImportAnalysisPlugin, defineConfig, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, rolldown, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, watch, webWorkerPostPlugin, withFilter };
1217
+ export { type AddonFunction, type AsyncPluginHooks, type BuildOptions, BuiltinPlugin, type ChunkFileNamesFunction, type ChunkingContext, type ConfigExport, type CustomPluginOptions, type DefineParallelPluginResult, type EmittedAsset, type EmittedFile, type ExistingRawSourceMap, type ExternalOption, type FunctionPluginHooks, type GeneralHookFilter, 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, MaybePromise, 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 PreRenderedAsset, type RenderedChunk, type RenderedModule, type ResolveIdExtraOptions, type ResolveIdResult, type ResolvedId, type RolldownBuild, type RolldownOptions, type RolldownOutput, type RolldownPlugin, type RolldownPluginOption, type RolldownWatcher, type RolldownWatcherEvent, type RollupError, type RollupLog, type RollupLogWithString, type SourceDescription, type SourceMap, type SourceMapInput, type SourcemapIgnoreListOption, type TransformPluginContext, type TransformResult, type TreeshakingOptions, VERSION, type WarningHandlerWithDefault, type WatchOptions, type WatcherOptions, assetPlugin, build, buildImportAnalysisPlugin, defineConfig, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, rolldown, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, watch, webWorkerPostPlugin, withFilter };
@@ -1,4 +1,4 @@
1
- import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingBundlerImpl, BindingDynamicImportVarsPluginConfig, BindingHmrOutputPatch, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWasmHelperPluginConfig, BindingWatcherEvent, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding-Drc5ua4y.cjs";
1
+ import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingBundlerImpl, BindingDynamicImportVarsPluginConfig, BindingHmrOutputPatch, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWasmHelperPluginConfig, BindingWatcherEvent, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding-D1lW862e.cjs";
2
2
  import { Program } from "@oxc-project/types";
3
3
  import { TopLevelFilterExpression } from "@rolldown/pluginutils";
4
4
 
@@ -504,6 +504,7 @@ declare class WatcherEmitter {
504
504
  on(event: "event", listener: (data: RolldownWatcherEvent) => MaybePromise<void>): this;
505
505
  on(event: "restart" | "close", listener: () => MaybePromise<void>): this;
506
506
  off(event: WatcherEvent, listener: (...parameters: any[]) => MaybePromise<void>): this;
507
+ clear(event: WatcherEvent): void;
507
508
  onEvent(event: BindingWatcherEvent): Promise<void>;
508
509
  close(): Promise<void>;
509
510
  }
@@ -983,6 +984,7 @@ interface WatcherOptions {
983
984
  };
984
985
  include?: StringOrRegExp | StringOrRegExp[];
985
986
  exclude?: StringOrRegExp | StringOrRegExp[];
987
+ onInvalidate?: (id: string) => void;
986
988
  }
987
989
  type MakeAbsoluteExternalsRelative = boolean | "ifRelativeSource";
988
990
  type HmrOptions = boolean | {
@@ -1078,6 +1080,12 @@ interface InputOptions {
1078
1080
  * > You shouldn't use `full` in the production build.
1079
1081
  */
1080
1082
  attachDebugInfo?: AttachDebugOptions;
1083
+ chunkImportMap?: boolean;
1084
+ onDemandWrapping?: boolean;
1085
+ /**
1086
+ * Required to be used with `watch` mode.
1087
+ */
1088
+ incrementalBuild?: boolean;
1081
1089
  };
1082
1090
  /**
1083
1091
  * Replace global variables or [property accessors](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Property_accessors) with the provided values.
@@ -1206,4 +1214,4 @@ declare function defineConfig(config: RolldownOptions): RolldownOptions;
1206
1214
  declare function defineConfig(config: RolldownOptions[]): RolldownOptions[];
1207
1215
  declare function defineConfig(config: ConfigExport): ConfigExport;
1208
1216
  //#endregion
1209
- export { AddonFunction, AsyncPluginHooks, BuildOptions, BuiltinPlugin, ChunkFileNamesFunction, ChunkingContext, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MaybePromise, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OptimizationOptions, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, assetPlugin, build, buildImportAnalysisPlugin, defineConfig, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, rolldown, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, watch, webWorkerPostPlugin, withFilter };
1217
+ export { type AddonFunction, type AsyncPluginHooks, type BuildOptions, BuiltinPlugin, type ChunkFileNamesFunction, type ChunkingContext, type ConfigExport, type CustomPluginOptions, type DefineParallelPluginResult, type EmittedAsset, type EmittedFile, type ExistingRawSourceMap, type ExternalOption, type FunctionPluginHooks, type GeneralHookFilter, 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, MaybePromise, 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 PreRenderedAsset, type RenderedChunk, type RenderedModule, type ResolveIdExtraOptions, type ResolveIdResult, type ResolvedId, type RolldownBuild, type RolldownOptions, type RolldownOutput, type RolldownPlugin, type RolldownPluginOption, type RolldownWatcher, type RolldownWatcherEvent, type RollupError, type RollupLog, type RollupLogWithString, type SourceDescription, type SourceMap, type SourceMapInput, type SourcemapIgnoreListOption, type TransformPluginContext, type TransformResult, type TreeshakingOptions, VERSION, type WarningHandlerWithDefault, type WatchOptions, type WatcherOptions, assetPlugin, build, buildImportAnalysisPlugin, defineConfig, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, rolldown, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, watch, webWorkerPostPlugin, withFilter };
@@ -1,4 +1,4 @@
1
- import { rolldown } from "./src-BFxSfxJH.mjs";
1
+ import { rolldown } from "./src-9SN6aVII.mjs";
2
2
  import fs from "node:fs";
3
3
  import path from "node:path";
4
4
  import { pathToFileURL } from "node:url";
@@ -1,5 +1,5 @@
1
1
  const require_chunk = require('./chunk-DDkG_k5U.cjs');
2
- const require_src = require('./src-CW8YHwuU.cjs');
2
+ const require_src = require('./src-9tzio12N.cjs');
3
3
  const node_fs = require_chunk.__toESM(require("node:fs"));
4
4
  const node_path = require_chunk.__toESM(require("node:path"));
5
5
  const node_url = require_chunk.__toESM(require("node:url"));
@@ -549,7 +549,7 @@ function augmentCodeLocation(properties, pos, source, id) {
549
549
  }
550
550
 
551
551
  //#endregion
552
- //#region ../../node_modules/.pnpm/oxc-parser@0.77.0/node_modules/oxc-parser/wrap.mjs
552
+ //#region ../../node_modules/.pnpm/oxc-parser@0.77.2/node_modules/oxc-parser/wrap.mjs
553
553
  function wrap$1(result) {
554
554
  let program, module$1, comments, errors;
555
555
  return {
@@ -576,7 +576,7 @@ function augmentCodeLocation(properties, pos, source, id) {
576
576
  }
577
577
 
578
578
  //#endregion
579
- //#region ../../node_modules/.pnpm/oxc-parser@0.77.0/node_modules/oxc-parser/wrap.mjs
579
+ //#region ../../node_modules/.pnpm/oxc-parser@0.77.2/node_modules/oxc-parser/wrap.mjs
580
580
  function wrap$1(result) {
581
581
  let program, module$1, comments, errors;
582
582
  return {
@@ -1,4 +1,4 @@
1
- import { BindingAttachDebugInfo, BindingBundler, BindingCallableBuiltinPlugin, BindingChunkModuleOrderBy, BindingJsx, BindingLogLevel, BindingPluginOrder, BindingWatcher, ParallelJsPluginRegistry, augmentCodeLocation, error, logCycleLoading, logDuplicateJsxConfig, logInputHookInOutputPlugin, logInvalidLogPosition, logMultiplyNotifyOption, logPluginError, parseAst, shutdownAsyncRuntime, startAsyncRuntime } from "./parse-ast-index-DMSgO0V6.mjs";
1
+ import { BindingAttachDebugInfo, BindingBundler, BindingCallableBuiltinPlugin, BindingChunkModuleOrderBy, BindingJsx, BindingLogLevel, BindingPluginOrder, BindingWatcher, ParallelJsPluginRegistry, augmentCodeLocation, error, logCycleLoading, logDuplicateJsxConfig, logInputHookInOutputPlugin, logInvalidLogPosition, logMultiplyNotifyOption, logPluginError, parseAst, shutdownAsyncRuntime, startAsyncRuntime } from "./parse-ast-index-H6yPBJEa.mjs";
2
2
  import { arraify, noop, unimplemented, unreachable, unsupported } from "./misc-CQeo-AFx.mjs";
3
3
  import path from "node:path";
4
4
  import { fileURLToPath } from "node:url";
@@ -8,7 +8,7 @@ import os from "node:os";
8
8
  import { Worker } from "node:worker_threads";
9
9
 
10
10
  //#region package.json
11
- var version = "1.0.0-beta.27";
11
+ var version = "1.0.0-beta.28-commit.cd50e5f";
12
12
  var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
13
13
 
14
14
  //#endregion
@@ -2044,13 +2044,16 @@ const InputOptionsSchema = strictObject({
2044
2044
  viteMode: optional(boolean()),
2045
2045
  resolveNewUrlToAsset: optional(boolean()),
2046
2046
  strictExecutionOrder: optional(boolean()),
2047
+ onDemandWrapping: optional(boolean()),
2048
+ incrementalBuild: optional(boolean()),
2047
2049
  hmr: optional(HmrSchema),
2048
2050
  attachDebugInfo: optional(union([
2049
2051
  literal("none"),
2050
2052
  literal("simple"),
2051
2053
  literal("full")
2052
2054
  ])),
2053
- chunkModulesOrder: optional(union([literal("module-id"), literal("exec-order")]))
2055
+ chunkModulesOrder: optional(union([literal("module-id"), literal("exec-order")])),
2056
+ chunkImportMap: optional(boolean())
2054
2057
  })),
2055
2058
  define: pipe(optional(record(string(), string())), description("Define global variables")),
2056
2059
  inject: optional(record(string(), union([string(), tuple([string(), string()])]))),
@@ -2377,7 +2380,7 @@ function normalizeTransformHookSourcemap(id, originalCode, rawMap) {
2377
2380
  }
2378
2381
 
2379
2382
  //#endregion
2380
- //#region ../../node_modules/.pnpm/remeda@2.24.0/node_modules/remeda/dist/chunk-D6FCK2GA.js
2383
+ //#region ../../node_modules/.pnpm/remeda@2.25.0/node_modules/remeda/dist/chunk-D6FCK2GA.js
2381
2384
  function u$1(o, n, a) {
2382
2385
  let t = (r) => o(r, ...n);
2383
2386
  return a === void 0 ? t : Object.assign(t, {
@@ -2387,7 +2390,7 @@ function u$1(o, n, a) {
2387
2390
  }
2388
2391
 
2389
2392
  //#endregion
2390
- //#region ../../node_modules/.pnpm/remeda@2.24.0/node_modules/remeda/dist/chunk-WIMGWYZL.js
2393
+ //#region ../../node_modules/.pnpm/remeda@2.25.0/node_modules/remeda/dist/chunk-WIMGWYZL.js
2391
2394
  function u(r, n, o) {
2392
2395
  let a = r.length - n.length;
2393
2396
  if (a === 0) return r(...n);
@@ -2396,7 +2399,7 @@ function u(r, n, o) {
2396
2399
  }
2397
2400
 
2398
2401
  //#endregion
2399
- //#region ../../node_modules/.pnpm/remeda@2.24.0/node_modules/remeda/dist/chunk-3IFJP4R5.js
2402
+ //#region ../../node_modules/.pnpm/remeda@2.25.0/node_modules/remeda/dist/chunk-3IFJP4R5.js
2400
2403
  function d(...r) {
2401
2404
  return u(i, r);
2402
2405
  }
@@ -3910,11 +3913,14 @@ function bindingifyExperimental(experimental) {
3910
3913
  resolveNewUrlToAsset: experimental?.resolveNewUrlToAsset,
3911
3914
  hmr: bindingifyHmr(experimental?.hmr),
3912
3915
  attachDebugInfo: bindingifyAttachDebugInfo(experimental?.attachDebugInfo),
3913
- chunkModulesOrder
3916
+ chunkModulesOrder,
3917
+ chunkImportMap: experimental?.chunkImportMap,
3918
+ onDemandWrapping: experimental?.onDemandWrapping,
3919
+ incrementalBuild: experimental?.incrementalBuild
3914
3920
  };
3915
3921
  }
3916
3922
  function bindingifyResolve(resolve) {
3917
- const yarnPnp = typeof process === "object" && !!process.versions.pnp;
3923
+ const yarnPnp = typeof process === "object" && !!process.versions?.pnp;
3918
3924
  if (resolve) {
3919
3925
  const { alias, extensionAlias,...rest } = resolve;
3920
3926
  return {
@@ -4018,7 +4024,8 @@ function bindingifyWatch(watch$1) {
4018
4024
  buildDelay: watch$1.buildDelay,
4019
4025
  skipWrite: watch$1.skipWrite,
4020
4026
  include: normalizedStringOrRegex(watch$1.include),
4021
- exclude: normalizedStringOrRegex(watch$1.exclude)
4027
+ exclude: normalizedStringOrRegex(watch$1.exclude),
4028
+ onInvalidate: (...args$1) => watch$1.onInvalidate?.(...args$1)
4022
4029
  };
4023
4030
  }
4024
4031
  function bindingifyTreeshakeOptions(config) {
@@ -4288,6 +4295,9 @@ var WatcherEmitter = class {
4288
4295
  }
4289
4296
  return this;
4290
4297
  }
4298
+ clear(event) {
4299
+ if (this.listeners.has(event)) this.listeners.delete(event);
4300
+ }
4291
4301
  async onEvent(event) {
4292
4302
  const listeners = this.listeners.get(event.eventKind());
4293
4303
  if (listeners) switch (event.eventKind()) {
@@ -1,5 +1,5 @@
1
1
  const require_chunk = require('./chunk-DDkG_k5U.cjs');
2
- const require_parse_ast_index = require('./parse-ast-index-P8896Zx2.cjs');
2
+ const require_parse_ast_index = require('./parse-ast-index-C8M9mL2v.cjs');
3
3
  const require_misc = require('./misc-DksvspN4.cjs');
4
4
  const node_path = require_chunk.__toESM(require("node:path"));
5
5
  const node_url = require_chunk.__toESM(require("node:url"));
@@ -9,7 +9,7 @@ const node_os = require_chunk.__toESM(require("node:os"));
9
9
  const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
10
10
 
11
11
  //#region package.json
12
- var version = "1.0.0-beta.27";
12
+ var version = "1.0.0-beta.28-commit.cd50e5f";
13
13
  var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
14
14
 
15
15
  //#endregion
@@ -2045,13 +2045,16 @@ const InputOptionsSchema = strictObject({
2045
2045
  viteMode: optional(boolean()),
2046
2046
  resolveNewUrlToAsset: optional(boolean()),
2047
2047
  strictExecutionOrder: optional(boolean()),
2048
+ onDemandWrapping: optional(boolean()),
2049
+ incrementalBuild: optional(boolean()),
2048
2050
  hmr: optional(HmrSchema),
2049
2051
  attachDebugInfo: optional(union([
2050
2052
  literal("none"),
2051
2053
  literal("simple"),
2052
2054
  literal("full")
2053
2055
  ])),
2054
- chunkModulesOrder: optional(union([literal("module-id"), literal("exec-order")]))
2056
+ chunkModulesOrder: optional(union([literal("module-id"), literal("exec-order")])),
2057
+ chunkImportMap: optional(boolean())
2055
2058
  })),
2056
2059
  define: pipe(optional(record(string(), string())), description("Define global variables")),
2057
2060
  inject: optional(record(string(), union([string(), tuple([string(), string()])]))),
@@ -2378,7 +2381,7 @@ function normalizeTransformHookSourcemap(id, originalCode, rawMap) {
2378
2381
  }
2379
2382
 
2380
2383
  //#endregion
2381
- //#region ../../node_modules/.pnpm/remeda@2.24.0/node_modules/remeda/dist/chunk-D6FCK2GA.js
2384
+ //#region ../../node_modules/.pnpm/remeda@2.25.0/node_modules/remeda/dist/chunk-D6FCK2GA.js
2382
2385
  function u$1(o, n, a) {
2383
2386
  let t = (r) => o(r, ...n);
2384
2387
  return a === void 0 ? t : Object.assign(t, {
@@ -2388,7 +2391,7 @@ function u$1(o, n, a) {
2388
2391
  }
2389
2392
 
2390
2393
  //#endregion
2391
- //#region ../../node_modules/.pnpm/remeda@2.24.0/node_modules/remeda/dist/chunk-WIMGWYZL.js
2394
+ //#region ../../node_modules/.pnpm/remeda@2.25.0/node_modules/remeda/dist/chunk-WIMGWYZL.js
2392
2395
  function u(r, n, o) {
2393
2396
  let a = r.length - n.length;
2394
2397
  if (a === 0) return r(...n);
@@ -2397,7 +2400,7 @@ function u(r, n, o) {
2397
2400
  }
2398
2401
 
2399
2402
  //#endregion
2400
- //#region ../../node_modules/.pnpm/remeda@2.24.0/node_modules/remeda/dist/chunk-3IFJP4R5.js
2403
+ //#region ../../node_modules/.pnpm/remeda@2.25.0/node_modules/remeda/dist/chunk-3IFJP4R5.js
2401
2404
  function d(...r) {
2402
2405
  return u(i, r);
2403
2406
  }
@@ -3911,11 +3914,14 @@ function bindingifyExperimental(experimental) {
3911
3914
  resolveNewUrlToAsset: experimental?.resolveNewUrlToAsset,
3912
3915
  hmr: bindingifyHmr(experimental?.hmr),
3913
3916
  attachDebugInfo: bindingifyAttachDebugInfo(experimental?.attachDebugInfo),
3914
- chunkModulesOrder
3917
+ chunkModulesOrder,
3918
+ chunkImportMap: experimental?.chunkImportMap,
3919
+ onDemandWrapping: experimental?.onDemandWrapping,
3920
+ incrementalBuild: experimental?.incrementalBuild
3915
3921
  };
3916
3922
  }
3917
3923
  function bindingifyResolve(resolve) {
3918
- const yarnPnp = typeof process === "object" && !!process.versions.pnp;
3924
+ const yarnPnp = typeof process === "object" && !!process.versions?.pnp;
3919
3925
  if (resolve) {
3920
3926
  const { alias, extensionAlias,...rest } = resolve;
3921
3927
  return {
@@ -4019,7 +4025,8 @@ function bindingifyWatch(watch$1) {
4019
4025
  buildDelay: watch$1.buildDelay,
4020
4026
  skipWrite: watch$1.skipWrite,
4021
4027
  include: normalizedStringOrRegex(watch$1.include),
4022
- exclude: normalizedStringOrRegex(watch$1.exclude)
4028
+ exclude: normalizedStringOrRegex(watch$1.exclude),
4029
+ onInvalidate: (...args$1) => watch$1.onInvalidate?.(...args$1)
4023
4030
  };
4024
4031
  }
4025
4032
  function bindingifyTreeshakeOptions(config) {
@@ -4289,6 +4296,9 @@ var WatcherEmitter = class {
4289
4296
  }
4290
4297
  return this;
4291
4298
  }
4299
+ clear(event) {
4300
+ if (this.listeners.has(event)) this.listeners.delete(event);
4301
+ }
4292
4302
  async onEvent(event) {
4293
4303
  const listeners = this.listeners.get(event.eventKind());
4294
4304
  if (listeners) switch (event.eventKind()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rolldown",
3
- "version": "1.0.0-beta.27",
3
+ "version": "1.0.0-beta.28-commit.cd50e5f",
4
4
  "description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
5
5
  "type": "module",
6
6
  "homepage": "https://rolldown.rs/",
@@ -31,28 +31,28 @@
31
31
  "types": "./dist/index.d.cts",
32
32
  "exports": {
33
33
  ".": {
34
- "require": "./dist/index.cjs",
35
- "import": "./dist/index.mjs"
34
+ "import": "./dist/index.mjs",
35
+ "require": "./dist/index.cjs"
36
36
  },
37
37
  "./config": {
38
- "require": "./dist/config.cjs",
39
- "import": "./dist/config.mjs"
38
+ "import": "./dist/config.mjs",
39
+ "require": "./dist/config.cjs"
40
40
  },
41
41
  "./experimental": {
42
- "require": "./dist/experimental-index.cjs",
43
- "import": "./dist/experimental-index.mjs"
42
+ "import": "./dist/experimental-index.mjs",
43
+ "require": "./dist/experimental-index.cjs"
44
44
  },
45
45
  "./filter": {
46
- "require": "./dist/filter-index.cjs",
47
- "import": "./dist/filter-index.mjs"
46
+ "import": "./dist/filter-index.mjs",
47
+ "require": "./dist/filter-index.cjs"
48
48
  },
49
49
  "./parallelPlugin": {
50
- "require": "./dist/parallel-plugin.cjs",
51
- "import": "./dist/parallel-plugin.mjs"
50
+ "import": "./dist/parallel-plugin.mjs",
51
+ "require": "./dist/parallel-plugin.cjs"
52
52
  },
53
53
  "./parseAst": {
54
- "require": "./dist/parse-ast-index.cjs",
55
- "import": "./dist/parse-ast-index.mjs"
54
+ "import": "./dist/parse-ast-index.mjs",
55
+ "require": "./dist/parse-ast-index.cjs"
56
56
  },
57
57
  "./package.json": "./package.json"
58
58
  },
@@ -92,13 +92,13 @@
92
92
  "dtsHeader": "type MaybePromise<T> = T | Promise<T>\ntype Nullable<T> = T | null | undefined\ntype VoidNullable<T = void> = T | null | undefined | void\nexport type BindingStringOrRegex = string | RegExp\n\n"
93
93
  },
94
94
  "dependencies": {
95
- "@oxc-project/runtime": "=0.77.0",
96
- "@oxc-project/types": "=0.77.0",
95
+ "@oxc-project/runtime": "=0.77.2",
96
+ "@oxc-project/types": "=0.77.2",
97
97
  "ansis": "^4.0.0",
98
- "@rolldown/pluginutils": "1.0.0-beta.27"
98
+ "@rolldown/pluginutils": "1.0.0-beta.28-commit.cd50e5f"
99
99
  },
100
100
  "devDependencies": {
101
- "@napi-rs/cli": "^3.0.0-alpha.99",
101
+ "@napi-rs/cli": "^3.0.0",
102
102
  "@napi-rs/wasm-runtime": "^0.2.10",
103
103
  "@oxc-node/cli": "^0.0.29",
104
104
  "@rollup/plugin-json": "^6.1.0",
@@ -108,7 +108,7 @@
108
108
  "emnapi": "^1.2.0",
109
109
  "execa": "^9.2.0",
110
110
  "glob": "^11.0.0",
111
- "oxc-parser": "=0.77.0",
111
+ "oxc-parser": "=0.77.2",
112
112
  "pathe": "^2.0.3",
113
113
  "remeda": "^2.10.0",
114
114
  "rolldown-plugin-dts": "^0.13.6",
@@ -120,23 +120,23 @@
120
120
  "typescript": "^5.7.3",
121
121
  "valibot": "1.1.0",
122
122
  "@rolldown/testing": "0.0.1",
123
- "rolldown": "1.0.0-beta.27"
123
+ "rolldown": "1.0.0-beta.28-commit.cd50e5f"
124
124
  },
125
125
  "optionalDependencies": {
126
- "@rolldown/binding-darwin-x64": "1.0.0-beta.27",
127
- "@rolldown/binding-win32-x64-msvc": "1.0.0-beta.27",
128
- "@rolldown/binding-linux-x64-gnu": "1.0.0-beta.27",
129
- "@rolldown/binding-linux-x64-musl": "1.0.0-beta.27",
130
- "@rolldown/binding-freebsd-x64": "1.0.0-beta.27",
131
- "@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.27",
132
- "@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.27",
133
- "@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.27",
134
- "@rolldown/binding-darwin-arm64": "1.0.0-beta.27",
135
- "@rolldown/binding-linux-arm64-musl": "1.0.0-beta.27",
136
- "@rolldown/binding-linux-arm64-ohos": "1.0.0-beta.27",
137
- "@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.27",
138
- "@rolldown/binding-android-arm64": "1.0.0-beta.27",
139
- "@rolldown/binding-wasm32-wasi": "1.0.0-beta.27"
126
+ "@rolldown/binding-darwin-x64": "1.0.0-beta.28-commit.cd50e5f",
127
+ "@rolldown/binding-win32-x64-msvc": "1.0.0-beta.28-commit.cd50e5f",
128
+ "@rolldown/binding-linux-x64-gnu": "1.0.0-beta.28-commit.cd50e5f",
129
+ "@rolldown/binding-linux-x64-musl": "1.0.0-beta.28-commit.cd50e5f",
130
+ "@rolldown/binding-freebsd-x64": "1.0.0-beta.28-commit.cd50e5f",
131
+ "@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.28-commit.cd50e5f",
132
+ "@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.28-commit.cd50e5f",
133
+ "@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.28-commit.cd50e5f",
134
+ "@rolldown/binding-darwin-arm64": "1.0.0-beta.28-commit.cd50e5f",
135
+ "@rolldown/binding-linux-arm64-musl": "1.0.0-beta.28-commit.cd50e5f",
136
+ "@rolldown/binding-linux-arm64-ohos": "1.0.0-beta.28-commit.cd50e5f",
137
+ "@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.28-commit.cd50e5f",
138
+ "@rolldown/binding-android-arm64": "1.0.0-beta.28-commit.cd50e5f",
139
+ "@rolldown/binding-wasm32-wasi": "1.0.0-beta.28-commit.cd50e5f"
140
140
  },
141
141
  "scripts": {
142
142
  "# Scrips for binding #": "_",
@@ -149,7 +149,7 @@
149
149
  "# Scrips for node #": "_",
150
150
  "build-node": "tsx -C dev ./build.ts",
151
151
  "build-types-check": "tsc -p ./tsconfig.check.json",
152
- "build-js-glue": "pnpm run --sequential '/^build-(types|node|types-check)$/'",
152
+ "build-js-glue": "pnpm run --sequential '/^build-(node|types-check)$/'",
153
153
  "build-native:debug": "pnpm run --sequential '/^build-(binding|js-glue)$/'",
154
154
  "build-native:release": "pnpm run --sequential '/^build-(binding:release|js-glue)$/'",
155
155
  "build-native:memory-profile": "pnpm run --sequential '/^build-(binding:memory-profile|js-glue)$/'",