rolldown 1.0.0-beta.28 → 1.0.0-beta.28-commit.aaef991

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.cjs +5 -5
  2. package/dist/cli.mjs +5 -5
  3. package/dist/config.cjs +3 -3
  4. package/dist/config.d.cts +1 -1
  5. package/dist/config.d.mts +1 -1
  6. package/dist/config.mjs +3 -3
  7. package/dist/experimental-index.cjs +2 -2
  8. package/dist/experimental-index.d.cts +1 -1
  9. package/dist/experimental-index.d.mts +1 -1
  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 +1 -1
  13. package/dist/filter-index.d.mts +1 -1
  14. package/dist/index.cjs +2 -2
  15. package/dist/index.d.cts +1 -1
  16. package/dist/index.d.mts +1 -1
  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 +1 -1
  21. package/dist/parallel-plugin.d.mts +1 -1
  22. package/dist/parse-ast-index.cjs +1 -1
  23. package/dist/parse-ast-index.mjs +1 -1
  24. package/dist/shared/{define-config-Dwhdw7Gl.d.mts → define-config-BVyR1lP8.d.mts} +1 -0
  25. package/dist/shared/{define-config-QTGzJj6S.d.cts → define-config-DQ-fbTm4.d.cts} +1 -0
  26. package/dist/shared/{load-config-CGXgmiNz.mjs → load-config-CKSpuYsF.mjs} +1 -1
  27. package/dist/shared/{load-config-DTTalw0o.cjs → load-config-Uc0RxXBP.cjs} +1 -1
  28. package/dist/shared/{parse-ast-index-C8M9mL2v.cjs → parse-ast-index-Bs4K-DpJ.cjs} +1 -1
  29. package/dist/shared/{parse-ast-index-H6yPBJEa.mjs → parse-ast-index-COssK1X5.mjs} +1 -1
  30. package/dist/shared/{src-DwmLx1--.cjs → src-0y6R3KY2.cjs} +5 -5
  31. package/dist/shared/{src-C7FldEpH.mjs → src-DxmazPah.mjs} +5 -5
  32. package/package.json +24 -24
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-DwmLx1--.cjs');
3
- require('./shared/parse-ast-index-C8M9mL2v.cjs');
2
+ const require_src = require('./shared/src-0y6R3KY2.cjs');
3
+ require('./shared/parse-ast-index-Bs4K-DpJ.cjs');
4
4
  const require_misc = require('./shared/misc-DksvspN4.cjs');
