rolldown 1.0.0-beta.31-commit.832324a → 1.0.0-beta.33

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 (39) hide show
  1. package/dist/cli.cjs +5 -5
  2. package/dist/cli.d.cts +1 -1
  3. package/dist/cli.d.mts +1 -1
  4. package/dist/cli.mjs +7 -6
  5. package/dist/config.cjs +3 -3
  6. package/dist/config.d.cts +2 -2
  7. package/dist/config.d.mts +2 -2
  8. package/dist/config.mjs +3 -3
  9. package/dist/experimental-index.cjs +2 -2
  10. package/dist/experimental-index.d.cts +2 -2
  11. package/dist/experimental-index.d.mts +2 -2
  12. package/dist/experimental-index.mjs +2 -2
  13. package/dist/filter-index.d.cts +2 -2
  14. package/dist/filter-index.d.mts +2 -2
  15. package/dist/index.cjs +2 -2
  16. package/dist/index.d.cts +2 -2
  17. package/dist/index.d.mts +2 -2
  18. package/dist/index.mjs +2 -2
  19. package/dist/parallel-plugin-worker.cjs +2 -2
  20. package/dist/parallel-plugin-worker.d.cts +1 -1
  21. package/dist/parallel-plugin-worker.d.mts +1 -1
  22. package/dist/parallel-plugin-worker.mjs +4 -3
  23. package/dist/parallel-plugin.d.cts +2 -2
  24. package/dist/parallel-plugin.d.mts +2 -2
  25. package/dist/parse-ast-index.cjs +1 -1
  26. package/dist/parse-ast-index.d.cts +1 -1
  27. package/dist/parse-ast-index.d.mts +1 -1
  28. package/dist/parse-ast-index.mjs +1 -1
  29. package/dist/shared/{binding-BIqlUgrm.d.cts → binding-CFhvYkVn.d.mts} +4 -3
  30. package/dist/shared/{binding-COE5UL-B.d.mts → binding-DQk9TN_A.d.cts} +4 -3
  31. package/dist/shared/{define-config-DFC0Nu7H.d.cts → define-config-B3QOs3Kt.d.cts} +7 -1
  32. package/dist/shared/{define-config-DfOVOsx6.d.mts → define-config-DtlZ1GSS.d.mts} +7 -1
  33. package/dist/shared/{load-config-C2ByPkRr.cjs → load-config-B-y3XROZ.cjs} +1 -1
  34. package/dist/shared/{load-config-BsvtI-HD.mjs → load-config-C00QU0Nl.mjs} +1 -1
  35. package/dist/shared/{parse-ast-index-B5ThufKy.mjs → parse-ast-index-BsbuAWqn.mjs} +24 -24
  36. package/dist/shared/{parse-ast-index-DSyjeX7n.cjs → parse-ast-index-DBzcfyxO.cjs} +24 -24
  37. package/dist/shared/{src-CJyr8NNX.mjs → src-D1dc6nJr.mjs} +82 -77
  38. package/dist/shared/{src-aI0ysjSj.cjs → src-DZTBSVJk.cjs} +82 -77
  39. package/package.json +22 -22
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-aI0ysjSj.cjs');
3
- require('./shared/parse-ast-index-DSyjeX7n.cjs');
2
+ const require_src = require('./shared/src-DZTBSVJk.cjs');
3
+ require('./shared/parse-ast-index-DBzcfyxO.cjs');
4
4
  const require_misc = require('./shared/misc-DksvspN4.cjs');
