rolldown 1.0.0-beta.14 → 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-B4cY4d9y.d.mts → binding-CZdobbZA.d.cts} +13 -2
- package/dist/shared/{binding-By50amn5.d.cts → binding-Dze8QVpf.d.mts} +13 -2
- package/dist/shared/{define-config-CioySh-o.d.mts → define-config-BE-fkZNW.d.cts} +4 -3
- package/dist/shared/{define-config-DpEXoypA.d.cts → define-config-De_1kjGz.d.mts} +4 -3
- package/dist/shared/{load-config-mPgOxE8k.cjs → load-config-B_I2Y5pw.cjs} +1 -1
- package/dist/shared/{load-config-6EnnR32w.mjs → load-config-boWC9jkw.mjs} +1 -1
- package/dist/shared/{src-CdNvaaQW.cjs → src-1MEZZF7I.cjs} +27 -6
- package/dist/shared/{src-BRzcPljC.mjs → src-CDrhwVYn.mjs} +23 -7
- package/package.json +17 -16
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,7 +1295,7 @@ interface BindingInputOptions {
|
|
|
1294
1295
|
debug?: BindingDebugOptions;
|
|
1295
1296
|
invalidateJsSideCache?: () => void;
|
|
1296
1297
|
markModuleLoaded?: (id: string, success: boolean) => void;
|
|
1297
|
-
preserveEntrySignatures?:
|
|
1298
|
+
preserveEntrySignatures?: BindingPreserveEntrySignatures;
|
|
1298
1299
|
}
|
|
1299
1300
|
interface BindingIsolatedDeclarationPluginConfig {
|
|
1300
1301
|
stripInternal?: boolean;
|
|
@@ -1373,6 +1374,9 @@ interface BindingModuleFederationPluginOption {
|
|
|
1373
1374
|
manifest?: BindingMfManifest;
|
|
1374
1375
|
getPublicPath?: string;
|
|
1375
1376
|
}
|
|
1377
|
+
interface BindingModulePreloadPolyfillPluginConfig {
|
|
1378
|
+
isServer?: boolean;
|
|
1379
|
+
}
|
|
1376
1380
|
interface BindingModules {
|
|
1377
1381
|
values: Array<BindingRenderedModule>;
|
|
1378
1382
|
keys: Array<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,7 +1295,7 @@ interface BindingInputOptions {
|
|
|
1294
1295
|
debug?: BindingDebugOptions;
|
|
1295
1296
|
invalidateJsSideCache?: () => void;
|
|
1296
1297
|
markModuleLoaded?: (id: string, success: boolean) => void;
|
|
1297
|
-
preserveEntrySignatures?:
|
|
1298
|
+
preserveEntrySignatures?: BindingPreserveEntrySignatures;
|
|
1298
1299
|
}
|
|
1299
1300
|
interface BindingIsolatedDeclarationPluginConfig {
|
|
1300
1301
|
stripInternal?: boolean;
|
|
@@ -1373,6 +1374,9 @@ interface BindingModuleFederationPluginOption {
|
|
|
1373
1374
|
manifest?: BindingMfManifest;
|
|
1374
1375
|
getPublicPath?: string;
|
|
1375
1376
|
}
|
|
1377
|
+
interface BindingModulePreloadPolyfillPluginConfig {
|
|
1378
|
+
isServer?: boolean;
|
|
1379
|
+
}
|
|
1376
1380
|
interface BindingModules {
|
|
1377
1381
|
values: Array<BindingRenderedModule>;
|
|
1378
1382
|
keys: Array<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,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, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, Bundler, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding-CZdobbZA.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";
|
|
@@ -523,6 +523,7 @@ interface EmittedChunk {
|
|
|
523
523
|
type: "chunk";
|
|
524
524
|
name?: string;
|
|
525
525
|
fileName?: string;
|
|
526
|
+
preserveSignature?: "strict" | "allow-extension" | "exports-only" | false;
|
|
526
527
|
id: string;
|
|
527
528
|
importer?: string;
|
|
528
529
|
}
|
|
@@ -600,7 +601,7 @@ declare class BuiltinPlugin {
|
|
|
600
601
|
_options?: unknown;
|
|
601
602
|
constructor(name: BindingBuiltinPluginName, _options?: unknown);
|
|
602
603
|
}
|
|
603
|
-
declare function modulePreloadPolyfillPlugin(): BuiltinPlugin;
|
|
604
|
+
declare function modulePreloadPolyfillPlugin(config?: BindingModulePreloadPolyfillPluginConfig): BuiltinPlugin;
|
|
604
605
|
declare function dynamicImportVarsPlugin(config?: BindingDynamicImportVarsPluginConfig): BuiltinPlugin;
|
|
605
606
|
declare function importGlobPlugin(config?: BindingImportGlobPluginConfig): BuiltinPlugin;
|
|
606
607
|
declare function reporterPlugin(config?: BindingReporterPluginConfig): BuiltinPlugin;
|
|
@@ -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, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, Bundler, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding-Dze8QVpf.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";
|
|
@@ -523,6 +523,7 @@ interface EmittedChunk {
|
|
|
523
523
|
type: "chunk";
|
|
524
524
|
name?: string;
|
|
525
525
|
fileName?: string;
|
|
526
|
+
preserveSignature?: "strict" | "allow-extension" | "exports-only" | false;
|
|
526
527
|
id: string;
|
|
527
528
|
importer?: string;
|
|
528
529
|
}
|
|
@@ -600,7 +601,7 @@ declare class BuiltinPlugin {
|
|
|
600
601
|
_options?: unknown;
|
|
601
602
|
constructor(name: BindingBuiltinPluginName, _options?: unknown);
|
|
602
603
|
}
|
|
603
|
-
declare function modulePreloadPolyfillPlugin(): BuiltinPlugin;
|
|
604
|
+
declare function modulePreloadPolyfillPlugin(config?: BindingModulePreloadPolyfillPluginConfig): BuiltinPlugin;
|
|
604
605
|
declare function dynamicImportVarsPlugin(config?: BindingDynamicImportVarsPluginConfig): BuiltinPlugin;
|
|
605
606
|
declare function importGlobPlugin(config?: BindingImportGlobPluginConfig): BuiltinPlugin;
|
|
606
607
|
declare function reporterPlugin(config?: BindingReporterPluginConfig): BuiltinPlugin;
|
|
@@ -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.14";
|
|
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);
|
|
@@ -64,7 +64,8 @@ function loadFallbackPlugin() {
|
|
|
64
64
|
return new BuiltinPlugin("builtin:load-fallback");
|
|
65
65
|
}
|
|
66
66
|
function jsonPlugin(config) {
|
|
67
|
-
|
|
67
|
+
const builtinPlugin = new BuiltinPlugin("builtin:json", config);
|
|
68
|
+
return makeBuiltinPluginCallable(builtinPlugin);
|
|
68
69
|
}
|
|
69
70
|
function buildImportAnalysisPlugin(config) {
|
|
70
71
|
return new BuiltinPlugin("builtin:build-import-analysis", config);
|
|
@@ -2660,7 +2661,10 @@ var PluginContextImpl = class extends MinimalPluginContextImpl {
|
|
|
2660
2661
|
}
|
|
2661
2662
|
emitFile = (file) => {
|
|
2662
2663
|
if (file.type === "prebuilt-chunk") return require_misc.unimplemented("PluginContext.emitFile with type prebuilt-chunk");
|
|
2663
|
-
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
|
+
});
|
|
2664
2668
|
const fnSanitizedFileName = file.fileName || typeof this.outputOptions.sanitizeFileName !== "function" ? void 0 : this.outputOptions.sanitizeFileName(file.name || "asset");
|
|
2665
2669
|
const filename = file.fileName ? void 0 : this.getAssetFileNames(file);
|
|
2666
2670
|
return this.context.emitFile({
|
|
@@ -3816,7 +3820,7 @@ function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, normali
|
|
|
3816
3820
|
debug: inputOptions.debug,
|
|
3817
3821
|
invalidateJsSideCache: pluginContextData.clear.bind(pluginContextData),
|
|
3818
3822
|
markModuleLoaded: pluginContextData.markModuleLoaded.bind(pluginContextData),
|
|
3819
|
-
preserveEntrySignatures: inputOptions.preserveEntrySignatures
|
|
3823
|
+
preserveEntrySignatures: bindingifyPreserveEntrySignatures(inputOptions.preserveEntrySignatures)
|
|
3820
3824
|
};
|
|
3821
3825
|
}
|
|
3822
3826
|
function bindingifyHmr(hmr) {
|
|
@@ -3952,6 +3956,17 @@ function bindingifyMakeAbsoluteExternalsRelative(makeAbsoluteExternalsRelative)
|
|
|
3952
3956
|
field0: makeAbsoluteExternalsRelative
|
|
3953
3957
|
};
|
|
3954
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
|
+
}
|
|
3955
3970
|
|
|
3956
3971
|
//#endregion
|
|
3957
3972
|
//#region src/utils/plugin/index.ts
|
|
@@ -4628,6 +4643,12 @@ Object.defineProperty(exports, 'PluginContextData', {
|
|
|
4628
4643
|
return PluginContextData;
|
|
4629
4644
|
}
|
|
4630
4645
|
});
|
|
4646
|
+
Object.defineProperty(exports, 'PluginDriver', {
|
|
4647
|
+
enumerable: true,
|
|
4648
|
+
get: function () {
|
|
4649
|
+
return PluginDriver;
|
|
4650
|
+
}
|
|
4651
|
+
});
|
|
4631
4652
|
Object.defineProperty(exports, 'VERSION', {
|
|
4632
4653
|
enumerable: true,
|
|
4633
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.14";
|
|
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);
|
|
@@ -61,7 +61,8 @@ function loadFallbackPlugin() {
|
|
|
61
61
|
return new BuiltinPlugin("builtin:load-fallback");
|
|
62
62
|
}
|
|
63
63
|
function jsonPlugin(config) {
|
|
64
|
-
|
|
64
|
+
const builtinPlugin = new BuiltinPlugin("builtin:json", config);
|
|
65
|
+
return makeBuiltinPluginCallable(builtinPlugin);
|
|
65
66
|
}
|
|
66
67
|
function buildImportAnalysisPlugin(config) {
|
|
67
68
|
return new BuiltinPlugin("builtin:build-import-analysis", config);
|
|
@@ -2695,6 +2696,7 @@ var init_plugin_context = __esm({ "src/plugin/plugin-context.ts"() {
|
|
|
2695
2696
|
init_parse_ast_index();
|
|
2696
2697
|
init_minimal_plugin_context();
|
|
2697
2698
|
init_asset_source();
|
|
2699
|
+
init_bindingify_input_options();
|
|
2698
2700
|
init_misc();
|
|
2699
2701
|
init_transform_side_effects();
|
|
2700
2702
|
PluginContextImpl = class extends MinimalPluginContextImpl {
|
|
@@ -2756,7 +2758,10 @@ var init_plugin_context = __esm({ "src/plugin/plugin-context.ts"() {
|
|
|
2756
2758
|
}
|
|
2757
2759
|
emitFile = (file) => {
|
|
2758
2760
|
if (file.type === "prebuilt-chunk") return unimplemented("PluginContext.emitFile with type prebuilt-chunk");
|
|
2759
|
-
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
|
+
});
|
|
2760
2765
|
const fnSanitizedFileName = file.fileName || typeof this.outputOptions.sanitizeFileName !== "function" ? void 0 : this.outputOptions.sanitizeFileName(file.name || "asset");
|
|
2761
2766
|
const filename = file.fileName ? void 0 : this.getAssetFileNames(file);
|
|
2762
2767
|
return this.context.emitFile({
|
|
@@ -3983,7 +3988,7 @@ function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, normali
|
|
|
3983
3988
|
debug: inputOptions.debug,
|
|
3984
3989
|
invalidateJsSideCache: pluginContextData.clear.bind(pluginContextData),
|
|
3985
3990
|
markModuleLoaded: pluginContextData.markModuleLoaded.bind(pluginContextData),
|
|
3986
|
-
preserveEntrySignatures: inputOptions.preserveEntrySignatures
|
|
3991
|
+
preserveEntrySignatures: bindingifyPreserveEntrySignatures(inputOptions.preserveEntrySignatures)
|
|
3987
3992
|
};
|
|
3988
3993
|
}
|
|
3989
3994
|
function bindingifyHmr(hmr) {
|
|
@@ -4119,6 +4124,17 @@ function bindingifyMakeAbsoluteExternalsRelative(makeAbsoluteExternalsRelative)
|
|
|
4119
4124
|
field0: makeAbsoluteExternalsRelative
|
|
4120
4125
|
};
|
|
4121
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
|
+
}
|
|
4122
4138
|
var import_binding$3;
|
|
4123
4139
|
var init_bindingify_input_options = __esm({ "src/utils/bindingify-input-options.ts"() {
|
|
4124
4140
|
import_binding$3 = __toESM(require_binding());
|
|
@@ -4867,4 +4883,4 @@ var init_src = __esm({ "src/index.ts"() {
|
|
|
4867
4883
|
} });
|
|
4868
4884
|
|
|
4869
4885
|
//#endregion
|
|
4870
|
-
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.14",
|
|
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,7 +93,7 @@
|
|
|
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.14"
|
|
96
|
+
"@rolldown/pluginutils": "1.0.0-beta.14-commit.12b8061"
|
|
97
97
|
},
|
|
98
98
|
"devDependencies": {
|
|
99
99
|
"@napi-rs/cli": "3.0.0-alpha.88",
|
|
@@ -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-
|
|
125
|
-
"@rolldown/binding-
|
|
126
|
-
"@rolldown/binding-
|
|
127
|
-
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.14",
|
|
128
|
-
"@rolldown/binding-linux-arm64-
|
|
129
|
-
"@rolldown/binding-
|
|
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-
|
|
133
|
-
"@rolldown/binding-win32-
|
|
134
|
-
"@rolldown/binding-win32-
|
|
135
|
-
"@rolldown/binding-
|
|
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 #": "_",
|