rolldown 1.0.0-beta.13-commit.6bb8d8d → 1.0.0-beta.14
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 +2 -2
- package/dist/cli.mjs +2 -2
- package/dist/config.cjs +2 -2
- package/dist/config.d.cts +2 -2
- package/dist/config.d.mts +2 -2
- package/dist/config.mjs +2 -2
- package/dist/experimental-index.cjs +1 -1
- package/dist/experimental-index.d.cts +2 -2
- package/dist/experimental-index.d.mts +2 -2
- package/dist/experimental-index.mjs +1 -1
- package/dist/filter-index.d.cts +2 -2
- package/dist/filter-index.d.mts +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/parallel-plugin-worker.cjs +1 -1
- package/dist/parallel-plugin-worker.mjs +1 -1
- package/dist/parallel-plugin.d.cts +2 -2
- package/dist/parallel-plugin.d.mts +2 -2
- package/dist/parse-ast-index.d.cts +1 -1
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/shared/{binding-BHIN6Pwt.d.mts → binding-B4cY4d9y.d.mts} +1 -1
- package/dist/shared/{binding-TjXg6Uds.d.cts → binding-By50amn5.d.cts} +1 -1
- package/dist/shared/{define-config-DHHoUVzc.d.cts → define-config-CioySh-o.d.mts} +3 -3
- package/dist/shared/{define-config-vnzA0O7w.d.mts → define-config-DpEXoypA.d.cts} +3 -3
- package/dist/shared/{load-config-Daj_AJ7w.mjs → load-config-6EnnR32w.mjs} +1 -1
- package/dist/shared/{load-config-hS-FGC7P.cjs → load-config-mPgOxE8k.cjs} +1 -1
- package/dist/shared/{src-DvmmQAkK.mjs → src-BRzcPljC.mjs} +20 -19
- package/dist/shared/{src-Dxt-JXjd.cjs → src-CdNvaaQW.cjs} +20 -19
- package/package.json +17 -17
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-
|
|
2
|
+
const require_src = require('./shared/src-CdNvaaQW.cjs');
|
|
3
3
|
require('./shared/parse-ast-index-C53MhHqY.cjs');
|
|
4
4
|
const require_misc = require('./shared/misc-BKp5iIef.cjs');
|
|
5
|
-
const require_load_config = require('./shared/load-config-
|
|
5
|
+
const require_load_config = require('./shared/load-config-mPgOxE8k.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"));
|
package/dist/cli.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __commonJS, __esm, __toESM } from "./shared/chunk--iN_1bjD.mjs";
|
|
2
|
-
import { description, getInputCliKeys, getJsonSchema, getOutputCliKeys, init_rolldown, init_validator, init_watch, rolldown, validateCliOptions, version, watch } from "./shared/src-
|
|
2
|
+
import { description, getInputCliKeys, getJsonSchema, getOutputCliKeys, init_rolldown, init_validator, init_watch, rolldown, validateCliOptions, version, watch } from "./shared/src-BRzcPljC.mjs";
|
|
3
3
|
import "./shared/parse-ast-index-BAuPesgO.mjs";
|
|
4
4
|
import { arraify, init_misc } from "./shared/misc-DGAe2XOW.mjs";
|
|
5
|
-
import { init_load_config, loadConfig } from "./shared/load-config-
|
|
5
|
+
import { init_load_config, loadConfig } from "./shared/load-config-6EnnR32w.mjs";
|
|
6
6
|
import path, { sep } from "node:path";
|
|
7
7
|
import colors from "ansis";
|
|
8
8
|
import process$1 from "node:process";
|
package/dist/config.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_src = require('./shared/src-
|
|
1
|
+
const require_src = require('./shared/src-CdNvaaQW.cjs');
|
|
2
2
|
require('./shared/parse-ast-index-C53MhHqY.cjs');
|
|
3
3
|
require('./shared/misc-BKp5iIef.cjs');
|
|
4
|
-
const require_load_config = require('./shared/load-config-
|
|
4
|
+
const require_load_config = require('./shared/load-config-mPgOxE8k.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-
|
|
2
|
-
import { ConfigExport, defineConfig } from "./shared/define-config-
|
|
1
|
+
import "./shared/binding-By50amn5.cjs";
|
|
2
|
+
import { ConfigExport, defineConfig } from "./shared/define-config-DpEXoypA.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-
|
|
2
|
-
import { ConfigExport, defineConfig } from "./shared/define-config-
|
|
1
|
+
import "./shared/binding-B4cY4d9y.mjs";
|
|
2
|
+
import { ConfigExport, defineConfig } from "./shared/define-config-CioySh-o.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 { defineConfig, version } from "./shared/src-
|
|
1
|
+
import { defineConfig, version } from "./shared/src-BRzcPljC.mjs";
|
|
2
2
|
import "./shared/parse-ast-index-BAuPesgO.mjs";
|
|
3
3
|
import "./shared/misc-DGAe2XOW.mjs";
|
|
4
|
-
import { init_load_config, loadConfig } from "./shared/load-config-
|
|
4
|
+
import { init_load_config, loadConfig } from "./shared/load-config-6EnnR32w.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/config.ts
|
|
7
7
|
init_load_config();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('./shared/chunk-DDkG_k5U.cjs');
|
|
2
|
-
const require_src = require('./shared/src-
|
|
2
|
+
const require_src = require('./shared/src-CdNvaaQW.cjs');
|
|
3
3
|
const require_parse_ast_index = require('./shared/parse-ast-index-C53MhHqY.cjs');
|
|
4
4
|
require('./shared/misc-BKp5iIef.cjs');
|
|
5
5
|
const node_url = require_chunk.__toESM(require("node:url"));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding-
|
|
2
|
-
import { BuiltinPlugin, InputOptions, RolldownPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config-
|
|
1
|
+
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding-By50amn5.cjs";
|
|
2
|
+
import { BuiltinPlugin, InputOptions, RolldownPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config-DpEXoypA.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-
|
|
2
|
-
import { BuiltinPlugin, InputOptions, RolldownPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config-
|
|
1
|
+
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding-B4cY4d9y.mjs";
|
|
2
|
+
import { BuiltinPlugin, InputOptions, RolldownPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config-CioySh-o.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/experimental.d.ts
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __toESM } from "./shared/chunk--iN_1bjD.mjs";
|
|
2
|
-
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-
|
|
2
|
+
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-BRzcPljC.mjs";
|
|
3
3
|
import { require_binding } from "./shared/parse-ast-index-BAuPesgO.mjs";
|
|
4
4
|
import "./shared/misc-DGAe2XOW.mjs";
|
|
5
5
|
import { pathToFileURL } from "node:url";
|
package/dist/filter-index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { withFilter } from "./shared/define-config-
|
|
1
|
+
import "./shared/binding-By50amn5.cjs";
|
|
2
|
+
import { withFilter } from "./shared/define-config-DpEXoypA.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 };
|
package/dist/filter-index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { withFilter } from "./shared/define-config-
|
|
1
|
+
import "./shared/binding-B4cY4d9y.mjs";
|
|
2
|
+
import { withFilter } from "./shared/define-config-CioySh-o.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
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { PreRenderedChunk } from "./shared/binding-
|
|
2
|
-
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, 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, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch } from "./shared/define-config-
|
|
1
|
+
import { PreRenderedChunk } from "./shared/binding-By50amn5.cjs";
|
|
2
|
+
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, 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, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch } from "./shared/define-config-DpEXoypA.cjs";
|
|
3
3
|
export { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, 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, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, PreRenderedChunk, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { PreRenderedChunk } from "./shared/binding-
|
|
2
|
-
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, 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, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch } from "./shared/define-config-
|
|
1
|
+
import { PreRenderedChunk } from "./shared/binding-B4cY4d9y.mjs";
|
|
2
|
+
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, 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, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch } from "./shared/define-config-CioySh-o.mjs";
|
|
3
3
|
export { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, 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, 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,4 +1,4 @@
|
|
|
1
|
-
import { VERSION, build, defineConfig, init_src, rolldown, watch } from "./shared/src-
|
|
1
|
+
import { VERSION, build, defineConfig, init_src, rolldown, watch } from "./shared/src-BRzcPljC.mjs";
|
|
2
2
|
import "./shared/parse-ast-index-BAuPesgO.mjs";
|
|
3
3
|
import "./shared/misc-DGAe2XOW.mjs";
|
|
4
4
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('./shared/chunk-DDkG_k5U.cjs');
|
|
2
|
-
const require_src = require('./shared/src-
|
|
2
|
+
const require_src = require('./shared/src-CdNvaaQW.cjs');
|
|
3
3
|
const require_parse_ast_index = require('./shared/parse-ast-index-C53MhHqY.cjs');
|
|
4
4
|
require('./shared/misc-BKp5iIef.cjs');
|
|
5
5
|
const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __commonJS, __toESM } from "./shared/chunk--iN_1bjD.mjs";
|
|
2
|
-
import { PluginContextData, bindingifyPlugin, init_bindingify_plugin, init_plugin_context_data } from "./shared/src-
|
|
2
|
+
import { PluginContextData, bindingifyPlugin, init_bindingify_plugin, init_plugin_context_data } from "./shared/src-BRzcPljC.mjs";
|
|
3
3
|
import { require_binding } from "./shared/parse-ast-index-BAuPesgO.mjs";
|
|
4
4
|
import "./shared/misc-DGAe2XOW.mjs";
|
|
5
5
|
import { parentPort, workerData } from "node:worker_threads";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { MaybePromise, Plugin } from "./shared/define-config-
|
|
1
|
+
import "./shared/binding-By50amn5.cjs";
|
|
2
|
+
import { MaybePromise, Plugin } from "./shared/define-config-DpEXoypA.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-
|
|
2
|
-
import { MaybePromise, Plugin } from "./shared/define-config-
|
|
1
|
+
import "./shared/binding-B4cY4d9y.mjs";
|
|
2
|
+
import { MaybePromise, Plugin } from "./shared/define-config-CioySh-o.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
5
5
|
type ParallelPluginImplementation = Plugin;
|
|
@@ -1294,6 +1294,7 @@ interface BindingInputOptions {
|
|
|
1294
1294
|
debug?: BindingDebugOptions;
|
|
1295
1295
|
invalidateJsSideCache?: () => void;
|
|
1296
1296
|
markModuleLoaded?: (id: string, success: boolean) => void;
|
|
1297
|
+
preserveEntrySignatures?: 'strict' | 'allow-extension' | 'exports-only' | false;
|
|
1297
1298
|
}
|
|
1298
1299
|
interface BindingIsolatedDeclarationPluginConfig {
|
|
1299
1300
|
stripInternal?: boolean;
|
|
@@ -1415,7 +1416,6 @@ interface BindingOutputOptions {
|
|
|
1415
1416
|
preserveModules?: boolean;
|
|
1416
1417
|
virtualDirname?: string;
|
|
1417
1418
|
preserveModulesRoot?: string;
|
|
1418
|
-
preserveEntrySignatures?: 'strict' | 'allow-extension' | 'exports-only' | false;
|
|
1419
1419
|
}
|
|
1420
1420
|
interface BindingPluginContextResolvedId {
|
|
1421
1421
|
id: string;
|
|
@@ -1294,6 +1294,7 @@ interface BindingInputOptions {
|
|
|
1294
1294
|
debug?: BindingDebugOptions;
|
|
1295
1295
|
invalidateJsSideCache?: () => void;
|
|
1296
1296
|
markModuleLoaded?: (id: string, success: boolean) => void;
|
|
1297
|
+
preserveEntrySignatures?: 'strict' | 'allow-extension' | 'exports-only' | false;
|
|
1297
1298
|
}
|
|
1298
1299
|
interface BindingIsolatedDeclarationPluginConfig {
|
|
1299
1300
|
stripInternal?: boolean;
|
|
@@ -1415,7 +1416,6 @@ interface BindingOutputOptions {
|
|
|
1415
1416
|
preserveModules?: boolean;
|
|
1416
1417
|
virtualDirname?: string;
|
|
1417
1418
|
preserveModulesRoot?: string;
|
|
1418
|
-
preserveEntrySignatures?: 'strict' | 'allow-extension' | 'exports-only' | false;
|
|
1419
1419
|
}
|
|
1420
1420
|
interface BindingPluginContextResolvedId {
|
|
1421
1421
|
id: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig, BindingHmrOutput, BindingHmrOutputPatch, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingRemote, BindingRenderedChunk, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, Bundler, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding-
|
|
2
|
-
import { Program } from "@oxc-project/types";
|
|
1
|
+
import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig, BindingHmrOutput, BindingHmrOutputPatch, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingRemote, BindingRenderedChunk, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, Bundler, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding-B4cY4d9y.mjs";
|
|
3
2
|
import { TopLevelFilterExpression } from "@rolldown/pluginutils";
|
|
3
|
+
import { Program } from "@oxc-project/types";
|
|
4
4
|
|
|
5
5
|
//#region src/log/logging.d.ts
|
|
6
6
|
type LogLevel = "info" | "debug" | "warn";
|
|
@@ -282,7 +282,6 @@ interface OutputOptions {
|
|
|
282
282
|
preserveModules?: boolean;
|
|
283
283
|
virtualDirname?: string;
|
|
284
284
|
preserveModulesRoot?: string;
|
|
285
|
-
preserveEntrySignatures?: false | "strict" | "allow-extension" | "exports-only";
|
|
286
285
|
}
|
|
287
286
|
//#endregion
|
|
288
287
|
//#region src/api/build.d.ts
|
|
@@ -1028,6 +1027,7 @@ interface InputOptions {
|
|
|
1028
1027
|
debug?: {
|
|
1029
1028
|
sessionId?: string;
|
|
1030
1029
|
};
|
|
1030
|
+
preserveEntrySignatures?: false | "strict" | "allow-extension" | "exports-only";
|
|
1031
1031
|
}
|
|
1032
1032
|
//#endregion
|
|
1033
1033
|
//#region src/types/rolldown-options.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig, BindingHmrOutput, BindingHmrOutputPatch, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingRemote, BindingRenderedChunk, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, Bundler, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding-
|
|
2
|
-
import { TopLevelFilterExpression } from "@rolldown/pluginutils";
|
|
1
|
+
import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig, BindingHmrOutput, BindingHmrOutputPatch, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingRemote, BindingRenderedChunk, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, Bundler, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding-By50amn5.cjs";
|
|
3
2
|
import { Program } from "@oxc-project/types";
|
|
3
|
+
import { TopLevelFilterExpression } from "@rolldown/pluginutils";
|
|
4
4
|
|
|
5
5
|
//#region src/log/logging.d.ts
|
|
6
6
|
type LogLevel = "info" | "debug" | "warn";
|
|
@@ -282,7 +282,6 @@ interface OutputOptions {
|
|
|
282
282
|
preserveModules?: boolean;
|
|
283
283
|
virtualDirname?: string;
|
|
284
284
|
preserveModulesRoot?: string;
|
|
285
|
-
preserveEntrySignatures?: false | "strict" | "allow-extension" | "exports-only";
|
|
286
285
|
}
|
|
287
286
|
//#endregion
|
|
288
287
|
//#region src/api/build.d.ts
|
|
@@ -1028,6 +1027,7 @@ interface InputOptions {
|
|
|
1028
1027
|
debug?: {
|
|
1029
1028
|
sessionId?: string;
|
|
1030
1029
|
};
|
|
1030
|
+
preserveEntrySignatures?: false | "strict" | "allow-extension" | "exports-only";
|
|
1031
1031
|
}
|
|
1032
1032
|
//#endregion
|
|
1033
1033
|
//#region src/types/rolldown-options.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __esm } from "./chunk--iN_1bjD.mjs";
|
|
2
|
-
import { init_rolldown, rolldown } from "./src-
|
|
2
|
+
import { init_rolldown, rolldown } from "./src-BRzcPljC.mjs";
|
|
3
3
|
import fs from "node:fs";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { pathToFileURL } from "node:url";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-DDkG_k5U.cjs');
|
|
2
|
-
const require_src = require('./src-
|
|
2
|
+
const require_src = require('./src-CdNvaaQW.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"));
|
|
@@ -9,7 +9,7 @@ import os from "node:os";
|
|
|
9
9
|
import { Worker } from "node:worker_threads";
|
|
10
10
|
|
|
11
11
|
//#region package.json
|
|
12
|
-
var version = "1.0.0-beta.
|
|
12
|
+
var version = "1.0.0-beta.14";
|
|
13
13
|
var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
14
14
|
|
|
15
15
|
//#endregion
|
|
@@ -54,7 +54,8 @@ function wasmHelperPlugin() {
|
|
|
54
54
|
return new BuiltinPlugin("builtin:wasm-helper");
|
|
55
55
|
}
|
|
56
56
|
function wasmFallbackPlugin() {
|
|
57
|
-
|
|
57
|
+
const builtinPlugin = new BuiltinPlugin("builtin:wasm-fallback");
|
|
58
|
+
return makeBuiltinPluginCallable(builtinPlugin);
|
|
58
59
|
}
|
|
59
60
|
function loadFallbackPlugin() {
|
|
60
61
|
return new BuiltinPlugin("builtin:load-fallback");
|
|
@@ -2131,7 +2132,13 @@ var init_validator = __esm({ "src/utils/validator.ts"() {
|
|
|
2131
2132
|
dropLabels: pipe(optional(array(string())), description("Remove labeled statements with these label names")),
|
|
2132
2133
|
checks: optional(ChecksOptionsSchema),
|
|
2133
2134
|
keepNames: pipe(optional(boolean()), description("Keep function/class name")),
|
|
2134
|
-
debug: pipe(optional(object({ sessionId: pipe(optional(string()), description("Used to name the build.")) })), description("Enable debug mode. Emit debug information to disk. This might slow down the build process significantly."))
|
|
2135
|
+
debug: pipe(optional(object({ sessionId: pipe(optional(string()), description("Used to name the build.")) })), description("Enable debug mode. Emit debug information to disk. This might slow down the build process significantly.")),
|
|
2136
|
+
preserveEntrySignatures: pipe(optional(union([
|
|
2137
|
+
literal("strict"),
|
|
2138
|
+
literal("allow-extension"),
|
|
2139
|
+
literal("exports-only"),
|
|
2140
|
+
literal(false)
|
|
2141
|
+
])))
|
|
2135
2142
|
});
|
|
2136
2143
|
InputCliOverrideSchema = strictObject({
|
|
2137
2144
|
input: pipe(optional(array(string())), description("Entry file")),
|
|
@@ -2144,7 +2151,8 @@ var init_validator = __esm({ "src/utils/validator.ts"() {
|
|
|
2144
2151
|
literal("react"),
|
|
2145
2152
|
literal("react-jsx"),
|
|
2146
2153
|
literal("preserve")
|
|
2147
|
-
])), description("Jsx options preset"))
|
|
2154
|
+
])), description("Jsx options preset")),
|
|
2155
|
+
preserveEntrySignatures: pipe(optional(union([literal(false)])), description("Avoid facade chunks for entry points"))
|
|
2148
2156
|
});
|
|
2149
2157
|
InputCliOptionsSchema = omit(strictObject({
|
|
2150
2158
|
...InputOptionsSchema.entries,
|
|
@@ -2248,12 +2256,6 @@ var init_validator = __esm({ "src/utils/validator.ts"() {
|
|
|
2248
2256
|
}, () => `The 'true' value is not supported`)),
|
|
2249
2257
|
preserveModules: pipe(optional(boolean()), description("Preserve module structure")),
|
|
2250
2258
|
preserveModulesRoot: pipe(optional(string()), description("Put preserved modules under this path at root level")),
|
|
2251
|
-
preserveEntrySignatures: pipe(optional(union([
|
|
2252
|
-
literal("strict"),
|
|
2253
|
-
literal("allow-extension"),
|
|
2254
|
-
literal("exports-only"),
|
|
2255
|
-
literal(false)
|
|
2256
|
-
]))),
|
|
2257
2259
|
virtualDirname: optional(string())
|
|
2258
2260
|
});
|
|
2259
2261
|
getAddonDescription = (placement, wrapper) => {
|
|
@@ -2276,8 +2278,7 @@ var init_validator = __esm({ "src/utils/validator.ts"() {
|
|
|
2276
2278
|
minSize: pipe(optional(number()), description("Minimum size of the chunk")),
|
|
2277
2279
|
minShareCount: pipe(optional(number()), description("Minimum share count of the chunk"))
|
|
2278
2280
|
})), description("Global variable of UMD / IIFE dependencies (syntax: `key=value`)")),
|
|
2279
|
-
minify: pipe(optional(boolean()), description("Minify the bundled file"))
|
|
2280
|
-
preserveEntrySignatures: pipe(optional(union([literal(false)])), description("Avoid facade chunks for entry points"))
|
|
2281
|
+
minify: pipe(optional(boolean()), description("Minify the bundled file"))
|
|
2281
2282
|
});
|
|
2282
2283
|
OutputCliOptionsSchema = omit(strictObject({
|
|
2283
2284
|
...OutputOptionsSchema.entries,
|
|
@@ -3074,7 +3075,7 @@ var init_transform_rendered_chunk = __esm({ "src/utils/transform-rendered-chunk.
|
|
|
3074
3075
|
//#endregion
|
|
3075
3076
|
//#region src/utils/bindingify-output-options.ts
|
|
3076
3077
|
function bindingifyOutputOptions(outputOptions) {
|
|
3077
|
-
const { dir, format, exports, hashCharacters, sourcemap, sourcemapDebugIds, sourcemapIgnoreList, sourcemapPathTransform, name, assetFileNames, entryFileNames, chunkFileNames, cssEntryFileNames, cssChunkFileNames, banner, footer, intro, outro, esModule, globals, file, sanitizeFileName, preserveModules, virtualDirname, legalComments, preserveModulesRoot
|
|
3078
|
+
const { dir, format, exports, hashCharacters, sourcemap, sourcemapDebugIds, sourcemapIgnoreList, sourcemapPathTransform, name, assetFileNames, entryFileNames, chunkFileNames, cssEntryFileNames, cssChunkFileNames, banner, footer, intro, outro, esModule, globals, file, sanitizeFileName, preserveModules, virtualDirname, legalComments, preserveModulesRoot } = outputOptions;
|
|
3078
3079
|
return {
|
|
3079
3080
|
dir,
|
|
3080
3081
|
file: file == null ? void 0 : file,
|
|
@@ -3108,8 +3109,7 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
3108
3109
|
preserveModules,
|
|
3109
3110
|
virtualDirname,
|
|
3110
3111
|
legalComments,
|
|
3111
|
-
preserveModulesRoot
|
|
3112
|
-
preserveEntrySignatures
|
|
3112
|
+
preserveModulesRoot
|
|
3113
3113
|
};
|
|
3114
3114
|
}
|
|
3115
3115
|
function bindingifyAddon(configAddon) {
|
|
@@ -3264,13 +3264,13 @@ var init_normalized_output_options = __esm({ "src/options/normalized-output-opti
|
|
|
3264
3264
|
return this.normalizedOutputPlugins;
|
|
3265
3265
|
}
|
|
3266
3266
|
get preserveModules() {
|
|
3267
|
-
return this.preserveModules;
|
|
3267
|
+
return this.outputOptions.preserveModules || false;
|
|
3268
3268
|
}
|
|
3269
3269
|
get preserveModulesRoot() {
|
|
3270
|
-
return this.preserveModulesRoot;
|
|
3270
|
+
return this.outputOptions.preserveModulesRoot;
|
|
3271
3271
|
}
|
|
3272
3272
|
get virtualDirname() {
|
|
3273
|
-
return this.virtualDirname;
|
|
3273
|
+
return this.outputOptions.virtualDirname || "_virtual";
|
|
3274
3274
|
}
|
|
3275
3275
|
};
|
|
3276
3276
|
} });
|
|
@@ -3982,7 +3982,8 @@ function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, normali
|
|
|
3982
3982
|
makeAbsoluteExternalsRelative: bindingifyMakeAbsoluteExternalsRelative(inputOptions.makeAbsoluteExternalsRelative),
|
|
3983
3983
|
debug: inputOptions.debug,
|
|
3984
3984
|
invalidateJsSideCache: pluginContextData.clear.bind(pluginContextData),
|
|
3985
|
-
markModuleLoaded: pluginContextData.markModuleLoaded.bind(pluginContextData)
|
|
3985
|
+
markModuleLoaded: pluginContextData.markModuleLoaded.bind(pluginContextData),
|
|
3986
|
+
preserveEntrySignatures: inputOptions.preserveEntrySignatures
|
|
3986
3987
|
};
|
|
3987
3988
|
}
|
|
3988
3989
|
function bindingifyHmr(hmr) {
|
|
@@ -9,7 +9,7 @@ const node_os = require_chunk.__toESM(require("node:os"));
|
|
|
9
9
|
const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
|
|
10
10
|
|
|
11
11
|
//#region package.json
|
|
12
|
-
var version = "1.0.0-beta.
|
|
12
|
+
var version = "1.0.0-beta.14";
|
|
13
13
|
var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
14
14
|
|
|
15
15
|
//#endregion
|
|
@@ -57,7 +57,8 @@ function wasmHelperPlugin() {
|
|
|
57
57
|
return new BuiltinPlugin("builtin:wasm-helper");
|
|
58
58
|
}
|
|
59
59
|
function wasmFallbackPlugin() {
|
|
60
|
-
|
|
60
|
+
const builtinPlugin = new BuiltinPlugin("builtin:wasm-fallback");
|
|
61
|
+
return makeBuiltinPluginCallable(builtinPlugin);
|
|
61
62
|
}
|
|
62
63
|
function loadFallbackPlugin() {
|
|
63
64
|
return new BuiltinPlugin("builtin:load-fallback");
|
|
@@ -2042,7 +2043,13 @@ const InputOptionsSchema = strictObject({
|
|
|
2042
2043
|
dropLabels: pipe(optional(array(string())), description("Remove labeled statements with these label names")),
|
|
2043
2044
|
checks: optional(ChecksOptionsSchema),
|
|
2044
2045
|
keepNames: pipe(optional(boolean()), description("Keep function/class name")),
|
|
2045
|
-
debug: pipe(optional(object({ sessionId: pipe(optional(string()), description("Used to name the build.")) })), description("Enable debug mode. Emit debug information to disk. This might slow down the build process significantly."))
|
|
2046
|
+
debug: pipe(optional(object({ sessionId: pipe(optional(string()), description("Used to name the build.")) })), description("Enable debug mode. Emit debug information to disk. This might slow down the build process significantly.")),
|
|
2047
|
+
preserveEntrySignatures: pipe(optional(union([
|
|
2048
|
+
literal("strict"),
|
|
2049
|
+
literal("allow-extension"),
|
|
2050
|
+
literal("exports-only"),
|
|
2051
|
+
literal(false)
|
|
2052
|
+
])))
|
|
2046
2053
|
});
|
|
2047
2054
|
const InputCliOverrideSchema = strictObject({
|
|
2048
2055
|
input: pipe(optional(array(string())), description("Entry file")),
|
|
@@ -2055,7 +2062,8 @@ const InputCliOverrideSchema = strictObject({
|
|
|
2055
2062
|
literal("react"),
|
|
2056
2063
|
literal("react-jsx"),
|
|
2057
2064
|
literal("preserve")
|
|
2058
|
-
])), description("Jsx options preset"))
|
|
2065
|
+
])), description("Jsx options preset")),
|
|
2066
|
+
preserveEntrySignatures: pipe(optional(union([literal(false)])), description("Avoid facade chunks for entry points"))
|
|
2059
2067
|
});
|
|
2060
2068
|
const InputCliOptionsSchema = omit(strictObject({
|
|
2061
2069
|
...InputOptionsSchema.entries,
|
|
@@ -2159,12 +2167,6 @@ const OutputOptionsSchema = strictObject({
|
|
|
2159
2167
|
}, () => `The 'true' value is not supported`)),
|
|
2160
2168
|
preserveModules: pipe(optional(boolean()), description("Preserve module structure")),
|
|
2161
2169
|
preserveModulesRoot: pipe(optional(string()), description("Put preserved modules under this path at root level")),
|
|
2162
|
-
preserveEntrySignatures: pipe(optional(union([
|
|
2163
|
-
literal("strict"),
|
|
2164
|
-
literal("allow-extension"),
|
|
2165
|
-
literal("exports-only"),
|
|
2166
|
-
literal(false)
|
|
2167
|
-
]))),
|
|
2168
2170
|
virtualDirname: optional(string())
|
|
2169
2171
|
});
|
|
2170
2172
|
const getAddonDescription = (placement, wrapper) => {
|
|
@@ -2187,8 +2189,7 @@ const OutputCliOverrideSchema = strictObject({
|
|
|
2187
2189
|
minSize: pipe(optional(number()), description("Minimum size of the chunk")),
|
|
2188
2190
|
minShareCount: pipe(optional(number()), description("Minimum share count of the chunk"))
|
|
2189
2191
|
})), description("Global variable of UMD / IIFE dependencies (syntax: `key=value`)")),
|
|
2190
|
-
minify: pipe(optional(boolean()), description("Minify the bundled file"))
|
|
2191
|
-
preserveEntrySignatures: pipe(optional(union([literal(false)])), description("Avoid facade chunks for entry points"))
|
|
2192
|
+
minify: pipe(optional(boolean()), description("Minify the bundled file"))
|
|
2192
2193
|
});
|
|
2193
2194
|
const OutputCliOptionsSchema = omit(strictObject({
|
|
2194
2195
|
...OutputOptionsSchema.entries,
|
|
@@ -2953,7 +2954,7 @@ function transformChunkModules(modules) {
|
|
|
2953
2954
|
//#endregion
|
|
2954
2955
|
//#region src/utils/bindingify-output-options.ts
|
|
2955
2956
|
function bindingifyOutputOptions(outputOptions) {
|
|
2956
|
-
const { dir, format, exports: exports$1, hashCharacters, sourcemap, sourcemapDebugIds, sourcemapIgnoreList, sourcemapPathTransform, name, assetFileNames, entryFileNames, chunkFileNames, cssEntryFileNames, cssChunkFileNames, banner, footer, intro, outro, esModule, globals, file, sanitizeFileName, preserveModules, virtualDirname, legalComments, preserveModulesRoot
|
|
2957
|
+
const { dir, format, exports: exports$1, hashCharacters, sourcemap, sourcemapDebugIds, sourcemapIgnoreList, sourcemapPathTransform, name, assetFileNames, entryFileNames, chunkFileNames, cssEntryFileNames, cssChunkFileNames, banner, footer, intro, outro, esModule, globals, file, sanitizeFileName, preserveModules, virtualDirname, legalComments, preserveModulesRoot } = outputOptions;
|
|
2957
2958
|
return {
|
|
2958
2959
|
dir,
|
|
2959
2960
|
file: file == null ? void 0 : file,
|
|
@@ -2987,8 +2988,7 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
2987
2988
|
preserveModules,
|
|
2988
2989
|
virtualDirname,
|
|
2989
2990
|
legalComments,
|
|
2990
|
-
preserveModulesRoot
|
|
2991
|
-
preserveEntrySignatures
|
|
2991
|
+
preserveModulesRoot
|
|
2992
2992
|
};
|
|
2993
2993
|
}
|
|
2994
2994
|
function bindingifyAddon(configAddon) {
|
|
@@ -3131,13 +3131,13 @@ var NormalizedOutputOptionsImpl = class {
|
|
|
3131
3131
|
return this.normalizedOutputPlugins;
|
|
3132
3132
|
}
|
|
3133
3133
|
get preserveModules() {
|
|
3134
|
-
return this.preserveModules;
|
|
3134
|
+
return this.outputOptions.preserveModules || false;
|
|
3135
3135
|
}
|
|
3136
3136
|
get preserveModulesRoot() {
|
|
3137
|
-
return this.preserveModulesRoot;
|
|
3137
|
+
return this.outputOptions.preserveModulesRoot;
|
|
3138
3138
|
}
|
|
3139
3139
|
get virtualDirname() {
|
|
3140
|
-
return this.virtualDirname;
|
|
3140
|
+
return this.outputOptions.virtualDirname || "_virtual";
|
|
3141
3141
|
}
|
|
3142
3142
|
};
|
|
3143
3143
|
function normalizeAddon(value) {
|
|
@@ -3815,7 +3815,8 @@ function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, normali
|
|
|
3815
3815
|
makeAbsoluteExternalsRelative: bindingifyMakeAbsoluteExternalsRelative(inputOptions.makeAbsoluteExternalsRelative),
|
|
3816
3816
|
debug: inputOptions.debug,
|
|
3817
3817
|
invalidateJsSideCache: pluginContextData.clear.bind(pluginContextData),
|
|
3818
|
-
markModuleLoaded: pluginContextData.markModuleLoaded.bind(pluginContextData)
|
|
3818
|
+
markModuleLoaded: pluginContextData.markModuleLoaded.bind(pluginContextData),
|
|
3819
|
+
preserveEntrySignatures: inputOptions.preserveEntrySignatures
|
|
3819
3820
|
};
|
|
3820
3821
|
}
|
|
3821
3822
|
function bindingifyHmr(hmr) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rolldown",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.14",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"homepage": "https://rolldown.rs/",
|
|
@@ -93,10 +93,10 @@
|
|
|
93
93
|
"@oxc-project/runtime": "=0.72.3",
|
|
94
94
|
"@oxc-project/types": "=0.72.3",
|
|
95
95
|
"ansis": "^4.0.0",
|
|
96
|
-
"@rolldown/pluginutils": "1.0.0-beta.
|
|
96
|
+
"@rolldown/pluginutils": "1.0.0-beta.14"
|
|
97
97
|
},
|
|
98
98
|
"devDependencies": {
|
|
99
|
-
"@napi-rs/cli": "3.0.0-alpha.
|
|
99
|
+
"@napi-rs/cli": "3.0.0-alpha.88",
|
|
100
100
|
"@napi-rs/wasm-runtime": "^0.2.10",
|
|
101
101
|
"@oxc-node/cli": "^0.0.27",
|
|
102
102
|
"@rollup/plugin-json": "^6.1.0",
|
|
@@ -117,22 +117,22 @@
|
|
|
117
117
|
"typedoc": "^0.28.0",
|
|
118
118
|
"typescript": "^5.7.3",
|
|
119
119
|
"valibot": "1.1.0",
|
|
120
|
-
"rolldown": "
|
|
121
|
-
"
|
|
120
|
+
"@rolldown/testing": "0.0.1",
|
|
121
|
+
"rolldown": "1.0.0-beta.14"
|
|
122
122
|
},
|
|
123
123
|
"optionalDependencies": {
|
|
124
|
-
"@rolldown/binding-darwin-
|
|
125
|
-
"@rolldown/binding-darwin-
|
|
126
|
-
"@rolldown/binding-
|
|
127
|
-
"@rolldown/binding-linux-
|
|
128
|
-
"@rolldown/binding-
|
|
129
|
-
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.
|
|
130
|
-
"@rolldown/binding-linux-x64-
|
|
131
|
-
"@rolldown/binding-
|
|
132
|
-
"@rolldown/binding-
|
|
133
|
-
"@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.
|
|
134
|
-
"@rolldown/binding-win32-x64-msvc": "1.0.0-beta.
|
|
135
|
-
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.
|
|
124
|
+
"@rolldown/binding-darwin-x64": "1.0.0-beta.14",
|
|
125
|
+
"@rolldown/binding-darwin-arm64": "1.0.0-beta.14",
|
|
126
|
+
"@rolldown/binding-freebsd-x64": "1.0.0-beta.14",
|
|
127
|
+
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.14",
|
|
128
|
+
"@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.14",
|
|
129
|
+
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.14",
|
|
130
|
+
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.14",
|
|
131
|
+
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.14",
|
|
132
|
+
"@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.14",
|
|
133
|
+
"@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.14",
|
|
134
|
+
"@rolldown/binding-win32-x64-msvc": "1.0.0-beta.14",
|
|
135
|
+
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.14"
|
|
136
136
|
},
|
|
137
137
|
"scripts": {
|
|
138
138
|
"# Scrips for binding #": "_",
|