5
- const require_load_config = require('./shared/load-config-C2ByPkRr.cjs');
5
+ const require_load_config = require('./shared/load-config-B-y3XROZ.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"));
@@ -1435,8 +1435,8 @@ function getClearScreenFunction(options$1) {
1435
1435
  }
1436
1436
 
1437
1437
  //#endregion
1438
- //#region ../../node_modules/.pnpm/@oxc-project+runtime@0.81.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js
1439
- var require_usingCtx = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.81.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js": ((exports, module) => {
1438
+ //#region ../../node_modules/.pnpm/@oxc-project+runtime@0.82.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js
1439
+ var require_usingCtx = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.82.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js": ((exports, module) => {
1440
1440
  function _usingCtx() {
1441
1441
  var r$1 = "function" == typeof SuppressedError ? SuppressedError : function(r$2, e$1) {
1442
1442
  var n$2 = Error();
package/dist/cli.d.cts CHANGED
@@ -1 +1 @@
1
- export { };
1
+ export {};
package/dist/cli.d.mts CHANGED
@@ -1 +1 @@
1
- export { };
1
+ export {};
package/dist/cli.mjs CHANGED
@@ -1,7 +1,7 @@
1
- import { __commonJS, __toESM } from "./shared/parse-ast-index-B5ThufKy.mjs";
2
- import { description, getInputCliKeys, getJsonSchema, getOutputCliKeys, rolldown, validateCliOptions, version, watch } from "./shared/src-CJyr8NNX.mjs";
1
+ import { __commonJS, __toESM } from "./shared/parse-ast-index-BsbuAWqn.mjs";
2
+ import { description, getInputCliKeys, getJsonSchema, getOutputCliKeys, rolldown, validateCliOptions, version, watch } from "./shared/src-D1dc6nJr.mjs";
3
3
  import { arraify } from "./shared/misc-CQeo-AFx.mjs";
4
- import { loadConfig } from "./shared/load-config-BsvtI-HD.mjs";
4
+ import { loadConfig } from "./shared/load-config-C00QU0Nl.mjs";
5
5
  import path, { sep } from "node:path";
6
6
  import colors from "ansis";
7
7
  import process$1 from "node:process";
@@ -1434,8 +1434,8 @@ function getClearScreenFunction(options$1) {
1434
1434
  }
1435
1435
 
1436
1436
  //#endregion
1437
- //#region ../../node_modules/.pnpm/@oxc-project+runtime@0.81.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js
1438
- var require_usingCtx = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.81.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js": ((exports, module) => {
1437
+ //#region ../../node_modules/.pnpm/@oxc-project+runtime@0.82.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js
1438
+ var require_usingCtx = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.82.2/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();
@@ -1763,4 +1763,5 @@ main().catch((err) => {
1763
1763
  process$1.exit(1);
1764
1764
  });
1765
1765
 
1766
- //#endregion
1766
+ //#endregion
1767
+ export { };
package/dist/config.cjs CHANGED
@@ -1,7 +1,7 @@
1
- const require_src = require('./shared/src-aI0ysjSj.cjs');
2
- require('./shared/parse-ast-index-DSyjeX7n.cjs');
1
+ const require_src = require('./shared/src-DZTBSVJk.cjs');
2
+ require('./shared/parse-ast-index-DBzcfyxO.cjs');
3
3
  require('./shared/misc-DksvspN4.cjs');
4
- const require_load_config = require('./shared/load-config-C2ByPkRr.cjs');
4
+ const require_load_config = require('./shared/load-config-B-y3XROZ.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-BIqlUgrm.cjs";
2
- import { ConfigExport, defineConfig } from "./shared/define-config-DFC0Nu7H.cjs";
1
+ import "./shared/binding-DQk9TN_A.cjs";
2
+ import { ConfigExport, defineConfig } from "./shared/define-config-B3QOs3Kt.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-COE5UL-B.mjs";
2
- import { ConfigExport, defineConfig } from "./shared/define-config-DfOVOsx6.mjs";
1
+ import "./shared/binding-CFhvYkVn.mjs";
2
+ import { ConfigExport, defineConfig } from "./shared/define-config-DtlZ1GSS.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-B5ThufKy.mjs";
2
- import { defineConfig, version } from "./shared/src-CJyr8NNX.mjs";
1
+ import "./shared/parse-ast-index-BsbuAWqn.mjs";
2
+ import { defineConfig, version } from "./shared/src-D1dc6nJr.mjs";
3
3
  import "./shared/misc-CQeo-AFx.mjs";
4
- import { loadConfig } from "./shared/load-config-BsvtI-HD.mjs";
4
+ import { loadConfig } from "./shared/load-config-C00QU0Nl.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-aI0ysjSj.cjs');
3
- const require_parse_ast_index = require('./shared/parse-ast-index-DSyjeX7n.cjs');
2
+ const require_src = require('./shared/src-DZTBSVJk.cjs');
3
+ const require_parse_ast_index = require('./shared/parse-ast-index-DBzcfyxO.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-BIqlUgrm.cjs";
2
- import { BuiltinPlugin, InputOptions, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config-DFC0Nu7H.cjs";
1
+ import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding-DQk9TN_A.cjs";
2
+ import { BuiltinPlugin, InputOptions, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config-B3QOs3Kt.cjs";
3
3
 
4
4
  //#region src/api/experimental.d.ts
5
5
 
@@ -1,5 +1,5 @@
1
- import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding-COE5UL-B.mjs";
2
- import { BuiltinPlugin, InputOptions, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config-DfOVOsx6.mjs";
1
+ import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding-CFhvYkVn.mjs";
2
+ import { BuiltinPlugin, InputOptions, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config-DtlZ1GSS.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-B5ThufKy.mjs";
2
- import { BuiltinPlugin, PluginDriver, assetPlugin, buildImportAnalysisPlugin, createBundlerImpl, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/src-CJyr8NNX.mjs";
1
+ import { BindingBundler, ResolverFactory, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/parse-ast-index-BsbuAWqn.mjs";
2
+ import { BuiltinPlugin, PluginDriver, assetPlugin, buildImportAnalysisPlugin, createBundlerImpl, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/src-D1dc6nJr.mjs";
3
3
  import "./shared/misc-CQeo-AFx.mjs";
4
4
  import { pathToFileURL } from "node:url";
5
5
 
@@ -1,4 +1,4 @@
1
- import "./shared/binding-BIqlUgrm.cjs";
2
- import { withFilter } from "./shared/define-config-DFC0Nu7H.cjs";
1
+ import "./shared/binding-DQk9TN_A.cjs";
2
+ import { withFilter } from "./shared/define-config-B3QOs3Kt.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-COE5UL-B.mjs";
2
- import { withFilter } from "./shared/define-config-DfOVOsx6.mjs";
1
+ import "./shared/binding-CFhvYkVn.mjs";
2
+ import { withFilter } from "./shared/define-config-DtlZ1GSS.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-aI0ysjSj.cjs');
2
- require('./shared/parse-ast-index-DSyjeX7n.cjs');
1
+ const require_src = require('./shared/src-DZTBSVJk.cjs');
2
+ require('./shared/parse-ast-index-DBzcfyxO.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-BIqlUgrm.cjs";
2
- import { AddonFunction, AsyncPluginHooks, BufferEncoding, 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, RolldownDirectoryEntry, RolldownFileStats, RolldownFsModule, 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-DFC0Nu7H.cjs";
1
+ import { PreRenderedChunk } from "./shared/binding-DQk9TN_A.cjs";
2
+ import { AddonFunction, AsyncPluginHooks, BufferEncoding, 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, RolldownDirectoryEntry, RolldownFileStats, RolldownFsModule, 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-B3QOs3Kt.cjs";
3
3
  export { AddonFunction, AsyncPluginHooks, BufferEncoding, 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, RolldownDirectoryEntry, RolldownFileStats, RolldownFsModule, 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-COE5UL-B.mjs";
2
- import { AddonFunction, AsyncPluginHooks, BufferEncoding, 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, RolldownDirectoryEntry, RolldownFileStats, RolldownFsModule, 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-DfOVOsx6.mjs";
1
+ import { PreRenderedChunk } from "./shared/binding-CFhvYkVn.mjs";
2
+ import { AddonFunction, AsyncPluginHooks, BufferEncoding, 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, RolldownDirectoryEntry, RolldownFileStats, RolldownFsModule, 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-DtlZ1GSS.mjs";
3
3
  export { AddonFunction, AsyncPluginHooks, BufferEncoding, 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, RolldownDirectoryEntry, RolldownFileStats, RolldownFsModule, 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-B5ThufKy.mjs";
2
- import { VERSION, build, defineConfig, rolldown, watch } from "./shared/src-CJyr8NNX.mjs";
1
+ import "./shared/parse-ast-index-BsbuAWqn.mjs";
2
+ import { VERSION, build, defineConfig, rolldown, watch } from "./shared/src-D1dc6nJr.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-aI0ysjSj.cjs');
3
- const require_parse_ast_index = require('./shared/parse-ast-index-DSyjeX7n.cjs');
2
+ const require_src = require('./shared/src-DZTBSVJk.cjs');
3
+ const require_parse_ast_index = require('./shared/parse-ast-index-DBzcfyxO.cjs');
4
4
  require('./shared/misc-DksvspN4.cjs');
5
5
  const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
6
6
 
@@ -1 +1 @@
1
- export { };
1
+ export {};
@@ -1 +1 @@
1
- export { };
1
+ export {};
@@ -1,5 +1,5 @@
1
- import { registerPlugins } from "./shared/parse-ast-index-B5ThufKy.mjs";
2
- import { PluginContextData, bindingifyPlugin } from "./shared/src-CJyr8NNX.mjs";
1
+ import { registerPlugins } from "./shared/parse-ast-index-BsbuAWqn.mjs";
2
+ import { PluginContextData, bindingifyPlugin } from "./shared/src-D1dc6nJr.mjs";
3
3
  import "./shared/misc-CQeo-AFx.mjs";
4
4
  import { parentPort, workerData } from "node:worker_threads";
5
5
 
@@ -28,4 +28,5 @@ const { registryId, pluginInfos, threadNumber } = workerData;
28
28
  }
29
29
  })();
30
30
 
31
- //#endregion
31
+ //#endregion
32
+ export { };
@@ -1,5 +1,5 @@
1
- import "./shared/binding-BIqlUgrm.cjs";
2
- import { MaybePromise, Plugin } from "./shared/define-config-DFC0Nu7H.cjs";
1
+ import "./shared/binding-DQk9TN_A.cjs";
2
+ import { MaybePromise, Plugin } from "./shared/define-config-B3QOs3Kt.cjs";
3
3
 
4
4
  //#region src/plugin/parallel-plugin-implementation.d.ts
5
5
  type ParallelPluginImplementation = Plugin;
@@ -1,5 +1,5 @@
1
- import "./shared/binding-COE5UL-B.mjs";
2
- import { MaybePromise, Plugin } from "./shared/define-config-DfOVOsx6.mjs";
1
+ import "./shared/binding-CFhvYkVn.mjs";
2
+ import { MaybePromise, Plugin } from "./shared/define-config-DtlZ1GSS.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-DSyjeX7n.cjs');
1
+ const require_parse_ast_index = require('./shared/parse-ast-index-DBzcfyxO.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 { ParseResult, ParserOptions } from "./shared/binding-BIqlUgrm.cjs";
1
+ import { ParseResult, ParserOptions } from "./shared/binding-DQk9TN_A.cjs";
2
2
  import { Program } from "@oxc-project/types";
3
3
 
4
4
  //#region src/parse-ast-index.d.ts
@@ -1,4 +1,4 @@
1
- import { ParseResult, ParserOptions } from "./shared/binding-COE5UL-B.mjs";
1
+ import { ParseResult, ParserOptions } from "./shared/binding-CFhvYkVn.mjs";
2
2
  import { Program } from "@oxc-project/types";
3
3
 
4
4
  //#region src/parse-ast-index.d.ts
@@ -1,3 +1,3 @@
1
- import { parseAst, parseAstAsync } from "./shared/parse-ast-index-B5ThufKy.mjs";
1
+ import { parseAst, parseAstAsync } from "./shared/parse-ast-index-BsbuAWqn.mjs";
2
2
 
3
3
  export { parseAst, parseAstAsync };
@@ -857,7 +857,7 @@ interface StyledComponentsOptions {
857
857
  * from this list, the directory name will be used instead of the file name for
858
858
  * the component's display name.
859
859
  *
860
- * @default ["index"]
860
+ * @default `["index"]`
861
861
  */
862
862
  meaninglessFileNames?: Array<string>;
863
863
  /**
@@ -920,8 +920,8 @@ interface TransformOptions {
920
920
  *
921
921
  * Example:
922
922
  *
923
- * * 'es2015'
924
- * * ['es2020', 'chrome58', 'edge16', 'firefox57', 'node12', 'safari11']
923
+ * * `'es2015'`
924
+ * * `['es2020', 'chrome58', 'edge16', 'firefox57', 'node12', 'safari11']`
925
925
  *
926
926
  * @default `esnext` (No transformation)
927
927
  *
@@ -1226,6 +1226,7 @@ type BindingJsonPluginStringify = boolean | string;
1226
1226
  interface BindingManifestPluginConfig {
1227
1227
  root: string;
1228
1228
  outPath: string;
1229
+ isLegacy?: () => boolean;
1229
1230
  cssEntries: () => Set<string>;
1230
1231
  }
1231
1232
  interface BindingMinifyOptions {
@@ -857,7 +857,7 @@ interface StyledComponentsOptions {
857
857
  * from this list, the directory name will be used instead of the file name for
858
858
  * the component's display name.
859
859
  *
860
- * @default ["index"]
860
+ * @default `["index"]`
861
861
  */
862
862
  meaninglessFileNames?: Array<string>;
863
863
  /**
@@ -920,8 +920,8 @@ interface TransformOptions {
920
920
  *
921
921
  * Example:
922
922
  *
923
- * * 'es2015'
924
- * * ['es2020', 'chrome58', 'edge16', 'firefox57', 'node12', 'safari11']
923
+ * * `'es2015'`
924
+ * * `['es2020', 'chrome58', 'edge16', 'firefox57', 'node12', 'safari11']`
925
925
  *
926
926
  * @default `esnext` (No transformation)
927
927
  *
@@ -1226,6 +1226,7 @@ type BindingJsonPluginStringify = boolean | string;
1226
1226
  interface BindingManifestPluginConfig {
1227
1227
  root: string;
1228
1228
  outPath: string;
1229
+ isLegacy?: () => boolean;
1229
1230
  cssEntries: () => Set<string>;
1230
1231
  }
1231
1232
  interface BindingMinifyOptions {
@@ -1,4 +1,4 @@
1
- import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingBundlerImpl, BindingDynamicImportVarsPluginConfig, BindingHmrUpdate, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMinifyOptions, BindingModulePreloadPolyfillPluginConfig, BindingRenderedChunk, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWasmHelperPluginConfig, BindingWatcherEvent, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding-BIqlUgrm.cjs";
1
+ import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingBundlerImpl, BindingDynamicImportVarsPluginConfig, BindingHmrUpdate, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMinifyOptions, BindingModulePreloadPolyfillPluginConfig, BindingRenderedChunk, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWasmHelperPluginConfig, BindingWatcherEvent, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding-DQk9TN_A.cjs";
2
2
  import { Program } from "@oxc-project/types";
3
3
  import { TopLevelFilterExpression } from "@rolldown/pluginutils";
4
4
 
@@ -543,6 +543,7 @@ interface NormalizedInputOptions {
543
543
  cwd: string | undefined;
544
544
  platform: InputOptions["platform"];
545
545
  shimMissingExports: boolean;
546
+ context: string;
546
547
  }
547
548
  //#endregion
548
549
  //#region src/options/normalized-output-options.d.ts
@@ -1117,6 +1118,11 @@ interface InputOptions {
1117
1118
  /**
1118
1119
  * Expected platform where the code run.
1119
1120
  *
1121
+ * When the platform is set to neutral:
1122
+ * - When bundling is enabled the default output format is set to esm, which uses the export syntax introduced with ECMAScript 2015 (i.e. ES6). You can change the output format if this default is not appropriate.
1123
+ * - The main fields setting is empty by default. If you want to use npm-style packages, you will likely have to configure this to be something else such as main for the standard main field used by node.
1124
+ * - The conditions setting does not automatically include any platform-specific values.
1125
+ *
1120
1126
  * @default
1121
1127
  * - 'node' if the format is 'cjs'
1122
1128
  * - 'browser' for other formats
@@ -1,4 +1,4 @@
1
- import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingBundlerImpl, BindingDynamicImportVarsPluginConfig, BindingHmrUpdate, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMinifyOptions, BindingModulePreloadPolyfillPluginConfig, BindingRenderedChunk, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWasmHelperPluginConfig, BindingWatcherEvent, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding-COE5UL-B.mjs";
1
+ import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingBundlerImpl, BindingDynamicImportVarsPluginConfig, BindingHmrUpdate, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMinifyOptions, BindingModulePreloadPolyfillPluginConfig, BindingRenderedChunk, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWasmHelperPluginConfig, BindingWatcherEvent, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding-CFhvYkVn.mjs";
2
2
  import { TopLevelFilterExpression } from "@rolldown/pluginutils";
3
3
  import { Program } from "@oxc-project/types";
4
4
 
@@ -543,6 +543,7 @@ interface NormalizedInputOptions {
543
543
  cwd: string | undefined;
544
544
  platform: InputOptions["platform"];
545
545
  shimMissingExports: boolean;
546
+ context: string;
546
547
  }
547
548
  //#endregion
548
549
  //#region src/options/normalized-output-options.d.ts
@@ -1117,6 +1118,11 @@ interface InputOptions {
1117
1118
  /**
1118
1119
  * Expected platform where the code run.
1119
1120
  *
1121
+ * When the platform is set to neutral:
1122
+ * - When bundling is enabled the default output format is set to esm, which uses the export syntax introduced with ECMAScript 2015 (i.e. ES6). You can change the output format if this default is not appropriate.
1123
+ * - The main fields setting is empty by default. If you want to use npm-style packages, you will likely have to configure this to be something else such as main for the standard main field used by node.
1124
+ * - The conditions setting does not automatically include any platform-specific values.
1125
+ *
1120
1126
  * @default
1121
1127
  * - 'node' if the format is 'cjs'
1122
1128
  * - 'browser' for other formats
@@ -1,5 +1,5 @@
1
1
  const require_chunk = require('./chunk-DDkG_k5U.cjs');
2
- const require_src = require('./src-aI0ysjSj.cjs');
2
+ const require_src = require('./src-DZTBSVJk.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"));
@@ -1,4 +1,4 @@
1
- import { rolldown } from "./src-CJyr8NNX.mjs";
1
+ import { rolldown } from "./src-D1dc6nJr.mjs";
2
2
  import fs from "node:fs";
3
3
  import path from "node:path";
4
4
  import { pathToFileURL } from "node:url";