@rolldown/browser 1.0.0-beta.9 → 1.0.0-beta.9-commit.76c39c6

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 (37) 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.browser.mjs +1 -1
  8. package/dist/experimental-index.cjs +2 -2
  9. package/dist/experimental-index.d.cts +1 -1
  10. package/dist/experimental-index.d.mts +1 -1
  11. package/dist/experimental-index.mjs +2 -2
  12. package/dist/filter-index.d.cts +1 -1
  13. package/dist/filter-index.d.mts +1 -1
  14. package/dist/index.browser.mjs +1 -1
  15. package/dist/index.cjs +2 -2
  16. package/dist/index.d.cts +1 -1
  17. package/dist/index.d.mts +1 -1
  18. package/dist/index.mjs +2 -2
  19. package/dist/parallel-plugin-worker.cjs +2 -2
  20. package/dist/parallel-plugin-worker.mjs +2 -2
  21. package/dist/parallel-plugin.d.cts +1 -1
  22. package/dist/parallel-plugin.d.mts +1 -1
  23. package/dist/parse-ast-index.cjs +1 -1
  24. package/dist/parse-ast-index.mjs +1 -1
  25. package/dist/rolldown-binding.wasi-browser.js +3 -2
  26. package/dist/rolldown-binding.wasi.cjs +3 -3
  27. package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
  28. package/dist/shared/{define-config.d-Ctxs8tAh.d.cts → define-config.d-DgiUNiVu.d.cts} +1 -3
  29. package/dist/shared/{define-config.d-BGa6dLwn.d.mts → define-config.d-Dmqv_2mo.d.mts} +1 -3
  30. package/dist/shared/{load-config-DdZ5km6i.cjs → load-config-Cu1Hc0Bk.cjs} +1 -1
  31. package/dist/shared/{load-config-RVDwvD82.mjs → load-config-DGGlG8SK.mjs} +1 -1
  32. package/dist/shared/{parse-ast-index-KEAbj-mg.cjs → parse-ast-index-5aLNEQ2C.cjs} +1 -1
  33. package/dist/shared/{parse-ast-index-CxOeb18k.mjs → parse-ast-index-NgEigHGy.mjs} +2 -2
  34. package/dist/shared/{src-Cu19FY3L.mjs → src-B4UgpHQ2.mjs} +2 -2
  35. package/dist/shared/{src-B6xZ1cxv.cjs → src-D6iWoDhA.cjs} +2 -2
  36. package/dist/{src-BNuzKco0.js → src-BSxHAJnI.js} +2 -2
  37. package/package.json +3 -3
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-B6xZ1cxv.cjs');
2
+ const require_src = require('./shared/src-D6iWoDhA.cjs');
3
3
  const require_dist = require('./shared/dist-BMVjvV-v.cjs');
