rolldown 1.0.0-beta.7-commit.c2596d3 → 1.0.0-beta.8

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.
package/dist/cli.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  const require_chunk = require('./shared/chunk-qZFfknuJ.cjs');
2
- const require_src = require('./shared/src-p53hQWRH.cjs');
3
- require('./shared/parse-ast-index-3MkelEDZ.cjs');
2
+ const require_src = require('./shared/src-DStBvZXC.cjs');
3
+ require('./shared/parse-ast-index-Dfo0zI2n.cjs');
4
4
  const node_fs = require_chunk.__toESM(require("node:fs"));
5
5
  const node_path = require_chunk.__toESM(require("node:path"));
6
6
  const ansis = require_chunk.__toESM(require("ansis"));
@@ -1559,8 +1559,8 @@ async function loadConfig(configPath) {
1559
1559
  }
1560
1560
 
1561
1561
  //#endregion
1562
- //#region ../../node_modules/.pnpm/@oxc-project+runtime@0.64.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js
1563
- var require_usingCtx = require_chunk.__commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.64.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(exports, module) {
1562
+ //#region ../../node_modules/.pnpm/@oxc-project+runtime@0.65.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js
1563
+ var require_usingCtx = require_chunk.__commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.65.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(exports, module) {
1564
1564
  function _usingCtx() {
1565
1565
  var r$1 = "function" == typeof SuppressedError ? SuppressedError : function(r$2, e$1) {
1566
1566
  var n$2 = Error();
package/dist/cli.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { __commonJS, __esm, __toESM } from "./shared/chunk-DUYDk_2O.mjs";
2
- import { arraify, description, getInputCliKeys, getJsonSchema, getOutputCliKeys, init_misc, init_rolldown, init_validator, init_watch, rolldown, validateCliOptions, version, watch } from "./shared/src-DI_go7Bb.mjs";
3
- import "./shared/parse-ast-index-C93JXze5.mjs";
2
+ import { arraify, description, getInputCliKeys, getJsonSchema, getOutputCliKeys, init_misc, init_rolldown, init_validator, init_watch, rolldown, validateCliOptions, version, watch } from "./shared/src-BHF9qaCH.mjs";
3
+ import "./shared/parse-ast-index-83yhN6Wa.mjs";
4
4
  import fs from "node:fs";
5
5
  import path, { sep } from "node:path";
6
6
  import colors from "ansis";
@@ -1564,8 +1564,8 @@ var init_load_config = __esm({ "src/cli/load-config.ts"() {
1564
1564
  } });
1565
1565
 
1566
1566
  //#endregion
1567
- //#region ../../node_modules/.pnpm/@oxc-project+runtime@0.64.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js
1568
- var require_usingCtx = __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.64.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(exports, module) {
1567
+ //#region ../../node_modules/.pnpm/@oxc-project+runtime@0.65.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js
1568
+ var require_usingCtx = __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.65.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(exports, module) {
1569
1569
  function _usingCtx() {
1570
1570
  var r$1 = "function" == typeof SuppressedError ? SuppressedError : function(r$2, e$1) {
1571
1571
  var n$2 = Error();
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  const require_chunk = require('./shared/chunk-qZFfknuJ.cjs');
3
- const require_src = require('./shared/src-p53hQWRH.cjs');
4
- const require_parse_ast_index = require('./shared/parse-ast-index-3MkelEDZ.cjs');
3
+ const require_src = require('./shared/src-DStBvZXC.cjs');
4
+ const require_parse_ast_index = require('./shared/parse-ast-index-Dfo0zI2n.cjs');
5
5
  const node_url = require_chunk.__toESM(require("node:url"));
6
6
 
7
7
  //#region src/api/experimental.ts
@@ -1,5 +1,5 @@
1
- import { BindingReplacePluginConfig, BindingTransformPluginConfig, TransformOptions, TransformResult$1 as TransformResult, moduleRunnerTransform, transform } from "./shared/binding.d-CzSMPsR_.cjs";
2
- import { BuiltinPlugin, InputOptions, RolldownPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reportPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "./shared/input-options.d-Bc_A4cnr.cjs";
1
+ import { BindingReplacePluginConfig, BindingTransformPluginConfig, TransformOptions, TransformResult$1 as TransformResult, moduleRunnerTransform, transform } from "./shared/binding.d-DEKCzD_E.cjs";
2
+ import { BuiltinPlugin, InputOptions, RolldownPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reportPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "./shared/input-options.d-BBTwwo2j.cjs";
3
3
 
4
4
  //#region src/api/experimental.d.ts
5
5
  /**
@@ -1,5 +1,5 @@
1
- import { BindingReplacePluginConfig, BindingTransformPluginConfig, TransformOptions, TransformResult$1 as TransformResult, moduleRunnerTransform, transform } from "./shared/binding.d-BRtxlpZ6.mjs";
2
- import { BuiltinPlugin$1 as BuiltinPlugin, InputOptions, RolldownPlugin, 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, reportPlugin$1 as reportPlugin, viteResolvePlugin$1 as viteResolvePlugin, wasmFallbackPlugin$1 as wasmFallbackPlugin, wasmHelperPlugin$1 as wasmHelperPlugin } from "./shared/input-options.d-Bk53WsIe.mjs";
1
+ import { BindingReplacePluginConfig, BindingTransformPluginConfig, TransformOptions, TransformResult$1 as TransformResult, moduleRunnerTransform, transform } from "./shared/binding.d-SrF6q7lk.mjs";
2
+ import { BuiltinPlugin$1 as BuiltinPlugin, InputOptions, RolldownPlugin, 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, reportPlugin$1 as reportPlugin, viteResolvePlugin$1 as viteResolvePlugin, wasmFallbackPlugin$1 as wasmFallbackPlugin, wasmHelperPlugin$1 as wasmHelperPlugin } from "./shared/input-options.d-DQIoVfZi.mjs";
3
3
 
4
4
  //#region src/api/experimental.d.ts
5
5
  /**
@@ -1,5 +1,5 @@
1
- import { BuiltinPlugin, 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, reportPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "./shared/src-DI_go7Bb.mjs";
2
- import { import_binding } from "./shared/parse-ast-index-C93JXze5.mjs";
1
+ import { BuiltinPlugin, 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, reportPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "./shared/src-BHF9qaCH.mjs";
2
+ import { import_binding } from "./shared/parse-ast-index-83yhN6Wa.mjs";
3
3
  import { pathToFileURL } from "node:url";
4
4
 
5
5
  //#region src/api/experimental.ts
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
- const require_src = require('./shared/src-p53hQWRH.cjs');
2
- require('./shared/parse-ast-index-3MkelEDZ.cjs');
1
+ const require_src = require('./shared/src-DStBvZXC.cjs');
2
+ require('./shared/parse-ast-index-Dfo0zI2n.cjs');
3
3
 
4
4
  exports.VERSION = require_src.VERSION
5
5
  exports.build = require_src.build
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { PreRenderedChunk } from "./shared/binding.d-CzSMPsR_.cjs";
2
- import { AsyncPluginHooks, BuildOptions, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GetModuleInfo, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogOrStringHandler, LoggingFunction, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RollupError, RollupLog, SourceDescription, SourceMap, SourceMapInput, StringFilter, TransformPluginContext, TransformResult, VERSION, WarningHandlerWithDefault, WatchOptions, build, defineConfig, rolldown, watch, withFilter } from "./shared/input-options.d-Bc_A4cnr.cjs";
1
+ import { PreRenderedChunk } from "./shared/binding.d-DEKCzD_E.cjs";
2
+ import { AsyncPluginHooks, BuildOptions, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GetModuleInfo, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogOrStringHandler, LoggingFunction, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RollupError, RollupLog, SourceDescription, SourceMap, SourceMapInput, StringFilter, TransformPluginContext, TransformResult, VERSION, WarningHandlerWithDefault, WatchOptions, build, defineConfig, rolldown, watch, withFilter } from "./shared/input-options.d-BBTwwo2j.cjs";
3
3
 
4
4
  export { AsyncPluginHooks, BuildOptions, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GetModuleInfo, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogOrStringHandler, LoggingFunction, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, 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, RollupError, RollupLog, SourceDescription, SourceMap, SourceMapInput, StringFilter, TransformPluginContext, TransformResult, VERSION, WarningHandlerWithDefault, WatchOptions, build, defineConfig, rolldown, watch, withFilter };
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { PreRenderedChunk } from "./shared/binding.d-BRtxlpZ6.mjs";
2
- import { AsyncPluginHooks, BuildOptions, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GetModuleInfo, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogOrStringHandler, LoggingFunction, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RollupError, RollupLog, SourceDescription, SourceMap, SourceMapInput, StringFilter, TransformPluginContext, TransformResult, VERSION$1 as VERSION, WarningHandlerWithDefault, WatchOptions, build$1 as build, defineConfig$1 as defineConfig, rolldown$1 as rolldown, watch$1 as watch, withFilter$1 as withFilter } from "./shared/input-options.d-Bk53WsIe.mjs";
1
+ import { PreRenderedChunk } from "./shared/binding.d-SrF6q7lk.mjs";
2
+ import { AsyncPluginHooks, BuildOptions, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GetModuleInfo, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogOrStringHandler, LoggingFunction, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RollupError, RollupLog, SourceDescription, SourceMap, SourceMapInput, StringFilter, TransformPluginContext, TransformResult, VERSION$1 as VERSION, WarningHandlerWithDefault, WatchOptions, build$1 as build, defineConfig$1 as defineConfig, rolldown$1 as rolldown, watch$1 as watch, withFilter$1 as withFilter } from "./shared/input-options.d-DQIoVfZi.mjs";
3
3
 
4
4
  export { AsyncPluginHooks, BuildOptions, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GetModuleInfo, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogOrStringHandler, LoggingFunction, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, 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, RollupError, RollupLog, SourceDescription, SourceMap, SourceMapInput, StringFilter, TransformPluginContext, TransformResult, VERSION, WarningHandlerWithDefault, WatchOptions, build, defineConfig, rolldown, watch, withFilter };
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { VERSION, build, defineConfig, init_src, rolldown, watch, withFilter } from "./shared/src-DI_go7Bb.mjs";
2
- import "./shared/parse-ast-index-C93JXze5.mjs";
1
+ import { VERSION, build, defineConfig, init_src, rolldown, watch, withFilter } from "./shared/src-BHF9qaCH.mjs";
2
+ import "./shared/parse-ast-index-83yhN6Wa.mjs";
3
3
 
4
4
  init_src();
5
5
  export { VERSION, build, defineConfig, rolldown, watch, withFilter };
@@ -1,6 +1,6 @@
1
1
  const require_chunk = require('./shared/chunk-qZFfknuJ.cjs');
2
- const require_src = require('./shared/src-p53hQWRH.cjs');
3
- const require_parse_ast_index = require('./shared/parse-ast-index-3MkelEDZ.cjs');
2
+ const require_src = require('./shared/src-DStBvZXC.cjs');
3
+ const require_parse_ast_index = require('./shared/parse-ast-index-Dfo0zI2n.cjs');
4
4
  const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
5
5
 
6
6
  //#region src/parallel-plugin-worker.ts
@@ -1,6 +1,6 @@
1
1
  import { __commonJS } from "./shared/chunk-DUYDk_2O.mjs";
2
- import { PluginContextData, bindingifyPlugin, init_bindingify_plugin, init_plugin_context_data } from "./shared/src-DI_go7Bb.mjs";
3
- import { import_binding } from "./shared/parse-ast-index-C93JXze5.mjs";
2
+ import { PluginContextData, bindingifyPlugin, init_bindingify_plugin, init_plugin_context_data } from "./shared/src-BHF9qaCH.mjs";
3
+ import { import_binding } from "./shared/parse-ast-index-83yhN6Wa.mjs";
4
4
  import { parentPort, workerData } from "node:worker_threads";
5
5
 
6
6
  //#region src/parallel-plugin-worker.ts
@@ -1,5 +1,5 @@
1
- import "./shared/binding.d-CzSMPsR_.cjs";
2
- import { MaybePromise, Plugin } from "./shared/input-options.d-Bc_A4cnr.cjs";
1
+ import "./shared/binding.d-DEKCzD_E.cjs";
2
+ import { MaybePromise, Plugin } from "./shared/input-options.d-BBTwwo2j.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.d-BRtxlpZ6.mjs";
2
- import { MaybePromise, Plugin } from "./shared/input-options.d-Bk53WsIe.mjs";
1
+ import "./shared/binding.d-SrF6q7lk.mjs";
2
+ import { MaybePromise, Plugin } from "./shared/input-options.d-DQIoVfZi.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-3MkelEDZ.cjs');
1
+ const require_parse_ast_index = require('./shared/parse-ast-index-Dfo0zI2n.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.d-CzSMPsR_.cjs";
1
+ import { ParseResult, ParserOptions } from "./shared/binding.d-DEKCzD_E.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.d-BRtxlpZ6.mjs";
1
+ import { ParseResult, ParserOptions } from "./shared/binding.d-SrF6q7lk.mjs";
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 { init_parse_ast_index, parseAst, parseAstAsync } from "./shared/parse-ast-index-C93JXze5.mjs";
1
+ import { init_parse_ast_index, parseAst, parseAstAsync } from "./shared/parse-ast-index-83yhN6Wa.mjs";
2
2
 
3
3
  init_parse_ast_index();
4
4
  export { parseAst, parseAstAsync };
@@ -596,6 +596,20 @@ interface StaticExportEntry {
596
596
  exportName: ExportExportName
597
597
  /** The name that is used to locally access the exported value from within the importing module. */
598
598
  localName: ExportLocalName
599
+ /**
600
+ * Whether the export is a TypeScript `export type`.
601
+ *
602
+ * Examples:
603
+ *
604
+ * ```ts
605
+ * export type * from 'mod';
606
+ * export type * as ns from 'mod';
607
+ * export type { foo };
608
+ * export { type foo }:
609
+ * export type { foo } from 'mod';
610
+ * ```
611
+ */
612
+ isType: boolean
599
613
  }
600
614
  interface StaticImport {
601
615
  /** Start of import statement. */
@@ -596,6 +596,20 @@ interface StaticExportEntry {
596
596
  exportName: ExportExportName
597
597
  /** The name that is used to locally access the exported value from within the importing module. */
598
598
  localName: ExportLocalName
599
+ /**
600
+ * Whether the export is a TypeScript `export type`.
601
+ *
602
+ * Examples:
603
+ *
604
+ * ```ts
605
+ * export type * from 'mod';
606
+ * export type * as ns from 'mod';
607
+ * export type { foo };
608
+ * export { type foo }:
609
+ * export type { foo } from 'mod';
610
+ * ```
611
+ */
612
+ isType: boolean
599
613
  }
600
614
  interface StaticImport {
601
615
  /** Start of import statement. */
@@ -1,4 +1,4 @@
1
- import { BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingGlobImportPluginConfig, BindingHmrOutput, BindingHookResolveIdExtraArgs, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReportPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding.d-CzSMPsR_.cjs";
1
+ import { BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingGlobImportPluginConfig, BindingHmrOutput, BindingHookResolveIdExtraArgs, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReportPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding.d-DEKCzD_E.cjs";
2
2
  import { Program } from "@oxc-project/types";
3
3
 
4
4
  //#region src/log/logging.d.ts
@@ -1,4 +1,4 @@
1
- import { BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingGlobImportPluginConfig, BindingHmrOutput, BindingHookResolveIdExtraArgs, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReportPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding.d-BRtxlpZ6.mjs";
1
+ import { BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingGlobImportPluginConfig, BindingHmrOutput, BindingHookResolveIdExtraArgs, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReportPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding.d-SrF6q7lk.mjs";
2
2
  import { Program } from "@oxc-project/types";
3
3
 
4
4
  //#region src/log/logging.d.ts
@@ -1,5 +1,4 @@
1
1
  import { __commonJS, __esm, __require, __toESM } from "./chunk-DUYDk_2O.mjs";
2
- import colors from "ansis";
3
2
 
4
3
  //#region src/webcontainer-fallback.js
5
4
  var require_webcontainer_fallback = __commonJS({ "src/webcontainer-fallback.js"(exports, module) {
@@ -483,12 +482,6 @@ function logParseError(message) {
483
482
  message
484
483
  };
485
484
  }
486
- function logMinifyWarning() {
487
- return {
488
- code: MINIFY_WARNING,
489
- message: colors.yellow("The built-in minifier is still under development. Setting \"minify: true\" is not recommended for production use.")
490
- };
491
- }
492
485
  function logInvalidLogPosition(pluginName) {
493
486
  return {
494
487
  code: INVALID_LOG_POSITION,
@@ -556,15 +549,15 @@ function augmentCodeLocation(properties, pos, source, id) {
556
549
  properties.frame = getCodeFrame(source, line, column);
557
550
  }
558
551
  }
559
- var INVALID_LOG_POSITION, PLUGIN_ERROR, INPUT_HOOK_IN_OUTPUT_PLUGIN, CYCLE_LOADING, MULTIPLY_NOTIFY_OPTION, MINIFY_WARNING, PARSE_ERROR;
552
+ var INVALID_LOG_POSITION, PLUGIN_ERROR, INPUT_HOOK_IN_OUTPUT_PLUGIN, CYCLE_LOADING, MULTIPLY_NOTIFY_OPTION, PARSE_ERROR;
560
553
  var init_logs = __esm({ "src/log/logs.ts"() {
561
554
  init_code_frame();
562
555
  init_locate_character();
563
- INVALID_LOG_POSITION = "INVALID_LOG_POSITION", PLUGIN_ERROR = "PLUGIN_ERROR", INPUT_HOOK_IN_OUTPUT_PLUGIN = "INPUT_HOOK_IN_OUTPUT_PLUGIN", CYCLE_LOADING = "CYCLE_LOADING", MULTIPLY_NOTIFY_OPTION = "MULTIPLY_NOTIFY_OPTION", MINIFY_WARNING = "MINIFY_WARNING", PARSE_ERROR = "PARSE_ERROR";
556
+ INVALID_LOG_POSITION = "INVALID_LOG_POSITION", PLUGIN_ERROR = "PLUGIN_ERROR", INPUT_HOOK_IN_OUTPUT_PLUGIN = "INPUT_HOOK_IN_OUTPUT_PLUGIN", CYCLE_LOADING = "CYCLE_LOADING", MULTIPLY_NOTIFY_OPTION = "MULTIPLY_NOTIFY_OPTION", PARSE_ERROR = "PARSE_ERROR";
564
557
  } });
565
558
 
566
559
  //#endregion
567
- //#region ../../node_modules/.pnpm/oxc-parser@0.64.0/node_modules/oxc-parser/wrap.mjs
560
+ //#region ../../node_modules/.pnpm/oxc-parser@0.65.0/node_modules/oxc-parser/wrap.mjs
568
561
  function wrap$1(result) {
569
562
  let program, module$1, comments, errors;
570
563
  return {
@@ -600,7 +593,7 @@ function jsonParseAst(ast) {
600
593
  return value;
601
594
  });
602
595
  }
603
- var init_wrap = __esm({ "../../node_modules/.pnpm/oxc-parser@0.64.0/node_modules/oxc-parser/wrap.mjs"() {} });
596
+ var init_wrap = __esm({ "../../node_modules/.pnpm/oxc-parser@0.65.0/node_modules/oxc-parser/wrap.mjs"() {} });
604
597
 
605
598
  //#endregion
606
599
  //#region src/parse-ast-index.ts
@@ -650,4 +643,4 @@ var init_parse_ast_index = __esm({ "src/parse-ast-index.ts"() {
650
643
  } });
651
644
 
652
645
  //#endregion
653
- export { augmentCodeLocation, error, import_binding, init_logs, init_parse_ast_index, logCycleLoading, logInputHookInOutputPlugin, logInvalidLogPosition, logMinifyWarning, logMultiplyNotifyOption, logPluginError, parseAst, parseAstAsync };
646
+ export { augmentCodeLocation, error, import_binding, init_logs, init_parse_ast_index, logCycleLoading, logInputHookInOutputPlugin, logInvalidLogPosition, logMultiplyNotifyOption, logPluginError, parseAst, parseAstAsync };
@@ -1,5 +1,4 @@
1
1
  const require_chunk = require('./chunk-qZFfknuJ.cjs');
2
- const ansis = require_chunk.__toESM(require("ansis"));
3
2
 
4
3
  //#region src/webcontainer-fallback.js
5
4
  var require_webcontainer_fallback = require_chunk.__commonJS({ "src/webcontainer-fallback.js"(exports, module) {
@@ -473,19 +472,13 @@ function locate(source, search, options) {
473
472
 
474
473
  //#endregion
475
474
  //#region src/log/logs.ts
476
- const INVALID_LOG_POSITION = "INVALID_LOG_POSITION", PLUGIN_ERROR = "PLUGIN_ERROR", INPUT_HOOK_IN_OUTPUT_PLUGIN = "INPUT_HOOK_IN_OUTPUT_PLUGIN", CYCLE_LOADING = "CYCLE_LOADING", MULTIPLY_NOTIFY_OPTION = "MULTIPLY_NOTIFY_OPTION", MINIFY_WARNING = "MINIFY_WARNING", PARSE_ERROR = "PARSE_ERROR";
475
+ const INVALID_LOG_POSITION = "INVALID_LOG_POSITION", PLUGIN_ERROR = "PLUGIN_ERROR", INPUT_HOOK_IN_OUTPUT_PLUGIN = "INPUT_HOOK_IN_OUTPUT_PLUGIN", CYCLE_LOADING = "CYCLE_LOADING", MULTIPLY_NOTIFY_OPTION = "MULTIPLY_NOTIFY_OPTION", PARSE_ERROR = "PARSE_ERROR";
477
476
  function logParseError(message) {
478
477
  return {
479
478
  code: PARSE_ERROR,
480
479
  message
481
480
  };
482
481
  }
483
- function logMinifyWarning() {
484
- return {
485
- code: MINIFY_WARNING,
486
- message: ansis.default.yellow("The built-in minifier is still under development. Setting \"minify: true\" is not recommended for production use.")
487
- };
488
- }
489
482
  function logInvalidLogPosition(pluginName) {
490
483
  return {
491
484
  code: INVALID_LOG_POSITION,
@@ -555,7 +548,7 @@ function augmentCodeLocation(properties, pos, source, id) {
555
548
  }
556
549
 
557
550
  //#endregion
558
- //#region ../../node_modules/.pnpm/oxc-parser@0.64.0/node_modules/oxc-parser/wrap.mjs
551
+ //#region ../../node_modules/.pnpm/oxc-parser@0.65.0/node_modules/oxc-parser/wrap.mjs
559
552
  function wrap$1(result) {
560
553
  let program, module$1, comments, errors;
561
554
  return {
@@ -669,12 +662,6 @@ Object.defineProperty(exports, 'logInvalidLogPosition', {
669
662
  return logInvalidLogPosition;
670
663
  }
671
664
  });
672
- Object.defineProperty(exports, 'logMinifyWarning', {
673
- enumerable: true,
674
- get: function () {
675
- return logMinifyWarning;
676
- }
677
- });
678
665
  Object.defineProperty(exports, 'logMultiplyNotifyOption', {
679
666
  enumerable: true,
680
667
  get: function () {
@@ -1,14 +1,14 @@
1
1
  import { __esm } from "./chunk-DUYDk_2O.mjs";
2
- import { augmentCodeLocation, error, import_binding, init_logs, init_parse_ast_index, logCycleLoading, logInputHookInOutputPlugin, logInvalidLogPosition, logMinifyWarning, logMultiplyNotifyOption, logPluginError, parseAst } from "./parse-ast-index-C93JXze5.mjs";
2
+ import { augmentCodeLocation, error, import_binding, init_logs, init_parse_ast_index, logCycleLoading, logInputHookInOutputPlugin, logInvalidLogPosition, logMultiplyNotifyOption, logPluginError, parseAst } from "./parse-ast-index-83yhN6Wa.mjs";
3
3
  import path from "node:path";
4
- import colors from "ansis";
5
4
  import { toJsonSchema } from "@valibot/to-json-schema";
5
+ import colors from "ansis";
6
6
  import * as v from "valibot";
7
7
  import { availableParallelism } 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.7-commit.c2596d3";
11
+ var version = "1.0.0-beta.8";
12
12
  var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
13
13
 
14
14
  //#endregion
@@ -4094,7 +4094,6 @@ async function createBundlerOptions(inputOptions, outputOptions, watchMode, isCl
4094
4094
  const logLevel = inputOptions.logLevel || LOG_LEVEL_INFO;
4095
4095
  const onLog = getLogger(getObjectPlugins(inputPlugins), getOnLog(inputOptions, logLevel), logLevel, watchMode);
4096
4096
  if (!isClose) outputOptions = PluginDriver.callOutputOptionsHook([...inputPlugins, ...outputPlugins], outputOptions, onLog, logLevel, watchMode);
4097
- if (outputOptions.minify === true) onLog(LOG_LEVEL_WARN, logMinifyWarning());
4098
4097
  const normalizedOutputPlugins = await normalizePluginOption(outputOptions.plugins);
4099
4098
  let plugins = [...normalizePlugins(inputPlugins, ANONYMOUS_PLUGIN_PREFIX), ...checkOutputPluginOption(normalizePlugins(normalizedOutputPlugins, ANONYMOUS_OUTPUT_PLUGIN_PREFIX), onLog)];
4100
4099
  if (inputOptions.experimental?.enableComposingJsPlugins ?? false) plugins = composeJsPlugins(plugins);
@@ -4120,7 +4119,6 @@ async function createBundlerOptions(inputOptions, outputOptions, watchMode, isCl
4120
4119
  var init_create_bundler_option = __esm({ "src/utils/create-bundler-option.ts"() {
4121
4120
  init_logger();
4122
4121
  init_logging();
4123
- init_logs();
4124
4122
  init_plugin_driver();
4125
4123
  init_bindingify_input_options();
4126
4124
  init_bindingify_output_options();
@@ -1,15 +1,15 @@
1
1
  "use strict";
2
2
  const require_chunk = require('./chunk-qZFfknuJ.cjs');
3
- const require_parse_ast_index = require('./parse-ast-index-3MkelEDZ.cjs');
3
+ const require_parse_ast_index = require('./parse-ast-index-Dfo0zI2n.cjs');
4
4
  const node_path = require_chunk.__toESM(require("node:path"));
5
- const ansis = require_chunk.__toESM(require("ansis"));
6
5
  const __valibot_to_json_schema = require_chunk.__toESM(require("@valibot/to-json-schema"));
6
+ const ansis = require_chunk.__toESM(require("ansis"));
7
7
  const valibot = require_chunk.__toESM(require("valibot"));
8
8
  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.7-commit.c2596d3";
12
+ var version = "1.0.0-beta.8";
13
13
  var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
14
14
 
15
15
  //#endregion
@@ -2752,7 +2752,6 @@ async function createBundlerOptions(inputOptions, outputOptions, watchMode, isCl
2752
2752
  const logLevel = inputOptions.logLevel || LOG_LEVEL_INFO;
2753
2753
  const onLog = getLogger(getObjectPlugins(inputPlugins), getOnLog(inputOptions, logLevel), logLevel, watchMode);
2754
2754
  if (!isClose) outputOptions = PluginDriver.callOutputOptionsHook([...inputPlugins, ...outputPlugins], outputOptions, onLog, logLevel, watchMode);
2755
- if (outputOptions.minify === true) onLog(LOG_LEVEL_WARN, require_parse_ast_index.logMinifyWarning());
2756
2755
  const normalizedOutputPlugins = await normalizePluginOption(outputOptions.plugins);
2757
2756
  let plugins = [...normalizePlugins(inputPlugins, ANONYMOUS_PLUGIN_PREFIX), ...checkOutputPluginOption(normalizePlugins(normalizedOutputPlugins, ANONYMOUS_OUTPUT_PLUGIN_PREFIX), onLog)];
2758
2757
  if (inputOptions.experimental?.enableComposingJsPlugins ?? false) plugins = composeJsPlugins(plugins);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rolldown",
3
- "version": "1.0.0-beta.7-commit.c2596d3",
3
+ "version": "1.0.0-beta.8",
4
4
  "description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
5
5
  "type": "commonjs",
6
6
  "homepage": "https://rolldown.rs/",
@@ -82,13 +82,13 @@
82
82
  "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"
83
83
  },
84
84
  "dependencies": {
85
- "@oxc-project/types": "0.64.0",
85
+ "@oxc-project/types": "0.65.0",
86
86
  "@valibot/to-json-schema": "1.0.0",
87
87
  "ansis": "^3.17.0",
88
88
  "valibot": "1.0.0"
89
89
  },
90
90
  "peerDependencies": {
91
- "@oxc-project/runtime": "0.64.0"
91
+ "@oxc-project/runtime": "0.65.0"
92
92
  },
93
93
  "peerDependenciesMeta": {
94
94
  "@oxc-project/runtime": {
@@ -107,7 +107,7 @@
107
107
  "fs-extra": "^11.2.0",
108
108
  "glob": "^11.0.0",
109
109
  "locate-character": "^3.0.0",
110
- "oxc-parser": "^0.64.0",
110
+ "oxc-parser": "^0.65.0",
111
111
  "pathe": "^2.0.3",
112
112
  "remeda": "^2.10.0",
113
113
  "rolldown-plugin-dts": "^0.7.12",
@@ -120,21 +120,21 @@
120
120
  "typescript": "^5.7.3",
121
121
  "unbuild": "^3.0.0",
122
122
  "@rolldown/testing": "0.0.1",
123
- "rolldown": "1.0.0-beta.7-commit.c2596d3"
123
+ "rolldown": "1.0.0-beta.8"
124
124
  },
125
125
  "optionalDependencies": {
126
- "@rolldown/binding-darwin-arm64": "1.0.0-beta.7-commit.c2596d3",
127
- "@rolldown/binding-darwin-x64": "1.0.0-beta.7-commit.c2596d3",
128
- "@rolldown/binding-freebsd-x64": "1.0.0-beta.7-commit.c2596d3",
129
- "@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.7-commit.c2596d3",
130
- "@rolldown/binding-linux-arm64-musl": "1.0.0-beta.7-commit.c2596d3",
131
- "@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.7-commit.c2596d3",
132
- "@rolldown/binding-linux-x64-gnu": "1.0.0-beta.7-commit.c2596d3",
133
- "@rolldown/binding-linux-x64-musl": "1.0.0-beta.7-commit.c2596d3",
134
- "@rolldown/binding-wasm32-wasi": "1.0.0-beta.7-commit.c2596d3",
135
- "@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.7-commit.c2596d3",
136
- "@rolldown/binding-win32-x64-msvc": "1.0.0-beta.7-commit.c2596d3",
137
- "@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.7-commit.c2596d3"
126
+ "@rolldown/binding-darwin-arm64": "1.0.0-beta.8",
127
+ "@rolldown/binding-darwin-x64": "1.0.0-beta.8",
128
+ "@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.8",
129
+ "@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.8",
130
+ "@rolldown/binding-freebsd-x64": "1.0.0-beta.8",
131
+ "@rolldown/binding-linux-arm64-musl": "1.0.0-beta.8",
132
+ "@rolldown/binding-linux-x64-gnu": "1.0.0-beta.8",
133
+ "@rolldown/binding-wasm32-wasi": "1.0.0-beta.8",
134
+ "@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.8",
135
+ "@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.8",
136
+ "@rolldown/binding-win32-x64-msvc": "1.0.0-beta.8",
137
+ "@rolldown/binding-linux-x64-musl": "1.0.0-beta.8"
138
138
  },
139
139
  "scripts": {
140
140
  "# Scrips for binding #": "_",