5
- const require_load_config = require('./shared/load-config-DTTalw0o.cjs');
5
+ const require_load_config = require('./shared/load-config-Uc0RxXBP.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.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) {
1427
+ //#region ../../node_modules/.pnpm/@oxc-project+runtime@0.77.3/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js
1428
+ var require_usingCtx = require_chunk.__commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.77.3/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-H6yPBJEa.mjs";
2
- import { description, getInputCliKeys, getJsonSchema, getOutputCliKeys, rolldown, validateCliOptions, version, watch } from "./shared/src-C7FldEpH.mjs";
1
+ import { __commonJS, __toESM } from "./shared/parse-ast-index-COssK1X5.mjs";
2
+ import { description, getInputCliKeys, getJsonSchema, getOutputCliKeys, rolldown, validateCliOptions, version, watch } from "./shared/src-DxmazPah.mjs";
3
3
  import { arraify } from "./shared/misc-CQeo-AFx.mjs";
4
- import { loadConfig } from "./shared/load-config-CGXgmiNz.mjs";
4
+ import { loadConfig } from "./shared/load-config-CKSpuYsF.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.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) {
1426
+ //#region ../../node_modules/.pnpm/@oxc-project+runtime@0.77.3/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js
1427
+ var require_usingCtx = __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.77.3/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-DwmLx1--.cjs');
2
- require('./shared/parse-ast-index-C8M9mL2v.cjs');
1
+ const require_src = require('./shared/src-0y6R3KY2.cjs');
2
+ require('./shared/parse-ast-index-Bs4K-DpJ.cjs');
3
3
  require('./shared/misc-DksvspN4.cjs');
4
- const require_load_config = require('./shared/load-config-DTTalw0o.cjs');
4
+ const require_load_config = require('./shared/load-config-Uc0RxXBP.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
1
  import "./shared/binding-D1lW862e.cjs";
2
- import { ConfigExport, defineConfig } from "./shared/define-config-QTGzJj6S.cjs";
2
+ import { ConfigExport, defineConfig } from "./shared/define-config-DQ-fbTm4.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
1
  import "./shared/binding-BO7hG1pA.mjs";
2
- import { ConfigExport, defineConfig } from "./shared/define-config-Dwhdw7Gl.mjs";
2
+ import { ConfigExport, defineConfig } from "./shared/define-config-BVyR1lP8.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-H6yPBJEa.mjs";
2
- import { defineConfig, version } from "./shared/src-C7FldEpH.mjs";
1
+ import "./shared/parse-ast-index-COssK1X5.mjs";
2
+ import { defineConfig, version } from "./shared/src-DxmazPah.mjs";
3
3
  import "./shared/misc-CQeo-AFx.mjs";
4
- import { loadConfig } from "./shared/load-config-CGXgmiNz.mjs";
4
+ import { loadConfig } from "./shared/load-config-CKSpuYsF.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-DwmLx1--.cjs');
3
- const require_parse_ast_index = require('./shared/parse-ast-index-C8M9mL2v.cjs');
2
+ const require_src = require('./shared/src-0y6R3KY2.cjs');
3
+ const require_parse_ast_index = require('./shared/parse-ast-index-Bs4K-DpJ.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
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";
2
+ import { BuiltinPlugin, InputOptions, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config-DQ-fbTm4.cjs";
3
3
 
4
4
  //#region src/api/experimental.d.ts
5
5
 
@@ -1,5 +1,5 @@
1
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";
2
+ import { BuiltinPlugin, InputOptions, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config-BVyR1lP8.mjs";
3
3
 
4
4
  //#region src/api/experimental.d.ts
5
5
 
@@ -1,5 +1,5 @@
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-C7FldEpH.mjs";
1
+ import { BindingBundler, ResolverFactory, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/parse-ast-index-COssK1X5.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-DxmazPah.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
1
  import "./shared/binding-D1lW862e.cjs";
2
- import { withFilter } from "./shared/define-config-QTGzJj6S.cjs";
2
+ import { withFilter } from "./shared/define-config-DQ-fbTm4.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
1
  import "./shared/binding-BO7hG1pA.mjs";
2
- import { withFilter } from "./shared/define-config-Dwhdw7Gl.mjs";
2
+ import { withFilter } from "./shared/define-config-BVyR1lP8.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-DwmLx1--.cjs');
2
- require('./shared/parse-ast-index-C8M9mL2v.cjs');
1
+ const require_src = require('./shared/src-0y6R3KY2.cjs');
2
+ require('./shared/parse-ast-index-Bs4K-DpJ.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
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";
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-DQ-fbTm4.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
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";
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-BVyR1lP8.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-H6yPBJEa.mjs";
2
- import { VERSION, build, defineConfig, rolldown, watch } from "./shared/src-C7FldEpH.mjs";
1
+ import "./shared/parse-ast-index-COssK1X5.mjs";
2
+ import { VERSION, build, defineConfig, rolldown, watch } from "./shared/src-DxmazPah.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-DwmLx1--.cjs');
3
- const require_parse_ast_index = require('./shared/parse-ast-index-C8M9mL2v.cjs');
2
+ const require_src = require('./shared/src-0y6R3KY2.cjs');
3
+ const require_parse_ast_index = require('./shared/parse-ast-index-Bs4K-DpJ.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-H6yPBJEa.mjs";
2
- import { PluginContextData, bindingifyPlugin } from "./shared/src-C7FldEpH.mjs";
1
+ import { registerPlugins } from "./shared/parse-ast-index-COssK1X5.mjs";
2
+ import { PluginContextData, bindingifyPlugin } from "./shared/src-DxmazPah.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
1
  import "./shared/binding-D1lW862e.cjs";
2
- import { MaybePromise, Plugin } from "./shared/define-config-QTGzJj6S.cjs";
2
+ import { MaybePromise, Plugin } from "./shared/define-config-DQ-fbTm4.cjs";
3
3
 
4
4
  //#region src/plugin/parallel-plugin-implementation.d.ts
5
5
  type ParallelPluginImplementation = Plugin;
@@ -1,5 +1,5 @@
1
1
  import "./shared/binding-BO7hG1pA.mjs";
2
- import { MaybePromise, Plugin } from "./shared/define-config-Dwhdw7Gl.mjs";
2
+ import { MaybePromise, Plugin } from "./shared/define-config-BVyR1lP8.mjs";
3
3
 
4
4
  //#region src/plugin/parallel-plugin-implementation.d.ts
5
5
  type ParallelPluginImplementation = Plugin;
@@ -1,4 +1,4 @@
1
- const require_parse_ast_index = require('./shared/parse-ast-index-C8M9mL2v.cjs');
1
+ const require_parse_ast_index = require('./shared/parse-ast-index-Bs4K-DpJ.cjs');
2
2
 
3
3
  exports.parseAst = require_parse_ast_index.parseAst;
4
4
  exports.parseAstAsync = require_parse_ast_index.parseAstAsync;
@@ -1,3 +1,3 @@
1
- import { parseAst, parseAstAsync } from "./shared/parse-ast-index-H6yPBJEa.mjs";
1
+ import { parseAst, parseAstAsync } from "./shared/parse-ast-index-COssK1X5.mjs";
2
2
 
3
3
  export { parseAst, parseAstAsync };
@@ -1086,6 +1086,7 @@ interface InputOptions {
1086
1086
  * Required to be used with `watch` mode.
1087
1087
  */
1088
1088
  incrementalBuild?: boolean;
1089
+ transformHiresSourcemap?: boolean | "boundary";
1089
1090
  };
1090
1091
  /**
1091
1092
  * Replace global variables or [property accessors](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Property_accessors) with the provided values.
@@ -1086,6 +1086,7 @@ interface InputOptions {
1086
1086
  * Required to be used with `watch` mode.
1087
1087
  */
1088
1088
  incrementalBuild?: boolean;
1089
+ transformHiresSourcemap?: boolean | "boundary";
1089
1090
  };
1090
1091
  /**
1091
1092
  * Replace global variables or [property accessors](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Property_accessors) with the provided values.
@@ -1,4 +1,4 @@
1
- import { rolldown } from "./src-C7FldEpH.mjs";
1
+ import { rolldown } from "./src-DxmazPah.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-DwmLx1--.cjs');
2
+ const require_src = require('./src-0y6R3KY2.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.2/node_modules/oxc-parser/wrap.mjs
552
+ //#region ../../node_modules/.pnpm/oxc-parser@0.77.3/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.2/node_modules/oxc-parser/wrap.mjs
579
+ //#region ../../node_modules/.pnpm/oxc-parser@0.77.3/node_modules/oxc-parser/wrap.mjs
580
580
  function wrap$1(result) {
581
581
  let program, module$1, comments, errors;
582
582
  return {
@@ -1,5 +1,5 @@
1
1
  const require_chunk = require('./chunk-DDkG_k5U.cjs');
2
- const require_parse_ast_index = require('./parse-ast-index-C8M9mL2v.cjs');
2
+ const require_parse_ast_index = require('./parse-ast-index-Bs4K-DpJ.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.28";
12
+ var version = "1.0.0-beta.28-commit.aaef991";
13
13
  var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
14
14
 
15
15
  //#endregion
@@ -2381,7 +2381,7 @@ function normalizeTransformHookSourcemap(id, originalCode, rawMap) {
2381
2381
  }
2382
2382
 
2383
2383
  //#endregion
2384
- //#region ../../node_modules/.pnpm/remeda@2.25.0/node_modules/remeda/dist/chunk-D6FCK2GA.js
2384
+ //#region ../../node_modules/.pnpm/remeda@2.26.1/node_modules/remeda/dist/chunk-D6FCK2GA.js
2385
2385
  function u$1(o, n, a) {
2386
2386
  let t = (r) => o(r, ...n);
2387
2387
  return a === void 0 ? t : Object.assign(t, {
@@ -2391,7 +2391,7 @@ function u$1(o, n, a) {
2391
2391
  }
2392
2392
 
2393
2393
  //#endregion
2394
- //#region ../../node_modules/.pnpm/remeda@2.25.0/node_modules/remeda/dist/chunk-WIMGWYZL.js
2394
+ //#region ../../node_modules/.pnpm/remeda@2.26.1/node_modules/remeda/dist/chunk-WIMGWYZL.js
2395
2395
  function u(r, n, o) {
2396
2396
  let a = r.length - n.length;
2397
2397
  if (a === 0) return r(...n);
@@ -2400,7 +2400,7 @@ function u(r, n, o) {
2400
2400
  }
2401
2401
 
2402
2402
  //#endregion
2403
- //#region ../../node_modules/.pnpm/remeda@2.25.0/node_modules/remeda/dist/chunk-3IFJP4R5.js
2403
+ //#region ../../node_modules/.pnpm/remeda@2.26.1/node_modules/remeda/dist/chunk-3IFJP4R5.js
2404
2404
  function d(...r) {
2405
2405
  return u(i, r);
2406
2406
  }
@@ -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-H6yPBJEa.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-COssK1X5.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.28";
11
+ var version = "1.0.0-beta.28-commit.aaef991";
12
12
  var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
13
13
 
14
14
  //#endregion
@@ -2380,7 +2380,7 @@ function normalizeTransformHookSourcemap(id, originalCode, rawMap) {
2380
2380
  }
2381
2381
 
2382
2382
  //#endregion
2383
- //#region ../../node_modules/.pnpm/remeda@2.25.0/node_modules/remeda/dist/chunk-D6FCK2GA.js
2383
+ //#region ../../node_modules/.pnpm/remeda@2.26.1/node_modules/remeda/dist/chunk-D6FCK2GA.js
2384
2384
  function u$1(o, n, a) {
2385
2385
  let t = (r) => o(r, ...n);
2386
2386
  return a === void 0 ? t : Object.assign(t, {
@@ -2390,7 +2390,7 @@ function u$1(o, n, a) {
2390
2390
  }
2391
2391
 
2392
2392
  //#endregion
2393
- //#region ../../node_modules/.pnpm/remeda@2.25.0/node_modules/remeda/dist/chunk-WIMGWYZL.js
2393
+ //#region ../../node_modules/.pnpm/remeda@2.26.1/node_modules/remeda/dist/chunk-WIMGWYZL.js
2394
2394
  function u(r, n, o) {
2395
2395
  let a = r.length - n.length;
2396
2396
  if (a === 0) return r(...n);
@@ -2399,7 +2399,7 @@ function u(r, n, o) {
2399
2399
  }
2400
2400
 
2401
2401
  //#endregion
2402
- //#region ../../node_modules/.pnpm/remeda@2.25.0/node_modules/remeda/dist/chunk-3IFJP4R5.js
2402
+ //#region ../../node_modules/.pnpm/remeda@2.26.1/node_modules/remeda/dist/chunk-3IFJP4R5.js
2403
2403
  function d(...r) {
2404
2404
  return u(i, r);
2405
2405
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rolldown",
3
- "version": "1.0.0-beta.28",
3
+ "version": "1.0.0-beta.28-commit.aaef991",
4
4
  "description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
5
5
  "type": "module",
6
6
  "homepage": "https://rolldown.rs/",
@@ -92,14 +92,14 @@
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.2",
96
- "@oxc-project/types": "=0.77.2",
95
+ "@oxc-project/runtime": "=0.77.3",
96
+ "@oxc-project/types": "=0.77.3",
97
97
  "ansis": "^4.0.0",
98
- "@rolldown/pluginutils": "1.0.0-beta.28"
98
+ "@rolldown/pluginutils": "1.0.0-beta.28-commit.aaef991"
99
99
  },
100
100
  "devDependencies": {
101
101
  "@napi-rs/cli": "^3.0.0",
102
- "@napi-rs/wasm-runtime": "^0.2.10",
102
+ "@napi-rs/wasm-runtime": "^1.0.0",
103
103
  "@oxc-node/cli": "^0.0.29",
104
104
  "@rollup/plugin-json": "^6.1.0",
105
105
  "@valibot/to-json-schema": "1.3.0",
@@ -108,10 +108,10 @@
108
108
  "emnapi": "^1.2.0",
109
109
  "execa": "^9.2.0",
110
110
  "glob": "^11.0.0",
111
- "oxc-parser": "=0.77.2",
111
+ "oxc-parser": "=0.77.3",
112
112
  "pathe": "^2.0.3",
113
113
  "remeda": "^2.10.0",
114
- "rolldown-plugin-dts": "^0.13.6",
114
+ "rolldown-plugin-dts": "^0.14.0",
115
115
  "rollup": "^4.18.0",
116
116
  "signal-exit": "4.1.0",
117
117
  "source-map": "^0.7.4",
@@ -119,24 +119,24 @@
119
119
  "typedoc": "^0.28.0",
120
120
  "typescript": "^5.7.3",
121
121
  "valibot": "1.1.0",
122
- "@rolldown/testing": "0.0.1",
123
- "rolldown": "1.0.0-beta.28"
122
+ "rolldown": "1.0.0-beta.28-commit.aaef991",
123
+ "@rolldown/testing": "0.0.1"
124
124
  },
125
125
  "optionalDependencies": {
126
- "@rolldown/binding-darwin-x64": "1.0.0-beta.28",
127
- "@rolldown/binding-win32-x64-msvc": "1.0.0-beta.28",
128
- "@rolldown/binding-linux-x64-gnu": "1.0.0-beta.28",
129
- "@rolldown/binding-linux-x64-musl": "1.0.0-beta.28",
130
- "@rolldown/binding-freebsd-x64": "1.0.0-beta.28",
131
- "@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.28",
132
- "@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.28",
133
- "@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.28",
134
- "@rolldown/binding-darwin-arm64": "1.0.0-beta.28",
135
- "@rolldown/binding-linux-arm64-musl": "1.0.0-beta.28",
136
- "@rolldown/binding-linux-arm64-ohos": "1.0.0-beta.28",
137
- "@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.28",
138
- "@rolldown/binding-android-arm64": "1.0.0-beta.28",
139
- "@rolldown/binding-wasm32-wasi": "1.0.0-beta.28"
126
+ "@rolldown/binding-darwin-x64": "1.0.0-beta.28-commit.aaef991",
127
+ "@rolldown/binding-win32-x64-msvc": "1.0.0-beta.28-commit.aaef991",
128
+ "@rolldown/binding-linux-x64-gnu": "1.0.0-beta.28-commit.aaef991",
129
+ "@rolldown/binding-linux-x64-musl": "1.0.0-beta.28-commit.aaef991",
130
+ "@rolldown/binding-freebsd-x64": "1.0.0-beta.28-commit.aaef991",
131
+ "@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.28-commit.aaef991",
132
+ "@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.28-commit.aaef991",
133
+ "@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.28-commit.aaef991",
134
+ "@rolldown/binding-darwin-arm64": "1.0.0-beta.28-commit.aaef991",
135
+ "@rolldown/binding-linux-arm64-musl": "1.0.0-beta.28-commit.aaef991",
136
+ "@rolldown/binding-linux-arm64-ohos": "1.0.0-beta.28-commit.aaef991",
137
+ "@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.28-commit.aaef991",
138
+ "@rolldown/binding-android-arm64": "1.0.0-beta.28-commit.aaef991",
139
+ "@rolldown/binding-wasm32-wasi": "1.0.0-beta.28-commit.aaef991"
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)$/'",