4
- require('./shared/parse-ast-index-KEAbj-mg.cjs');
5
- const require_load_config = require('./shared/load-config-DdZ5km6i.cjs');
4
+ require('./shared/parse-ast-index-5aLNEQ2C.cjs');
5
+ const require_load_config = require('./shared/load-config-Cu1Hc0Bk.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"));
@@ -1420,8 +1420,8 @@ const process$2 = globalThis.process;
1420
1420
  const { onExit, load, unload } = signalExitWrap(processOk(process$2) ? new SignalExit(process$2) : new SignalExitFallback());
1421
1421
 
1422
1422
  //#endregion
1423
- //#region ../../node_modules/.pnpm/@oxc-project+runtime@0.70.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js
1424
- var require_usingCtx = require_chunk.__commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.70.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(exports, module) {
1423
+ //#region ../../node_modules/.pnpm/@oxc-project+runtime@0.71.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js
1424
+ var require_usingCtx = require_chunk.__commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.71.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(exports, module) {
1425
1425
  function _usingCtx() {
1426
1426
  var r$1 = "function" == typeof SuppressedError ? SuppressedError : function(r$2, e$1) {
1427
1427
  var n$2 = Error();
package/dist/cli.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import { __commonJS, __esm, __toESM } from "./shared/chunk-DSsiIF1Z.mjs";
2
- import { description, getInputCliKeys, getJsonSchema, getOutputCliKeys, init_rolldown, init_validator, init_watch, rolldown, validateCliOptions, version, watch } from "./shared/src-Cu19FY3L.mjs";
2
+ import { description, getInputCliKeys, getJsonSchema, getOutputCliKeys, init_rolldown, init_validator, init_watch, rolldown, validateCliOptions, version, watch } from "./shared/src-B4UgpHQ2.mjs";
3
3
  import { arraify, init_misc } from "./shared/dist-CAn6dxW6.mjs";
4
- import "./shared/parse-ast-index-CxOeb18k.mjs";
5
- import { init_load_config, loadConfig } from "./shared/load-config-RVDwvD82.mjs";
4
+ import "./shared/parse-ast-index-NgEigHGy.mjs";
5
+ import { init_load_config, loadConfig } from "./shared/load-config-DGGlG8SK.mjs";
6
6
  import path, { sep } from "node:path";
7
7
  import colors from "ansis";
8
8
  import process$1 from "node:process";
@@ -1434,8 +1434,8 @@ var init_mjs = __esm({ "../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/
1434
1434
  } });
1435
1435
 
1436
1436
  //#endregion
1437
- //#region ../../node_modules/.pnpm/@oxc-project+runtime@0.70.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js
1438
- var require_usingCtx = __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.70.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(exports, module) {
1437
+ //#region ../../node_modules/.pnpm/@oxc-project+runtime@0.71.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js
1438
+ var require_usingCtx = __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.71.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(exports, module) {
1439
1439
  function _usingCtx() {
1440
1440
  var r$1 = "function" == typeof SuppressedError ? SuppressedError : function(r$2, e$1) {
1441
1441
  var n$2 = Error();
package/dist/config.cjs CHANGED
@@ -1,7 +1,7 @@
1
- const require_src = require('./shared/src-B6xZ1cxv.cjs');
1
+ const require_src = require('./shared/src-D6iWoDhA.cjs');
2
2
  require('./shared/dist-BMVjvV-v.cjs');
3
- require('./shared/parse-ast-index-KEAbj-mg.cjs');
4
- const require_load_config = require('./shared/load-config-DdZ5km6i.cjs');
3
+ require('./shared/parse-ast-index-5aLNEQ2C.cjs');
4
+ const require_load_config = require('./shared/load-config-Cu1Hc0Bk.cjs');
5
5
 
6
6
  //#region src/config.ts
7
7
  const VERSION = require_src.version;
package/dist/config.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { ConfigExport, defineConfig } from "./shared/define-config.d-Ctxs8tAh.cjs";
1
+ import { ConfigExport, defineConfig } from "./shared/define-config.d-DgiUNiVu.cjs";
2
2
 
3
3
  //#region src/utils/load-config.d.ts
4
4
  declare function loadConfig(configPath: string): Promise<ConfigExport>;
package/dist/config.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { ConfigExport, defineConfig$1 as defineConfig } from "./shared/define-config.d-BGa6dLwn.mjs";
1
+ import { ConfigExport, defineConfig$1 as defineConfig } from "./shared/define-config.d-Dmqv_2mo.mjs";
2
2
 
3
3
  //#region src/utils/load-config.d.ts
4
4
  declare function loadConfig(configPath: string): Promise<ConfigExport>;
package/dist/config.mjs CHANGED
@@ -1,7 +1,7 @@
1
- import { defineConfig, init_define_config, version } from "./shared/src-Cu19FY3L.mjs";
1
+ import { defineConfig, init_define_config, version } from "./shared/src-B4UgpHQ2.mjs";
2
2
  import "./shared/dist-CAn6dxW6.mjs";
3
- import "./shared/parse-ast-index-CxOeb18k.mjs";
4
- import { init_load_config, loadConfig } from "./shared/load-config-RVDwvD82.mjs";
3
+ import "./shared/parse-ast-index-NgEigHGy.mjs";
4
+ import { init_load_config, loadConfig } from "./shared/load-config-DGGlG8SK.mjs";
5
5
 
6
6
  //#region src/config.ts
7
7
  init_define_config();
@@ -1,4 +1,4 @@
1
- import { BuiltinPlugin, assetPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./src-BNuzKco0.js";
1
+ import { BuiltinPlugin, assetPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./src-BSxHAJnI.js";
2
2
  import { ResolverFactory, isolatedDeclaration, moduleRunnerTransform, transform } from "./rolldown-binding.wasi-browser.js";
3
3
 
4
4
  //#region src/api/experimental.ts
@@ -1,7 +1,7 @@
1
1
  const require_chunk = require('./shared/chunk-DDkG_k5U.cjs');
2
- const require_src = require('./shared/src-B6xZ1cxv.cjs');
2
+ const require_src = require('./shared/src-D6iWoDhA.cjs');
3
3
  require('./shared/dist-BMVjvV-v.cjs');
4
- require('./shared/parse-ast-index-KEAbj-mg.cjs');
4
+ require('./shared/parse-ast-index-5aLNEQ2C.cjs');
5
5
  const src_rolldown_binding_wasi_cjs = require_chunk.__toESM(require("./rolldown-binding.wasi.cjs"));
6
6
  const node_url = require_chunk.__toESM(require("node:url"));
7
7
 
@@ -1,4 +1,4 @@
1
- import { BuiltinPlugin, InputOptions, RolldownPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config.d-Ctxs8tAh.cjs";
1
+ import { BuiltinPlugin, InputOptions, RolldownPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config.d-DgiUNiVu.cjs";
2
2
  import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions as ResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./rolldown-binding.wasi.cjs";
3
3
 
4
4
  //#region src/api/experimental.d.ts
@@ -1,4 +1,4 @@
1
- import { BuiltinPlugin$1 as BuiltinPlugin, InputOptions, RolldownPlugin, assetPlugin$1 as assetPlugin, buildImportAnalysisPlugin$1 as buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin$1 as dynamicImportVarsPlugin, importGlobPlugin$1 as importGlobPlugin, isolatedDeclarationPlugin$1 as isolatedDeclarationPlugin, jsonPlugin$1 as jsonPlugin, loadFallbackPlugin$1 as loadFallbackPlugin, manifestPlugin$1 as manifestPlugin, moduleFederationPlugin$1 as moduleFederationPlugin, modulePreloadPolyfillPlugin$1 as modulePreloadPolyfillPlugin, reporterPlugin$1 as reporterPlugin, viteResolvePlugin$1 as viteResolvePlugin, wasmFallbackPlugin$1 as wasmFallbackPlugin, wasmHelperPlugin$1 as wasmHelperPlugin, webWorkerPostPlugin$1 as webWorkerPostPlugin } from "./shared/define-config.d-BGa6dLwn.mjs";
1
+ import { BuiltinPlugin$1 as BuiltinPlugin, InputOptions, RolldownPlugin, assetPlugin$1 as assetPlugin, buildImportAnalysisPlugin$1 as buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin$1 as dynamicImportVarsPlugin, importGlobPlugin$1 as importGlobPlugin, isolatedDeclarationPlugin$1 as isolatedDeclarationPlugin, jsonPlugin$1 as jsonPlugin, loadFallbackPlugin$1 as loadFallbackPlugin, manifestPlugin$1 as manifestPlugin, moduleFederationPlugin$1 as moduleFederationPlugin, modulePreloadPolyfillPlugin$1 as modulePreloadPolyfillPlugin, reporterPlugin$1 as reporterPlugin, viteResolvePlugin$1 as viteResolvePlugin, wasmFallbackPlugin$1 as wasmFallbackPlugin, wasmHelperPlugin$1 as wasmHelperPlugin, webWorkerPostPlugin$1 as webWorkerPostPlugin } from "./shared/define-config.d-Dmqv_2mo.mjs";
2
2
  import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions as ResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./rolldown-binding.wasi.cjs";
3
3
 
4
4
  //#region src/api/experimental.d.ts
@@ -1,6 +1,6 @@
1
- import { BuiltinPlugin, assetPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, init_compose_js_plugins, init_constructors, init_create_bundler, init_normalize_string_or_regex, init_transform_to_rollup_output, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/src-Cu19FY3L.mjs";
1
+ import { BuiltinPlugin, assetPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, init_compose_js_plugins, init_constructors, init_create_bundler, init_normalize_string_or_regex, init_transform_to_rollup_output, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/src-B4UgpHQ2.mjs";
2
2
  import "./shared/dist-CAn6dxW6.mjs";
3
- import "./shared/parse-ast-index-CxOeb18k.mjs";
3
+ import "./shared/parse-ast-index-NgEigHGy.mjs";
4
4
  import { ResolverFactory, isolatedDeclaration, moduleRunnerTransform, transform } from "./rolldown-binding.wasi.cjs";
5
5
  import { pathToFileURL } from "node:url";
6
6
 
@@ -1,3 +1,3 @@
1
- import { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter } from "./shared/define-config.d-Ctxs8tAh.cjs";
1
+ import { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter } from "./shared/define-config.d-DgiUNiVu.cjs";
2
2
 
3
3
  export { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter };
@@ -1,3 +1,3 @@
1
- import { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter } from "./shared/define-config.d-BGa6dLwn.mjs";
1
+ import { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter } from "./shared/define-config.d-Dmqv_2mo.mjs";
2
2
 
3
3
  export { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter };
@@ -1,3 +1,3 @@
1
- import { VERSION, build, defineConfig, rolldown, watch } from "./src-BNuzKco0.js";
1
+ import { VERSION, build, defineConfig, rolldown, watch } from "./src-BSxHAJnI.js";
2
2
 
3
3
  export { VERSION, build, defineConfig, rolldown, watch };
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
- const require_src = require('./shared/src-B6xZ1cxv.cjs');
1
+ const require_src = require('./shared/src-D6iWoDhA.cjs');
2
2
  require('./shared/dist-BMVjvV-v.cjs');
3
- require('./shared/parse-ast-index-KEAbj-mg.cjs');
3
+ require('./shared/parse-ast-index-5aLNEQ2C.cjs');
4
4
 
5
5
  exports.VERSION = require_src.VERSION;
6
6
  exports.build = require_src.build;
package/dist/index.d.cts CHANGED
@@ -1,3 +1,3 @@
1
- import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, 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 } from "./shared/define-config.d-Ctxs8tAh.cjs";
1
+ import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, 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 } from "./shared/define-config.d-DgiUNiVu.cjs";
2
2
 
3
3
  export { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, 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 { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, 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$1 as VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build$1 as build, defineConfig$1 as defineConfig, rolldown$1 as rolldown, watch$1 as watch } from "./shared/define-config.d-BGa6dLwn.mjs";
1
+ import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, 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$1 as VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build$1 as build, defineConfig$1 as defineConfig, rolldown$1 as rolldown, watch$1 as watch } from "./shared/define-config.d-Dmqv_2mo.mjs";
2
2
 
3
3
  export { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, 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,6 +1,6 @@
1
- import { VERSION, build, defineConfig, init_src, rolldown, watch } from "./shared/src-Cu19FY3L.mjs";
1
+ import { VERSION, build, defineConfig, init_src, rolldown, watch } from "./shared/src-B4UgpHQ2.mjs";
2
2
  import "./shared/dist-CAn6dxW6.mjs";
3
- import "./shared/parse-ast-index-CxOeb18k.mjs";
3
+ import "./shared/parse-ast-index-NgEigHGy.mjs";
4
4
 
5
5
  init_src();
6
6
  export { VERSION, build, defineConfig, rolldown, watch };
@@ -1,7 +1,7 @@
1
1
  const require_chunk = require('./shared/chunk-DDkG_k5U.cjs');
2
- const require_src = require('./shared/src-B6xZ1cxv.cjs');
2
+ const require_src = require('./shared/src-D6iWoDhA.cjs');
3
3
  require('./shared/dist-BMVjvV-v.cjs');
4
- require('./shared/parse-ast-index-KEAbj-mg.cjs');
4
+ require('./shared/parse-ast-index-5aLNEQ2C.cjs');
5
5
  const src_rolldown_binding_wasi_cjs = require_chunk.__toESM(require("./rolldown-binding.wasi.cjs"));
6
6
  const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
7
7
 
@@ -1,7 +1,7 @@
1
1
  import { __commonJS } from "./shared/chunk-DSsiIF1Z.mjs";
2
- import { PluginContextData, bindingifyPlugin, init_bindingify_plugin, init_plugin_context_data } from "./shared/src-Cu19FY3L.mjs";
2
+ import { PluginContextData, bindingifyPlugin, init_bindingify_plugin, init_plugin_context_data } from "./shared/src-B4UgpHQ2.mjs";
3
3
  import "./shared/dist-CAn6dxW6.mjs";
4
- import "./shared/parse-ast-index-CxOeb18k.mjs";
4
+ import "./shared/parse-ast-index-NgEigHGy.mjs";
5
5
  import { registerPlugins } from "./rolldown-binding.wasi.cjs";
6
6
  import { parentPort, workerData } from "node:worker_threads";
7
7
 
@@ -1,4 +1,4 @@
1
- import { MaybePromise, Plugin } from "./shared/define-config.d-Ctxs8tAh.cjs";
1
+ import { MaybePromise, Plugin } from "./shared/define-config.d-DgiUNiVu.cjs";
2
2
 
3
3
  //#region src/plugin/parallel-plugin-implementation.d.ts
4
4
  type ParallelPluginImplementation = Plugin;
@@ -1,4 +1,4 @@
1
- import { MaybePromise, Plugin } from "./shared/define-config.d-BGa6dLwn.mjs";
1
+ import { MaybePromise, Plugin } from "./shared/define-config.d-Dmqv_2mo.mjs";
2
2
 
3
3
  //#region src/plugin/parallel-plugin-implementation.d.ts
4
4
  type ParallelPluginImplementation = Plugin;
@@ -1,4 +1,4 @@
1
- const require_parse_ast_index = require('./shared/parse-ast-index-KEAbj-mg.cjs');
1
+ const require_parse_ast_index = require('./shared/parse-ast-index-5aLNEQ2C.cjs');
2
2
 
3
3
  exports.parseAst = require_parse_ast_index.parseAst;
4
4
  exports.parseAstAsync = require_parse_ast_index.parseAstAsync;
@@ -1,4 +1,4 @@
1
- import { init_parse_ast_index, parseAst, parseAstAsync } from "./shared/parse-ast-index-CxOeb18k.mjs";
1
+ import { init_parse_ast_index, parseAst, parseAstAsync } from "./shared/parse-ast-index-NgEigHGy.mjs";
2
2
 
3
3
  init_parse_ast_index();
4
4
  export { parseAst, parseAstAsync };
@@ -1,8 +1,8 @@
1
1
  import {
2
- instantiateNapiModule as __emnapiInstantiateNapiModule,
2
+ createOnMessage as __wasmCreateOnMessageForFsProxy,
3
3
  getDefaultContext as __emnapiGetDefaultContext,
4
+ instantiateNapiModule as __emnapiInstantiateNapiModule,
4
5
  WASI as __WASI,
5
- createOnMessage as __wasmCreateOnMessageForFsProxy,
6
6
  } from '@napi-rs/wasm-runtime'
7
7
  import { memfs } from '@napi-rs/wasm-runtime/fs'
8
8
  import __wasmUrl from './rolldown-binding.wasm32-wasi.wasm?url'
@@ -60,6 +60,7 @@ const {
60
60
  }
61
61
  },
62
62
  })
63
+ export default __napiModule.exports
63
64
  export const BindingBundleEndEventData = __napiModule.exports.BindingBundleEndEventData
64
65
  export const BindingBundleErrorEventData = __napiModule.exports.BindingBundleErrorEventData
65
66
  export const BindingCallableBuiltinPlugin = __napiModule.exports.BindingCallableBuiltinPlugin
@@ -9,9 +9,9 @@ const { WASI: __nodeWASI } = require('node:wasi')
9
9
  const { Worker } = require('node:worker_threads')
10
10
 
11
11
  const {
12
- instantiateNapiModuleSync: __emnapiInstantiateNapiModuleSync,
13
- getDefaultContext: __emnapiGetDefaultContext,
14
12
  createOnMessage: __wasmCreateOnMessageForFsProxy,
13
+ getDefaultContext: __emnapiGetDefaultContext,
14
+ instantiateNapiModuleSync: __emnapiInstantiateNapiModuleSync,
15
15
  } = require('@napi-rs/wasm-runtime')
16
16
 
17
17
  const __rootDir = __nodePath.parse(process.cwd()).root
@@ -84,7 +84,7 @@ const { instance: __napiInstance, module: __wasiModule, napiModule: __napiModule
84
84
  }
85
85
  },
86
86
  })
87
-
87
+ module.exports = __napiModule.exports
88
88
  module.exports.BindingBundleEndEventData = __napiModule.exports.BindingBundleEndEventData
89
89
  module.exports.BindingBundleErrorEventData = __napiModule.exports.BindingBundleErrorEventData
90
90
  module.exports.BindingCallableBuiltinPlugin = __napiModule.exports.BindingCallableBuiltinPlugin
@@ -1037,9 +1037,7 @@ interface InputOptions {
1037
1037
  /**
1038
1038
  * Expected platform where the code run.
1039
1039
  *
1040
- * @default
1041
- * - 'node' if the format is 'cjs'
1042
- * - 'browser' for other formats
1040
+ * @default "browser"
1043
1041
  */
1044
1042
  platform?: "node" | "browser" | "neutral";
1045
1043
  shimMissingExports?: boolean;
@@ -1037,9 +1037,7 @@ interface InputOptions {
1037
1037
  /**
1038
1038
  * Expected platform where the code run.
1039
1039
  *
1040
- * @default
1041
- * - 'node' if the format is 'cjs'
1042
- * - 'browser' for other formats
1040
+ * @default "browser"
1043
1041
  */
1044
1042
  platform?: "node" | "browser" | "neutral";
1045
1043
  shimMissingExports?: boolean;
@@ -1,5 +1,5 @@
1
1
  const require_chunk = require('./chunk-DDkG_k5U.cjs');
2
- const require_src = require('./src-B6xZ1cxv.cjs');
2
+ const require_src = require('./src-D6iWoDhA.cjs');
3
3
  const node_path = require_chunk.__toESM(require("node:path"));
4
4
  const node_url = require_chunk.__toESM(require("node:url"));
5
5
  const node_process = require_chunk.__toESM(require("node:process"));
@@ -1,5 +1,5 @@
1
1
  import { __esm } from "./chunk-DSsiIF1Z.mjs";
2
- import { init_rolldown, rolldown } from "./src-Cu19FY3L.mjs";
2
+ import { init_rolldown, rolldown } from "./src-B4UgpHQ2.mjs";
3
3
  import path from "node:path";
4
4
  import { pathToFileURL } from "node:url";
5
5
  import { cwd } from "node:process";
@@ -181,7 +181,7 @@ function augmentCodeLocation(properties, pos, source, id) {
181
181
  }
182
182
 
183
183
  //#endregion
184
- //#region ../../node_modules/.pnpm/oxc-parser@0.70.0/node_modules/oxc-parser/wrap.mjs
184
+ //#region ../../node_modules/.pnpm/oxc-parser@0.71.0/node_modules/oxc-parser/wrap.mjs
185
185
  function wrap$1(result) {
186
186
  let program, module$1, comments, errors;
187
187
  return {
@@ -190,7 +190,7 @@ var init_logs = __esm({ "src/log/logs.ts"() {
190
190
  } });
191
191
 
192
192
  //#endregion
193
- //#region ../../node_modules/.pnpm/oxc-parser@0.70.0/node_modules/oxc-parser/wrap.mjs
193
+ //#region ../../node_modules/.pnpm/oxc-parser@0.71.0/node_modules/oxc-parser/wrap.mjs
194
194
  function wrap$1(result) {
195
195
  let program, module, comments, errors;
196
196
  return {
@@ -225,7 +225,7 @@ function applyFix(program, fixPath) {
225
225
  node.value = RegExp(node.regex.pattern, node.regex.flags);
226
226
  } catch (_err) {}
227
227
  }
228
- var init_wrap = __esm({ "../../node_modules/.pnpm/oxc-parser@0.70.0/node_modules/oxc-parser/wrap.mjs"() {} });
228
+ var init_wrap = __esm({ "../../node_modules/.pnpm/oxc-parser@0.71.0/node_modules/oxc-parser/wrap.mjs"() {} });
229
229
 
230
230
  //#endregion
231
231
  //#region src/parse-ast-index.ts
@@ -1,6 +1,6 @@
1
1
  import { __esm } from "./chunk-DSsiIF1Z.mjs";
2
2
  import { and$1 as and, arraify, code$1 as code, exclude$1 as exclude, id$1 as id, include$1 as include, init_dist, init_misc, isNullish, moduleType$1 as moduleType, noop, or$1 as or, unimplemented, unreachable, unsupported } from "./dist-CAn6dxW6.mjs";
3
- import { augmentCodeLocation, error, init_logs, init_parse_ast_index, logCycleLoading, logInputHookInOutputPlugin, logInvalidLogPosition, logMultiplyNotifyOption, logPluginError, parseAst } from "./parse-ast-index-CxOeb18k.mjs";
3
+ import { augmentCodeLocation, error, init_logs, init_parse_ast_index, logCycleLoading, logInputHookInOutputPlugin, logInvalidLogPosition, logMultiplyNotifyOption, logPluginError, parseAst } from "./parse-ast-index-NgEigHGy.mjs";
4
4
  import { BindingCallableBuiltinPlugin, BindingHookSideEffects, BindingLogLevel, BindingPluginOrder, BindingWatcher, Bundler, ParallelJsPluginRegistry, shutdownAsyncRuntime, startAsyncRuntime } from "../rolldown-binding.wasi.cjs";
5
5
  import path from "node:path";
6
6
  import colors from "ansis";
@@ -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.9";
11
+ var version = "1.0.0-beta.9-commit.76c39c6";
12
12
  var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
13
13
 
14
14
  //#endregion
@@ -1,6 +1,6 @@
1
1
  const require_chunk = require('./chunk-DDkG_k5U.cjs');
2
2
  const require_dist = require('./dist-BMVjvV-v.cjs');
3
- const require_parse_ast_index = require('./parse-ast-index-KEAbj-mg.cjs');
3
+ const require_parse_ast_index = require('./parse-ast-index-5aLNEQ2C.cjs');
4
4
  const src_rolldown_binding_wasi_cjs = require_chunk.__toESM(require("../rolldown-binding.wasi.cjs"));
5
5
  const node_path = require_chunk.__toESM(require("node:path"));
6
6
  const ansis = require_chunk.__toESM(require("ansis"));
@@ -8,7 +8,7 @@ const node_os = require_chunk.__toESM(require("node:os"));
8
8
  const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
9
9
 
10
10
  //#region package.json
11
- var version = "1.0.0-beta.9";
11
+ var version = "1.0.0-beta.9-commit.76c39c6";
12
12
  var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
13
13
 
14
14
  //#endregion
@@ -3,7 +3,7 @@ import path from "pathe";
3
3
  import colors from "ansis";
4
4
 
5
5
  //#region package.json
6
- var version = "1.0.0-beta.9";
6
+ var version = "1.0.0-beta.9-commit.76c39c6";
7
7
 
8
8
  //#endregion
9
9
  //#region src/builtin-plugin/utils.ts
@@ -2339,7 +2339,7 @@ function bindingPluginOrder(order) {
2339
2339
  }
2340
2340
 
2341
2341
  //#endregion
2342
- //#region ../../node_modules/.pnpm/oxc-parser@0.70.0/node_modules/oxc-parser/wrap.mjs
2342
+ //#region ../../node_modules/.pnpm/oxc-parser@0.71.0/node_modules/oxc-parser/wrap.mjs
2343
2343
  function wrap$1(result) {
2344
2344
  let program, module, comments, errors;
2345
2345
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rolldown/browser",
3
- "version": "1.0.0-beta.9",
3
+ "version": "1.0.0-beta.9-commit.76c39c6",
4
4
  "description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
5
5
  "homepage": "https://rolldown.rs/",
6
6
  "type": "module",
@@ -56,12 +56,12 @@
56
56
  },
57
57
  "dependencies": {
58
58
  "@napi-rs/wasm-runtime": "^0.2.8",
59
- "@oxc-project/types": "0.70.0",
59
+ "@oxc-project/types": "0.71.0",
60
60
  "ansis": "^4.0.0",
61
61
  "pathe": "^2.0.3"
62
62
  },
63
63
  "peerDependencies": {
64
- "@oxc-project/runtime": "0.70.0"
64
+ "@oxc-project/runtime": "0.71.0"
65
65
  },
66
66
  "peerDependenciesMeta": {
67
67
  "@oxc-project/runtime": {