rolldown 1.0.0-beta.13-commit.024b632 → 1.0.0-beta.14-commit.12b8061
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 +3 -2
- package/dist/experimental-index.d.cts +2 -2
- package/dist/experimental-index.d.mts +2 -2
- package/dist/experimental-index.mjs +4 -2
- 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-CZdobbZA.d.cts} +13 -2
- package/dist/shared/{binding-TjXg6Uds.d.cts → binding-Dze8QVpf.d.mts} +13 -2
- package/dist/shared/{define-config-DHHoUVzc.d.cts → define-config-BE-fkZNW.d.cts} +4 -3
- package/dist/shared/{define-config-vnzA0O7w.d.mts → define-config-De_1kjGz.d.mts} +4 -3
- package/dist/shared/{load-config-D0HkoATh.cjs → load-config-B_I2Y5pw.cjs} +1 -1
- package/dist/shared/{load-config-DxWOIkIL.mjs → load-config-boWC9jkw.mjs} +1 -1
- package/dist/shared/{src-BaJN4Ql7.cjs → src-1MEZZF7I.cjs} +45 -23
- package/dist/shared/{src-C4JhGifd.mjs → src-CDrhwVYn.mjs} +41 -24
- package/package.json +18 -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-1MEZZF7I.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-B_I2Y5pw.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-CDrhwVYn.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-boWC9jkw.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-1MEZZF7I.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-B_I2Y5pw.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-CZdobbZA.cjs";
|
|
2
|
+
import { ConfigExport, defineConfig } from "./shared/define-config-BE-fkZNW.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-Dze8QVpf.mjs";
|
|
2
|
+
import { ConfigExport, defineConfig } from "./shared/define-config-De_1kjGz.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-CDrhwVYn.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-boWC9jkw.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-1MEZZF7I.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"));
|
|
@@ -11,7 +11,8 @@ const node_url = require_chunk.__toESM(require("node:url"));
|
|
|
11
11
|
* Calling this API will only execute the scan stage of rolldown.
|
|
12
12
|
*/
|
|
13
13
|
const experimental_scan = async (input) => {
|
|
14
|
-
const
|
|
14
|
+
const inputOptions = await require_src.PluginDriver.callOptionsHook(input);
|
|
15
|
+
const { bundler, stopWorkers } = await require_src.createBundler(inputOptions, {});
|
|
15
16
|
const output = await bundler.scan();
|
|
16
17
|
require_src.handleOutputErrors(output);
|
|
17
18
|
await stopWorkers?.();
|
|
@@ -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-CZdobbZA.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-BE-fkZNW.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-Dze8QVpf.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-De_1kjGz.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/experimental.d.ts
|
|
5
5
|
|
|
@@ -1,10 +1,11 @@
|
|
|
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, PluginDriver, assetPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, init_compose_js_plugins, init_constructors, init_create_bundler, init_normalize_string_or_regex, init_plugin_driver, init_transform_to_rollup_output, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/src-CDrhwVYn.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";
|
|
6
6
|
|
|
7
7
|
//#region src/api/experimental.ts
|
|
8
|
+
init_plugin_driver();
|
|
8
9
|
init_create_bundler();
|
|
9
10
|
init_transform_to_rollup_output();
|
|
10
11
|
/**
|
|
@@ -13,7 +14,8 @@ init_transform_to_rollup_output();
|
|
|
13
14
|
* Calling this API will only execute the scan stage of rolldown.
|
|
14
15
|
*/
|
|
15
16
|
const experimental_scan = async (input) => {
|
|
16
|
-
const
|
|
17
|
+
const inputOptions = await PluginDriver.callOptionsHook(input);
|
|
18
|
+
const { bundler, stopWorkers } = await createBundler(inputOptions, {});
|
|
17
19
|
const output = await bundler.scan();
|
|
18
20
|
handleOutputErrors(output);
|
|
19
21
|
await stopWorkers?.();
|
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-CZdobbZA.cjs";
|
|
2
|
+
import { withFilter } from "./shared/define-config-BE-fkZNW.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-Dze8QVpf.mjs";
|
|
2
|
+
import { withFilter } from "./shared/define-config-De_1kjGz.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-CZdobbZA.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-BE-fkZNW.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-Dze8QVpf.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-De_1kjGz.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-CDrhwVYn.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-1MEZZF7I.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-CDrhwVYn.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-CZdobbZA.cjs";
|
|
2
|
+
import { MaybePromise, Plugin } from "./shared/define-config-BE-fkZNW.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-Dze8QVpf.mjs";
|
|
2
|
+
import { MaybePromise, Plugin } from "./shared/define-config-De_1kjGz.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
5
5
|
type ParallelPluginImplementation = Plugin;
|
|
@@ -1171,6 +1171,7 @@ interface BindingEmittedChunk {
|
|
|
1171
1171
|
fileName?: string;
|
|
1172
1172
|
id: string;
|
|
1173
1173
|
importer?: string;
|
|
1174
|
+
preserveEntrySignatures?: BindingPreserveEntrySignatures;
|
|
1174
1175
|
}
|
|
1175
1176
|
interface BindingExperimentalHmrOptions {
|
|
1176
1177
|
host?: string;
|
|
@@ -1294,6 +1295,7 @@ interface BindingInputOptions {
|
|
|
1294
1295
|
debug?: BindingDebugOptions;
|
|
1295
1296
|
invalidateJsSideCache?: () => void;
|
|
1296
1297
|
markModuleLoaded?: (id: string, success: boolean) => void;
|
|
1298
|
+
preserveEntrySignatures?: BindingPreserveEntrySignatures;
|
|
1297
1299
|
}
|
|
1298
1300
|
interface BindingIsolatedDeclarationPluginConfig {
|
|
1299
1301
|
stripInternal?: boolean;
|
|
@@ -1372,6 +1374,9 @@ interface BindingModuleFederationPluginOption {
|
|
|
1372
1374
|
manifest?: BindingMfManifest;
|
|
1373
1375
|
getPublicPath?: string;
|
|
1374
1376
|
}
|
|
1377
|
+
interface BindingModulePreloadPolyfillPluginConfig {
|
|
1378
|
+
isServer?: boolean;
|
|
1379
|
+
}
|
|
1375
1380
|
interface BindingModules {
|
|
1376
1381
|
values: Array<BindingRenderedModule>;
|
|
1377
1382
|
keys: Array<string>;
|
|
@@ -1415,7 +1420,6 @@ interface BindingOutputOptions {
|
|
|
1415
1420
|
preserveModules?: boolean;
|
|
1416
1421
|
virtualDirname?: string;
|
|
1417
1422
|
preserveModulesRoot?: string;
|
|
1418
|
-
preserveEntrySignatures?: 'strict' | 'allow-extension' | 'exports-only' | false;
|
|
1419
1423
|
}
|
|
1420
1424
|
interface BindingPluginContextResolvedId {
|
|
1421
1425
|
id: string;
|
|
@@ -1495,6 +1499,13 @@ interface BindingPreRenderedAsset {
|
|
|
1495
1499
|
originalFileNames: Array<string>;
|
|
1496
1500
|
source: BindingAssetSource;
|
|
1497
1501
|
}
|
|
1502
|
+
type BindingPreserveEntrySignatures = {
|
|
1503
|
+
type: 'Bool';
|
|
1504
|
+
field0: boolean;
|
|
1505
|
+
} | {
|
|
1506
|
+
type: 'String';
|
|
1507
|
+
field0: string;
|
|
1508
|
+
};
|
|
1498
1509
|
interface BindingRemote {
|
|
1499
1510
|
type?: string;
|
|
1500
1511
|
entry: string;
|
|
@@ -1634,4 +1645,4 @@ interface PreRenderedChunk {
|
|
|
1634
1645
|
exports: Array<string>;
|
|
1635
1646
|
}
|
|
1636
1647
|
//#endregion
|
|
1637
|
-
export { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig, BindingHmrOutput, BindingHmrOutputPatch, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingRemote, BindingRenderedChunk, BindingReplacePluginConfig, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingTransformPluginConfig, BindingViteResolvePluginConfig, BindingWatcherEvent, Bundler, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ParseResult, ParserOptions, PreRenderedChunk, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform };
|
|
1648
|
+
export { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig, BindingHmrOutput, BindingHmrOutputPatch, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReplacePluginConfig, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingTransformPluginConfig, BindingViteResolvePluginConfig, BindingWatcherEvent, Bundler, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ParseResult, ParserOptions, PreRenderedChunk, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform };
|
|
@@ -1171,6 +1171,7 @@ interface BindingEmittedChunk {
|
|
|
1171
1171
|
fileName?: string;
|
|
1172
1172
|
id: string;
|
|
1173
1173
|
importer?: string;
|
|
1174
|
+
preserveEntrySignatures?: BindingPreserveEntrySignatures;
|
|
1174
1175
|
}
|
|
1175
1176
|
interface BindingExperimentalHmrOptions {
|
|
1176
1177
|
host?: string;
|
|
@@ -1294,6 +1295,7 @@ interface BindingInputOptions {
|
|
|
1294
1295
|
debug?: BindingDebugOptions;
|
|
1295
1296
|
invalidateJsSideCache?: () => void;
|
|
1296
1297
|
markModuleLoaded?: (id: string, success: boolean) => void;
|
|
1298
|
+
preserveEntrySignatures?: BindingPreserveEntrySignatures;
|
|
1297
1299
|
}
|
|
1298
1300
|
interface BindingIsolatedDeclarationPluginConfig {
|
|
1299
1301
|
stripInternal?: boolean;
|
|
@@ -1372,6 +1374,9 @@ interface BindingModuleFederationPluginOption {
|
|
|
1372
1374
|
manifest?: BindingMfManifest;
|
|
1373
1375
|
getPublicPath?: string;
|
|
1374
1376
|
}
|
|
1377
|
+
interface BindingModulePreloadPolyfillPluginConfig {
|
|
1378
|
+
isServer?: boolean;
|
|
1379
|
+
}
|
|
1375
1380
|
interface BindingModules {
|
|
1376
1381
|
values: Array<BindingRenderedModule>;
|
|
1377
1382
|
keys: Array<string>;
|
|
@@ -1415,7 +1420,6 @@ interface BindingOutputOptions {
|
|
|
1415
1420
|
preserveModules?: boolean;
|
|
1416
1421
|
virtualDirname?: string;
|
|
1417
1422
|
preserveModulesRoot?: string;
|
|
1418
|
-
preserveEntrySignatures?: 'strict' | 'allow-extension' | 'exports-only' | false;
|
|
1419
1423
|
}
|
|
1420
1424
|
interface BindingPluginContextResolvedId {
|
|
1421
1425
|
id: string;
|
|
@@ -1495,6 +1499,13 @@ interface BindingPreRenderedAsset {
|
|
|
1495
1499
|
originalFileNames: Array<string>;
|
|
1496
1500
|
source: BindingAssetSource;
|
|
1497
1501
|
}
|
|
1502
|
+
type BindingPreserveEntrySignatures = {
|
|
1503
|
+
type: 'Bool';
|
|
1504
|
+
field0: boolean;
|
|
1505
|
+
} | {
|
|
1506
|
+
type: 'String';
|
|
1507
|
+
field0: string;
|
|
1508
|
+
};
|
|
1498
1509
|
interface BindingRemote {
|
|
1499
1510
|
type?: string;
|
|
1500
1511
|
entry: string;
|
|
@@ -1634,4 +1645,4 @@ interface PreRenderedChunk {
|
|
|
1634
1645
|
exports: Array<string>;
|
|
1635
1646
|
}
|
|
1636
1647
|
//#endregion
|
|
1637
|
-
export { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig, BindingHmrOutput, BindingHmrOutputPatch, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingRemote, BindingRenderedChunk, BindingReplacePluginConfig, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingTransformPluginConfig, BindingViteResolvePluginConfig, BindingWatcherEvent, Bundler, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ParseResult, ParserOptions, PreRenderedChunk, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform };
|
|
1648
|
+
export { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig, BindingHmrOutput, BindingHmrOutputPatch, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReplacePluginConfig, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingTransformPluginConfig, BindingViteResolvePluginConfig, BindingWatcherEvent, Bundler, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ParseResult, ParserOptions, PreRenderedChunk, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform };
|
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
1
|
+
import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig, BindingHmrOutput, BindingHmrOutputPatch, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, Bundler, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding-CZdobbZA.cjs";
|
|
2
2
|
import { Program } from "@oxc-project/types";
|
|
3
3
|
import { TopLevelFilterExpression } from "@rolldown/pluginutils";
|
|
4
4
|
|
|
@@ -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
|
|
@@ -524,6 +523,7 @@ interface EmittedChunk {
|
|
|
524
523
|
type: "chunk";
|
|
525
524
|
name?: string;
|
|
526
525
|
fileName?: string;
|
|
526
|
+
preserveSignature?: "strict" | "allow-extension" | "exports-only" | false;
|
|
527
527
|
id: string;
|
|
528
528
|
importer?: string;
|
|
529
529
|
}
|
|
@@ -601,7 +601,7 @@ declare class BuiltinPlugin {
|
|
|
601
601
|
_options?: unknown;
|
|
602
602
|
constructor(name: BindingBuiltinPluginName, _options?: unknown);
|
|
603
603
|
}
|
|
604
|
-
declare function modulePreloadPolyfillPlugin(): BuiltinPlugin;
|
|
604
|
+
declare function modulePreloadPolyfillPlugin(config?: BindingModulePreloadPolyfillPluginConfig): BuiltinPlugin;
|
|
605
605
|
declare function dynamicImportVarsPlugin(config?: BindingDynamicImportVarsPluginConfig): BuiltinPlugin;
|
|
606
606
|
declare function importGlobPlugin(config?: BindingImportGlobPluginConfig): BuiltinPlugin;
|
|
607
607
|
declare function reporterPlugin(config?: BindingReporterPluginConfig): BuiltinPlugin;
|
|
@@ -1028,6 +1028,7 @@ interface InputOptions {
|
|
|
1028
1028
|
debug?: {
|
|
1029
1029
|
sessionId?: string;
|
|
1030
1030
|
};
|
|
1031
|
+
preserveEntrySignatures?: false | "strict" | "allow-extension" | "exports-only";
|
|
1031
1032
|
}
|
|
1032
1033
|
//#endregion
|
|
1033
1034
|
//#region src/types/rolldown-options.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
1
|
+
import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig, BindingHmrOutput, BindingHmrOutputPatch, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, Bundler, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding-Dze8QVpf.mjs";
|
|
2
2
|
import { TopLevelFilterExpression } from "@rolldown/pluginutils";
|
|
3
3
|
import { Program } from "@oxc-project/types";
|
|
4
4
|
|
|
@@ -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
|
|
@@ -524,6 +523,7 @@ interface EmittedChunk {
|
|
|
524
523
|
type: "chunk";
|
|
525
524
|
name?: string;
|
|
526
525
|
fileName?: string;
|
|
526
|
+
preserveSignature?: "strict" | "allow-extension" | "exports-only" | false;
|
|
527
527
|
id: string;
|
|
528
528
|
importer?: string;
|
|
529
529
|
}
|
|
@@ -601,7 +601,7 @@ declare class BuiltinPlugin {
|
|
|
601
601
|
_options?: unknown;
|
|
602
602
|
constructor(name: BindingBuiltinPluginName, _options?: unknown);
|
|
603
603
|
}
|
|
604
|
-
declare function modulePreloadPolyfillPlugin(): BuiltinPlugin;
|
|
604
|
+
declare function modulePreloadPolyfillPlugin(config?: BindingModulePreloadPolyfillPluginConfig): BuiltinPlugin;
|
|
605
605
|
declare function dynamicImportVarsPlugin(config?: BindingDynamicImportVarsPluginConfig): BuiltinPlugin;
|
|
606
606
|
declare function importGlobPlugin(config?: BindingImportGlobPluginConfig): BuiltinPlugin;
|
|
607
607
|
declare function reporterPlugin(config?: BindingReporterPluginConfig): BuiltinPlugin;
|
|
@@ -1028,6 +1028,7 @@ interface InputOptions {
|
|
|
1028
1028
|
debug?: {
|
|
1029
1029
|
sessionId?: string;
|
|
1030
1030
|
};
|
|
1031
|
+
preserveEntrySignatures?: false | "strict" | "allow-extension" | "exports-only";
|
|
1031
1032
|
}
|
|
1032
1033
|
//#endregion
|
|
1033
1034
|
//#region src/types/rolldown-options.d.ts
|
|
@@ -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-1MEZZF7I.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,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-CDrhwVYn.mjs";
|
|
3
3
|
import fs from "node:fs";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { pathToFileURL } from "node:url";
|
|
@@ -9,7 +9,7 @@ const node_os = require_chunk.__toESM(require("node:os"));
|
|
|
9
9
|
const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
|
|
10
10
|
|
|
11
11
|
//#region package.json
|
|
12
|
-
var version = "1.0.0-beta.
|
|
12
|
+
var version = "1.0.0-beta.14-commit.12b8061";
|
|
13
13
|
var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
14
14
|
|
|
15
15
|
//#endregion
|
|
@@ -38,8 +38,8 @@ var BuiltinPlugin = class {
|
|
|
38
38
|
this._options = _options;
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
|
-
function modulePreloadPolyfillPlugin() {
|
|
42
|
-
return new BuiltinPlugin("builtin:module-preload-polyfill");
|
|
41
|
+
function modulePreloadPolyfillPlugin(config) {
|
|
42
|
+
return new BuiltinPlugin("builtin:module-preload-polyfill", config);
|
|
43
43
|
}
|
|
44
44
|
function dynamicImportVarsPlugin(config) {
|
|
45
45
|
return new BuiltinPlugin("builtin:dynamic-import-vars", config);
|
|
@@ -57,13 +57,15 @@ 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");
|
|
64
65
|
}
|
|
65
66
|
function jsonPlugin(config) {
|
|
66
|
-
|
|
67
|
+
const builtinPlugin = new BuiltinPlugin("builtin:json", config);
|
|
68
|
+
return makeBuiltinPluginCallable(builtinPlugin);
|
|
67
69
|
}
|
|
68
70
|
function buildImportAnalysisPlugin(config) {
|
|
69
71
|
return new BuiltinPlugin("builtin:build-import-analysis", config);
|
|
@@ -2042,7 +2044,13 @@ const InputOptionsSchema = strictObject({
|
|
|
2042
2044
|
dropLabels: pipe(optional(array(string())), description("Remove labeled statements with these label names")),
|
|
2043
2045
|
checks: optional(ChecksOptionsSchema),
|
|
2044
2046
|
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."))
|
|
2047
|
+
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.")),
|
|
2048
|
+
preserveEntrySignatures: pipe(optional(union([
|
|
2049
|
+
literal("strict"),
|
|
2050
|
+
literal("allow-extension"),
|
|
2051
|
+
literal("exports-only"),
|
|
2052
|
+
literal(false)
|
|
2053
|
+
])))
|
|
2046
2054
|
});
|
|
2047
2055
|
const InputCliOverrideSchema = strictObject({
|
|
2048
2056
|
input: pipe(optional(array(string())), description("Entry file")),
|
|
@@ -2055,7 +2063,8 @@ const InputCliOverrideSchema = strictObject({
|
|
|
2055
2063
|
literal("react"),
|
|
2056
2064
|
literal("react-jsx"),
|
|
2057
2065
|
literal("preserve")
|
|
2058
|
-
])), description("Jsx options preset"))
|
|
2066
|
+
])), description("Jsx options preset")),
|
|
2067
|
+
preserveEntrySignatures: pipe(optional(union([literal(false)])), description("Avoid facade chunks for entry points"))
|
|
2059
2068
|
});
|
|
2060
2069
|
const InputCliOptionsSchema = omit(strictObject({
|
|
2061
2070
|
...InputOptionsSchema.entries,
|
|
@@ -2159,12 +2168,6 @@ const OutputOptionsSchema = strictObject({
|
|
|
2159
2168
|
}, () => `The 'true' value is not supported`)),
|
|
2160
2169
|
preserveModules: pipe(optional(boolean()), description("Preserve module structure")),
|
|
2161
2170
|
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
2171
|
virtualDirname: optional(string())
|
|
2169
2172
|
});
|
|
2170
2173
|
const getAddonDescription = (placement, wrapper) => {
|
|
@@ -2187,8 +2190,7 @@ const OutputCliOverrideSchema = strictObject({
|
|
|
2187
2190
|
minSize: pipe(optional(number()), description("Minimum size of the chunk")),
|
|
2188
2191
|
minShareCount: pipe(optional(number()), description("Minimum share count of the chunk"))
|
|
2189
2192
|
})), 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"))
|
|
2193
|
+
minify: pipe(optional(boolean()), description("Minify the bundled file"))
|
|
2192
2194
|
});
|
|
2193
2195
|
const OutputCliOptionsSchema = omit(strictObject({
|
|
2194
2196
|
...OutputOptionsSchema.entries,
|
|
@@ -2659,7 +2661,10 @@ var PluginContextImpl = class extends MinimalPluginContextImpl {
|
|
|
2659
2661
|
}
|
|
2660
2662
|
emitFile = (file) => {
|
|
2661
2663
|
if (file.type === "prebuilt-chunk") return require_misc.unimplemented("PluginContext.emitFile with type prebuilt-chunk");
|
|
2662
|
-
if (file.type === "chunk") return this.context.emitChunk(
|
|
2664
|
+
if (file.type === "chunk") return this.context.emitChunk({
|
|
2665
|
+
preserveEntrySignatures: bindingifyPreserveEntrySignatures(file.preserveSignature),
|
|
2666
|
+
...file
|
|
2667
|
+
});
|
|
2663
2668
|
const fnSanitizedFileName = file.fileName || typeof this.outputOptions.sanitizeFileName !== "function" ? void 0 : this.outputOptions.sanitizeFileName(file.name || "asset");
|
|
2664
2669
|
const filename = file.fileName ? void 0 : this.getAssetFileNames(file);
|
|
2665
2670
|
return this.context.emitFile({
|
|
@@ -2953,7 +2958,7 @@ function transformChunkModules(modules) {
|
|
|
2953
2958
|
//#endregion
|
|
2954
2959
|
//#region src/utils/bindingify-output-options.ts
|
|
2955
2960
|
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
|
|
2961
|
+
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
2962
|
return {
|
|
2958
2963
|
dir,
|
|
2959
2964
|
file: file == null ? void 0 : file,
|
|
@@ -2987,8 +2992,7 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
2987
2992
|
preserveModules,
|
|
2988
2993
|
virtualDirname,
|
|
2989
2994
|
legalComments,
|
|
2990
|
-
preserveModulesRoot
|
|
2991
|
-
preserveEntrySignatures
|
|
2995
|
+
preserveModulesRoot
|
|
2992
2996
|
};
|
|
2993
2997
|
}
|
|
2994
2998
|
function bindingifyAddon(configAddon) {
|
|
@@ -3131,13 +3135,13 @@ var NormalizedOutputOptionsImpl = class {
|
|
|
3131
3135
|
return this.normalizedOutputPlugins;
|
|
3132
3136
|
}
|
|
3133
3137
|
get preserveModules() {
|
|
3134
|
-
return this.preserveModules;
|
|
3138
|
+
return this.outputOptions.preserveModules || false;
|
|
3135
3139
|
}
|
|
3136
3140
|
get preserveModulesRoot() {
|
|
3137
|
-
return this.preserveModulesRoot;
|
|
3141
|
+
return this.outputOptions.preserveModulesRoot;
|
|
3138
3142
|
}
|
|
3139
3143
|
get virtualDirname() {
|
|
3140
|
-
return this.virtualDirname;
|
|
3144
|
+
return this.outputOptions.virtualDirname || "_virtual";
|
|
3141
3145
|
}
|
|
3142
3146
|
};
|
|
3143
3147
|
function normalizeAddon(value) {
|
|
@@ -3815,7 +3819,8 @@ function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, normali
|
|
|
3815
3819
|
makeAbsoluteExternalsRelative: bindingifyMakeAbsoluteExternalsRelative(inputOptions.makeAbsoluteExternalsRelative),
|
|
3816
3820
|
debug: inputOptions.debug,
|
|
3817
3821
|
invalidateJsSideCache: pluginContextData.clear.bind(pluginContextData),
|
|
3818
|
-
markModuleLoaded: pluginContextData.markModuleLoaded.bind(pluginContextData)
|
|
3822
|
+
markModuleLoaded: pluginContextData.markModuleLoaded.bind(pluginContextData),
|
|
3823
|
+
preserveEntrySignatures: bindingifyPreserveEntrySignatures(inputOptions.preserveEntrySignatures)
|
|
3819
3824
|
};
|
|
3820
3825
|
}
|
|
3821
3826
|
function bindingifyHmr(hmr) {
|
|
@@ -3951,6 +3956,17 @@ function bindingifyMakeAbsoluteExternalsRelative(makeAbsoluteExternalsRelative)
|
|
|
3951
3956
|
field0: makeAbsoluteExternalsRelative
|
|
3952
3957
|
};
|
|
3953
3958
|
}
|
|
3959
|
+
function bindingifyPreserveEntrySignatures(preserveEntrySignatures) {
|
|
3960
|
+
if (preserveEntrySignatures == void 0) return void 0;
|
|
3961
|
+
else if (typeof preserveEntrySignatures === "string") return {
|
|
3962
|
+
type: "String",
|
|
3963
|
+
field0: preserveEntrySignatures
|
|
3964
|
+
};
|
|
3965
|
+
else return {
|
|
3966
|
+
type: "Bool",
|
|
3967
|
+
field0: preserveEntrySignatures
|
|
3968
|
+
};
|
|
3969
|
+
}
|
|
3954
3970
|
|
|
3955
3971
|
//#endregion
|
|
3956
3972
|
//#region src/utils/plugin/index.ts
|
|
@@ -4627,6 +4643,12 @@ Object.defineProperty(exports, 'PluginContextData', {
|
|
|
4627
4643
|
return PluginContextData;
|
|
4628
4644
|
}
|
|
4629
4645
|
});
|
|
4646
|
+
Object.defineProperty(exports, 'PluginDriver', {
|
|
4647
|
+
enumerable: true,
|
|
4648
|
+
get: function () {
|
|
4649
|
+
return PluginDriver;
|
|
4650
|
+
}
|
|
4651
|
+
});
|
|
4630
4652
|
Object.defineProperty(exports, 'VERSION', {
|
|
4631
4653
|
enumerable: true,
|
|
4632
4654
|
get: function () {
|
|
@@ -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-commit.12b8061";
|
|
13
13
|
var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
14
14
|
|
|
15
15
|
//#endregion
|
|
@@ -35,8 +35,8 @@ var init_utils = __esm({ "src/builtin-plugin/utils.ts"() {
|
|
|
35
35
|
|
|
36
36
|
//#endregion
|
|
37
37
|
//#region src/builtin-plugin/constructors.ts
|
|
38
|
-
function modulePreloadPolyfillPlugin() {
|
|
39
|
-
return new BuiltinPlugin("builtin:module-preload-polyfill");
|
|
38
|
+
function modulePreloadPolyfillPlugin(config) {
|
|
39
|
+
return new BuiltinPlugin("builtin:module-preload-polyfill", config);
|
|
40
40
|
}
|
|
41
41
|
function dynamicImportVarsPlugin(config) {
|
|
42
42
|
return new BuiltinPlugin("builtin:dynamic-import-vars", config);
|
|
@@ -54,13 +54,15 @@ 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");
|
|
61
62
|
}
|
|
62
63
|
function jsonPlugin(config) {
|
|
63
|
-
|
|
64
|
+
const builtinPlugin = new BuiltinPlugin("builtin:json", config);
|
|
65
|
+
return makeBuiltinPluginCallable(builtinPlugin);
|
|
64
66
|
}
|
|
65
67
|
function buildImportAnalysisPlugin(config) {
|
|
66
68
|
return new BuiltinPlugin("builtin:build-import-analysis", config);
|
|
@@ -2131,7 +2133,13 @@ var init_validator = __esm({ "src/utils/validator.ts"() {
|
|
|
2131
2133
|
dropLabels: pipe(optional(array(string())), description("Remove labeled statements with these label names")),
|
|
2132
2134
|
checks: optional(ChecksOptionsSchema),
|
|
2133
2135
|
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."))
|
|
2136
|
+
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.")),
|
|
2137
|
+
preserveEntrySignatures: pipe(optional(union([
|
|
2138
|
+
literal("strict"),
|
|
2139
|
+
literal("allow-extension"),
|
|
2140
|
+
literal("exports-only"),
|
|
2141
|
+
literal(false)
|
|
2142
|
+
])))
|
|
2135
2143
|
});
|
|
2136
2144
|
InputCliOverrideSchema = strictObject({
|
|
2137
2145
|
input: pipe(optional(array(string())), description("Entry file")),
|
|
@@ -2144,7 +2152,8 @@ var init_validator = __esm({ "src/utils/validator.ts"() {
|
|
|
2144
2152
|
literal("react"),
|
|
2145
2153
|
literal("react-jsx"),
|
|
2146
2154
|
literal("preserve")
|
|
2147
|
-
])), description("Jsx options preset"))
|
|
2155
|
+
])), description("Jsx options preset")),
|
|
2156
|
+
preserveEntrySignatures: pipe(optional(union([literal(false)])), description("Avoid facade chunks for entry points"))
|
|
2148
2157
|
});
|
|
2149
2158
|
InputCliOptionsSchema = omit(strictObject({
|
|
2150
2159
|
...InputOptionsSchema.entries,
|
|
@@ -2248,12 +2257,6 @@ var init_validator = __esm({ "src/utils/validator.ts"() {
|
|
|
2248
2257
|
}, () => `The 'true' value is not supported`)),
|
|
2249
2258
|
preserveModules: pipe(optional(boolean()), description("Preserve module structure")),
|
|
2250
2259
|
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
2260
|
virtualDirname: optional(string())
|
|
2258
2261
|
});
|
|
2259
2262
|
getAddonDescription = (placement, wrapper) => {
|
|
@@ -2276,8 +2279,7 @@ var init_validator = __esm({ "src/utils/validator.ts"() {
|
|
|
2276
2279
|
minSize: pipe(optional(number()), description("Minimum size of the chunk")),
|
|
2277
2280
|
minShareCount: pipe(optional(number()), description("Minimum share count of the chunk"))
|
|
2278
2281
|
})), 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"))
|
|
2282
|
+
minify: pipe(optional(boolean()), description("Minify the bundled file"))
|
|
2281
2283
|
});
|
|
2282
2284
|
OutputCliOptionsSchema = omit(strictObject({
|
|
2283
2285
|
...OutputOptionsSchema.entries,
|
|
@@ -2694,6 +2696,7 @@ var init_plugin_context = __esm({ "src/plugin/plugin-context.ts"() {
|
|
|
2694
2696
|
init_parse_ast_index();
|
|
2695
2697
|
init_minimal_plugin_context();
|
|
2696
2698
|
init_asset_source();
|
|
2699
|
+
init_bindingify_input_options();
|
|
2697
2700
|
init_misc();
|
|
2698
2701
|
init_transform_side_effects();
|
|
2699
2702
|
PluginContextImpl = class extends MinimalPluginContextImpl {
|
|
@@ -2755,7 +2758,10 @@ var init_plugin_context = __esm({ "src/plugin/plugin-context.ts"() {
|
|
|
2755
2758
|
}
|
|
2756
2759
|
emitFile = (file) => {
|
|
2757
2760
|
if (file.type === "prebuilt-chunk") return unimplemented("PluginContext.emitFile with type prebuilt-chunk");
|
|
2758
|
-
if (file.type === "chunk") return this.context.emitChunk(
|
|
2761
|
+
if (file.type === "chunk") return this.context.emitChunk({
|
|
2762
|
+
preserveEntrySignatures: bindingifyPreserveEntrySignatures(file.preserveSignature),
|
|
2763
|
+
...file
|
|
2764
|
+
});
|
|
2759
2765
|
const fnSanitizedFileName = file.fileName || typeof this.outputOptions.sanitizeFileName !== "function" ? void 0 : this.outputOptions.sanitizeFileName(file.name || "asset");
|
|
2760
2766
|
const filename = file.fileName ? void 0 : this.getAssetFileNames(file);
|
|
2761
2767
|
return this.context.emitFile({
|
|
@@ -3074,7 +3080,7 @@ var init_transform_rendered_chunk = __esm({ "src/utils/transform-rendered-chunk.
|
|
|
3074
3080
|
//#endregion
|
|
3075
3081
|
//#region src/utils/bindingify-output-options.ts
|
|
3076
3082
|
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
|
|
3083
|
+
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
3084
|
return {
|
|
3079
3085
|
dir,
|
|
3080
3086
|
file: file == null ? void 0 : file,
|
|
@@ -3108,8 +3114,7 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
3108
3114
|
preserveModules,
|
|
3109
3115
|
virtualDirname,
|
|
3110
3116
|
legalComments,
|
|
3111
|
-
preserveModulesRoot
|
|
3112
|
-
preserveEntrySignatures
|
|
3117
|
+
preserveModulesRoot
|
|
3113
3118
|
};
|
|
3114
3119
|
}
|
|
3115
3120
|
function bindingifyAddon(configAddon) {
|
|
@@ -3264,13 +3269,13 @@ var init_normalized_output_options = __esm({ "src/options/normalized-output-opti
|
|
|
3264
3269
|
return this.normalizedOutputPlugins;
|
|
3265
3270
|
}
|
|
3266
3271
|
get preserveModules() {
|
|
3267
|
-
return this.preserveModules;
|
|
3272
|
+
return this.outputOptions.preserveModules || false;
|
|
3268
3273
|
}
|
|
3269
3274
|
get preserveModulesRoot() {
|
|
3270
|
-
return this.preserveModulesRoot;
|
|
3275
|
+
return this.outputOptions.preserveModulesRoot;
|
|
3271
3276
|
}
|
|
3272
3277
|
get virtualDirname() {
|
|
3273
|
-
return this.virtualDirname;
|
|
3278
|
+
return this.outputOptions.virtualDirname || "_virtual";
|
|
3274
3279
|
}
|
|
3275
3280
|
};
|
|
3276
3281
|
} });
|
|
@@ -3982,7 +3987,8 @@ function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, normali
|
|
|
3982
3987
|
makeAbsoluteExternalsRelative: bindingifyMakeAbsoluteExternalsRelative(inputOptions.makeAbsoluteExternalsRelative),
|
|
3983
3988
|
debug: inputOptions.debug,
|
|
3984
3989
|
invalidateJsSideCache: pluginContextData.clear.bind(pluginContextData),
|
|
3985
|
-
markModuleLoaded: pluginContextData.markModuleLoaded.bind(pluginContextData)
|
|
3990
|
+
markModuleLoaded: pluginContextData.markModuleLoaded.bind(pluginContextData),
|
|
3991
|
+
preserveEntrySignatures: bindingifyPreserveEntrySignatures(inputOptions.preserveEntrySignatures)
|
|
3986
3992
|
};
|
|
3987
3993
|
}
|
|
3988
3994
|
function bindingifyHmr(hmr) {
|
|
@@ -4118,6 +4124,17 @@ function bindingifyMakeAbsoluteExternalsRelative(makeAbsoluteExternalsRelative)
|
|
|
4118
4124
|
field0: makeAbsoluteExternalsRelative
|
|
4119
4125
|
};
|
|
4120
4126
|
}
|
|
4127
|
+
function bindingifyPreserveEntrySignatures(preserveEntrySignatures) {
|
|
4128
|
+
if (preserveEntrySignatures == void 0) return void 0;
|
|
4129
|
+
else if (typeof preserveEntrySignatures === "string") return {
|
|
4130
|
+
type: "String",
|
|
4131
|
+
field0: preserveEntrySignatures
|
|
4132
|
+
};
|
|
4133
|
+
else return {
|
|
4134
|
+
type: "Bool",
|
|
4135
|
+
field0: preserveEntrySignatures
|
|
4136
|
+
};
|
|
4137
|
+
}
|
|
4121
4138
|
var import_binding$3;
|
|
4122
4139
|
var init_bindingify_input_options = __esm({ "src/utils/bindingify-input-options.ts"() {
|
|
4123
4140
|
import_binding$3 = __toESM(require_binding());
|
|
@@ -4866,4 +4883,4 @@ var init_src = __esm({ "src/index.ts"() {
|
|
|
4866
4883
|
} });
|
|
4867
4884
|
|
|
4868
4885
|
//#endregion
|
|
4869
|
-
export { BuiltinPlugin, PluginContextData, VERSION, assetPlugin, bindingifyPlugin, build, buildImportAnalysisPlugin, composeJsPlugins, createBundler, defineConfig, description$1 as description, dynamicImportVarsPlugin, getInputCliKeys, getJsonSchema, getOutputCliKeys, handleOutputErrors, importGlobPlugin, init_bindingify_plugin, init_compose_js_plugins, init_constructors, init_create_bundler, init_normalize_string_or_regex, init_plugin_context_data, init_rolldown, init_src, init_transform_to_rollup_output, init_validator, init_watch, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, rolldown, validateCliOptions, version, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, watch, webWorkerPostPlugin };
|
|
4886
|
+
export { BuiltinPlugin, PluginContextData, PluginDriver, VERSION, assetPlugin, bindingifyPlugin, build, buildImportAnalysisPlugin, composeJsPlugins, createBundler, defineConfig, description$1 as description, dynamicImportVarsPlugin, getInputCliKeys, getJsonSchema, getOutputCliKeys, handleOutputErrors, importGlobPlugin, init_bindingify_plugin, init_compose_js_plugins, init_constructors, init_create_bundler, init_normalize_string_or_regex, init_plugin_context_data, init_plugin_driver, init_rolldown, init_src, init_transform_to_rollup_output, init_validator, init_watch, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, rolldown, validateCliOptions, version, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, watch, webWorkerPostPlugin };
|
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-commit.12b8061",
|
|
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-commit.12b8061"
|
|
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",
|
|
@@ -107,6 +107,7 @@
|
|
|
107
107
|
"execa": "^9.2.0",
|
|
108
108
|
"glob": "^11.0.0",
|
|
109
109
|
"oxc-parser": "=0.72.3",
|
|
110
|
+
"pathe": "^2.0.3",
|
|
110
111
|
"remeda": "^2.10.0",
|
|
111
112
|
"rolldown-plugin-dts": "^0.13.6",
|
|
112
113
|
"rollup": "^4.18.0",
|
|
@@ -117,22 +118,22 @@
|
|
|
117
118
|
"typedoc": "^0.28.0",
|
|
118
119
|
"typescript": "^5.7.3",
|
|
119
120
|
"valibot": "1.1.0",
|
|
120
|
-
"
|
|
121
|
-
"rolldown": "
|
|
121
|
+
"rolldown": "1.0.0-beta.14-commit.12b8061",
|
|
122
|
+
"@rolldown/testing": "0.0.1"
|
|
122
123
|
},
|
|
123
124
|
"optionalDependencies": {
|
|
124
|
-
"@rolldown/binding-darwin-arm64": "1.0.0-beta.
|
|
125
|
-
"@rolldown/binding-
|
|
126
|
-
"@rolldown/binding-linux-
|
|
127
|
-
"@rolldown/binding-linux-
|
|
128
|
-
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.
|
|
129
|
-
"@rolldown/binding-
|
|
130
|
-
"@rolldown/binding-linux-x64-
|
|
131
|
-
"@rolldown/binding-
|
|
132
|
-
"@rolldown/binding-
|
|
133
|
-
"@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.
|
|
134
|
-
"@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.
|
|
135
|
-
"@rolldown/binding-win32-x64-msvc": "1.0.0-beta.
|
|
125
|
+
"@rolldown/binding-darwin-arm64": "1.0.0-beta.14-commit.12b8061",
|
|
126
|
+
"@rolldown/binding-freebsd-x64": "1.0.0-beta.14-commit.12b8061",
|
|
127
|
+
"@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.14-commit.12b8061",
|
|
128
|
+
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.14-commit.12b8061",
|
|
129
|
+
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.14-commit.12b8061",
|
|
130
|
+
"@rolldown/binding-darwin-x64": "1.0.0-beta.14-commit.12b8061",
|
|
131
|
+
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.14-commit.12b8061",
|
|
132
|
+
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.14-commit.12b8061",
|
|
133
|
+
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.14-commit.12b8061",
|
|
134
|
+
"@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.14-commit.12b8061",
|
|
135
|
+
"@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.14-commit.12b8061",
|
|
136
|
+
"@rolldown/binding-win32-x64-msvc": "1.0.0-beta.14-commit.12b8061"
|
|
136
137
|
},
|
|
137
138
|
"scripts": {
|
|
138
139
|
"# Scrips for binding #": "_",
|