@rolldown/browser 1.0.0-beta.13-commit.6bb8d8d → 1.0.0-beta.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.cjs +2 -2
- package/dist/cli.mjs +2 -2
- package/dist/config.cjs +2 -2
- package/dist/config.d.cts +2 -2
- package/dist/config.d.mts +2 -2
- package/dist/config.mjs +2 -2
- package/dist/experimental-index.browser.mjs +1 -1
- package/dist/experimental-index.cjs +1 -1
- package/dist/experimental-index.d.cts +2 -2
- package/dist/experimental-index.d.mts +2 -2
- package/dist/experimental-index.mjs +1 -1
- package/dist/filter-index.d.cts +2 -2
- package/dist/filter-index.d.mts +2 -2
- package/dist/index.browser.mjs +1 -1
- 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/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/shared/{binding-BHIN6Pwt.d.mts → binding-B4cY4d9y.d.mts} +1 -1
- package/dist/shared/{binding-TjXg6Uds.d.cts → binding-By50amn5.d.cts} +1 -1
- package/dist/shared/{define-config-D9yO3QIE.d.mts → define-config-CTbU8qen.d.mts} +2 -2
- package/dist/shared/{define-config-DHHoUVzc.d.cts → define-config-DpEXoypA.d.cts} +2 -2
- package/dist/shared/{load-config-BlHeaIbk.cjs → load-config-BL7e2rjR.cjs} +1 -1
- package/dist/shared/{load-config-DEAAw_j7.mjs → load-config-C0_-rrb-.mjs} +1 -1
- package/dist/shared/{src-BGjbMZFU.mjs → src-DedSB68M.mjs} +20 -19
- package/dist/shared/{src-Ca-loHqa.cjs → src-DnKb-KyP.cjs} +20 -19
- package/dist/{src-BEI9qXjQ.js → src-CFRFoSBR.js} +20 -19
- package/package.json +1 -1
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-DnKb-KyP.cjs');
|
|
3
3
|
const require_dist = require('./shared/dist-BMVjvV-v.cjs');
|
|
4
4
|
require('./shared/parse-ast-index-5MuKtufe.cjs');
|
|
5
|
-
const require_load_config = require('./shared/load-config-
|
|
5
|
+
const require_load_config = require('./shared/load-config-BL7e2rjR.cjs');
|
|
6
6
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
7
7
|
const node_process = require_chunk.__toESM(require("node:process"));
|
|
8
8
|
const node_util = require_chunk.__toESM(require("node:util"));
|
package/dist/cli.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __commonJS, __esm, __toESM } from "./shared/chunk-DSsiIF1Z.mjs";
|
|
2
|
-
import { ansis_default, description, getInputCliKeys, getJsonSchema, getOutputCliKeys, init_ansis, init_rolldown, init_validator, init_watch, rolldown, validateCliOptions, version, watch } from "./shared/src-
|
|
2
|
+
import { ansis_default, description, getInputCliKeys, getJsonSchema, getOutputCliKeys, init_ansis, init_rolldown, init_validator, init_watch, rolldown, validateCliOptions, version, watch } from "./shared/src-DedSB68M.mjs";
|
|
3
3
|
import { arraify, init_misc } from "./shared/dist-DeDsdiza.mjs";
|
|
4
4
|
import "./shared/parse-ast-index-IepkD-LB.mjs";
|
|
5
|
-
import { init_load_config, loadConfig } from "./shared/load-config-
|
|
5
|
+
import { init_load_config, loadConfig } from "./shared/load-config-C0_-rrb-.mjs";
|
|
6
6
|
import path, { sep } from "node:path";
|
|
7
7
|
import process$1 from "node:process";
|
|
8
8
|
import { formatWithOptions, parseArgs } from "node:util";
|
package/dist/config.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_src = require('./shared/src-
|
|
1
|
+
const require_src = require('./shared/src-DnKb-KyP.cjs');
|
|
2
2
|
require('./shared/dist-BMVjvV-v.cjs');
|
|
3
3
|
require('./shared/parse-ast-index-5MuKtufe.cjs');
|
|
4
|
-
const require_load_config = require('./shared/load-config-
|
|
4
|
+
const require_load_config = require('./shared/load-config-BL7e2rjR.cjs');
|
|
5
5
|
|
|
6
6
|
//#region src/config.ts
|
|
7
7
|
const VERSION = require_src.version;
|
package/dist/config.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { ConfigExport, defineConfig } from "./shared/define-config-
|
|
1
|
+
import "./shared/binding-By50amn5.cjs";
|
|
2
|
+
import { ConfigExport, defineConfig } from "./shared/define-config-DpEXoypA.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/load-config.d.ts
|
|
5
5
|
declare function loadConfig(configPath: string): Promise<ConfigExport>;
|
package/dist/config.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { ConfigExport, defineConfig } from "./shared/define-config-
|
|
1
|
+
import "./shared/binding-B4cY4d9y.mjs";
|
|
2
|
+
import { ConfigExport, defineConfig } from "./shared/define-config-CTbU8qen.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-DedSB68M.mjs";
|
|
2
2
|
import "./shared/dist-DeDsdiza.mjs";
|
|
3
3
|
import "./shared/parse-ast-index-IepkD-LB.mjs";
|
|
4
|
-
import { init_load_config, loadConfig } from "./shared/load-config-
|
|
4
|
+
import { init_load_config, loadConfig } from "./shared/load-config-C0_-rrb-.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/config.ts
|
|
7
7
|
init_load_config();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BuiltinPlugin, assetPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./src-
|
|
1
|
+
import { BuiltinPlugin, assetPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./src-CFRFoSBR.js";
|
|
2
2
|
import { ResolverFactory, isolatedDeclaration, moduleRunnerTransform, transform } from "./rolldown-binding.wasi-browser.js";
|
|
3
3
|
|
|
4
4
|
//#region src/api/experimental.ts
|
|
@@ -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-DnKb-KyP.cjs');
|
|
3
3
|
require('./shared/dist-BMVjvV-v.cjs');
|
|
4
4
|
require('./shared/parse-ast-index-5MuKtufe.cjs');
|
|
5
5
|
const src_rolldown_binding_wasi_cjs = require_chunk.__toESM(require("./rolldown-binding.wasi.cjs"));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding-
|
|
2
|
-
import { BuiltinPlugin, InputOptions, RolldownPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config-
|
|
1
|
+
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding-By50amn5.cjs";
|
|
2
|
+
import { BuiltinPlugin, InputOptions, RolldownPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config-DpEXoypA.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/experimental.d.ts
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding-
|
|
2
|
-
import { BuiltinPlugin, InputOptions, RolldownPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config-
|
|
1
|
+
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding-B4cY4d9y.mjs";
|
|
2
|
+
import { BuiltinPlugin, InputOptions, RolldownPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config-CTbU8qen.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/experimental.d.ts
|
|
5
5
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
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-
|
|
1
|
+
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-DedSB68M.mjs";
|
|
2
2
|
import "./shared/dist-DeDsdiza.mjs";
|
|
3
3
|
import "./shared/parse-ast-index-IepkD-LB.mjs";
|
|
4
4
|
import { ResolverFactory, isolatedDeclaration, moduleRunnerTransform, transform } from "./rolldown-binding.wasi.cjs";
|
package/dist/filter-index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { withFilter } from "./shared/define-config-
|
|
1
|
+
import "./shared/binding-By50amn5.cjs";
|
|
2
|
+
import { withFilter } from "./shared/define-config-DpEXoypA.cjs";
|
|
3
3
|
import { and, code, exclude, id, include, moduleType, not, or, queries, query } from "@rolldown/pluginutils";
|
|
4
4
|
export { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter };
|
package/dist/filter-index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { withFilter } from "./shared/define-config-
|
|
1
|
+
import "./shared/binding-B4cY4d9y.mjs";
|
|
2
|
+
import { withFilter } from "./shared/define-config-CTbU8qen.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.browser.mjs
CHANGED
package/dist/index.cjs
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { PreRenderedChunk } from "./shared/binding-
|
|
2
|
-
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch } from "./shared/define-config-
|
|
1
|
+
import { PreRenderedChunk } from "./shared/binding-By50amn5.cjs";
|
|
2
|
+
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch } from "./shared/define-config-DpEXoypA.cjs";
|
|
3
3
|
export { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, PreRenderedChunk, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { PreRenderedChunk } from "./shared/binding-
|
|
2
|
-
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch } from "./shared/define-config-
|
|
1
|
+
import { PreRenderedChunk } from "./shared/binding-B4cY4d9y.mjs";
|
|
2
|
+
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch } from "./shared/define-config-CTbU8qen.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-DedSB68M.mjs";
|
|
2
2
|
import "./shared/dist-DeDsdiza.mjs";
|
|
3
3
|
import "./shared/parse-ast-index-IepkD-LB.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-DnKb-KyP.cjs');
|
|
3
3
|
require('./shared/dist-BMVjvV-v.cjs');
|
|
4
4
|
require('./shared/parse-ast-index-5MuKtufe.cjs');
|
|
5
5
|
const src_rolldown_binding_wasi_cjs = require_chunk.__toESM(require("./rolldown-binding.wasi.cjs"));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __commonJS } from "./shared/chunk-DSsiIF1Z.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-DedSB68M.mjs";
|
|
3
3
|
import "./shared/dist-DeDsdiza.mjs";
|
|
4
4
|
import "./shared/parse-ast-index-IepkD-LB.mjs";
|
|
5
5
|
import { registerPlugins } from "./rolldown-binding.wasi.cjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { MaybePromise, Plugin } from "./shared/define-config-
|
|
1
|
+
import "./shared/binding-By50amn5.cjs";
|
|
2
|
+
import { MaybePromise, Plugin } from "./shared/define-config-DpEXoypA.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
5
5
|
type ParallelPluginImplementation = Plugin;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { MaybePromise, Plugin } from "./shared/define-config-
|
|
1
|
+
import "./shared/binding-B4cY4d9y.mjs";
|
|
2
|
+
import { MaybePromise, Plugin } from "./shared/define-config-CTbU8qen.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
5
5
|
type ParallelPluginImplementation = Plugin;
|
|
Binary file
|
|
@@ -1294,6 +1294,7 @@ interface BindingInputOptions {
|
|
|
1294
1294
|
debug?: BindingDebugOptions;
|
|
1295
1295
|
invalidateJsSideCache?: () => void;
|
|
1296
1296
|
markModuleLoaded?: (id: string, success: boolean) => void;
|
|
1297
|
+
preserveEntrySignatures?: 'strict' | 'allow-extension' | 'exports-only' | false;
|
|
1297
1298
|
}
|
|
1298
1299
|
interface BindingIsolatedDeclarationPluginConfig {
|
|
1299
1300
|
stripInternal?: boolean;
|
|
@@ -1415,7 +1416,6 @@ interface BindingOutputOptions {
|
|
|
1415
1416
|
preserveModules?: boolean;
|
|
1416
1417
|
virtualDirname?: string;
|
|
1417
1418
|
preserveModulesRoot?: string;
|
|
1418
|
-
preserveEntrySignatures?: 'strict' | 'allow-extension' | 'exports-only' | false;
|
|
1419
1419
|
}
|
|
1420
1420
|
interface BindingPluginContextResolvedId {
|
|
1421
1421
|
id: string;
|
|
@@ -1294,6 +1294,7 @@ interface BindingInputOptions {
|
|
|
1294
1294
|
debug?: BindingDebugOptions;
|
|
1295
1295
|
invalidateJsSideCache?: () => void;
|
|
1296
1296
|
markModuleLoaded?: (id: string, success: boolean) => void;
|
|
1297
|
+
preserveEntrySignatures?: 'strict' | 'allow-extension' | 'exports-only' | false;
|
|
1297
1298
|
}
|
|
1298
1299
|
interface BindingIsolatedDeclarationPluginConfig {
|
|
1299
1300
|
stripInternal?: boolean;
|
|
@@ -1415,7 +1416,6 @@ interface BindingOutputOptions {
|
|
|
1415
1416
|
preserveModules?: boolean;
|
|
1416
1417
|
virtualDirname?: string;
|
|
1417
1418
|
preserveModulesRoot?: string;
|
|
1418
|
-
preserveEntrySignatures?: 'strict' | 'allow-extension' | 'exports-only' | false;
|
|
1419
1419
|
}
|
|
1420
1420
|
interface BindingPluginContextResolvedId {
|
|
1421
1421
|
id: string;
|
|
@@ -1,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, BindingRemote, BindingRenderedChunk, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, Bundler, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding-B4cY4d9y.mjs";
|
|
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
|
|
@@ -1028,6 +1027,7 @@ interface InputOptions {
|
|
|
1028
1027
|
debug?: {
|
|
1029
1028
|
sessionId?: string;
|
|
1030
1029
|
};
|
|
1030
|
+
preserveEntrySignatures?: false | "strict" | "allow-extension" | "exports-only";
|
|
1031
1031
|
}
|
|
1032
1032
|
//#endregion
|
|
1033
1033
|
//#region src/types/rolldown-options.d.ts
|
|
@@ -1,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, BindingRemote, BindingRenderedChunk, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, Bundler, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding-By50amn5.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
|
|
@@ -1028,6 +1027,7 @@ interface InputOptions {
|
|
|
1028
1027
|
debug?: {
|
|
1029
1028
|
sessionId?: string;
|
|
1030
1029
|
};
|
|
1030
|
+
preserveEntrySignatures?: false | "strict" | "allow-extension" | "exports-only";
|
|
1031
1031
|
}
|
|
1032
1032
|
//#endregion
|
|
1033
1033
|
//#region src/types/rolldown-options.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-DDkG_k5U.cjs');
|
|
2
|
-
const require_src = require('./src-
|
|
2
|
+
const require_src = require('./src-DnKb-KyP.cjs');
|
|
3
3
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
4
4
|
const node_url = require_chunk.__toESM(require("node:url"));
|
|
5
5
|
const node_process = require_chunk.__toESM(require("node:process"));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __esm } from "./chunk-DSsiIF1Z.mjs";
|
|
2
|
-
import { init_rolldown, rolldown } from "./src-
|
|
2
|
+
import { init_rolldown, rolldown } from "./src-DedSB68M.mjs";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { pathToFileURL } from "node:url";
|
|
5
5
|
import { cwd } from "node:process";
|
|
@@ -8,7 +8,7 @@ import os from "node:os";
|
|
|
8
8
|
import { Worker } from "node:worker_threads";
|
|
9
9
|
|
|
10
10
|
//#region package.json
|
|
11
|
-
var version = "1.0.0-beta.
|
|
11
|
+
var version = "1.0.0-beta.14";
|
|
12
12
|
var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
13
13
|
|
|
14
14
|
//#endregion
|
|
@@ -50,7 +50,8 @@ function wasmHelperPlugin() {
|
|
|
50
50
|
return new BuiltinPlugin("builtin:wasm-helper");
|
|
51
51
|
}
|
|
52
52
|
function wasmFallbackPlugin() {
|
|
53
|
-
|
|
53
|
+
const builtinPlugin = new BuiltinPlugin("builtin:wasm-fallback");
|
|
54
|
+
return makeBuiltinPluginCallable(builtinPlugin);
|
|
54
55
|
}
|
|
55
56
|
function loadFallbackPlugin() {
|
|
56
57
|
return new BuiltinPlugin("builtin:load-fallback");
|
|
@@ -2242,7 +2243,13 @@ var init_validator = __esm({ "src/utils/validator.ts"() {
|
|
|
2242
2243
|
dropLabels: pipe(optional(array(string())), description("Remove labeled statements with these label names")),
|
|
2243
2244
|
checks: optional(ChecksOptionsSchema),
|
|
2244
2245
|
keepNames: pipe(optional(boolean()), description("Keep function/class name")),
|
|
2245
|
-
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."))
|
|
2246
|
+
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.")),
|
|
2247
|
+
preserveEntrySignatures: pipe(optional(union([
|
|
2248
|
+
literal("strict"),
|
|
2249
|
+
literal("allow-extension"),
|
|
2250
|
+
literal("exports-only"),
|
|
2251
|
+
literal(false)
|
|
2252
|
+
])))
|
|
2246
2253
|
});
|
|
2247
2254
|
InputCliOverrideSchema = strictObject({
|
|
2248
2255
|
input: pipe(optional(array(string())), description("Entry file")),
|
|
@@ -2255,7 +2262,8 @@ var init_validator = __esm({ "src/utils/validator.ts"() {
|
|
|
2255
2262
|
literal("react"),
|
|
2256
2263
|
literal("react-jsx"),
|
|
2257
2264
|
literal("preserve")
|
|
2258
|
-
])), description("Jsx options preset"))
|
|
2265
|
+
])), description("Jsx options preset")),
|
|
2266
|
+
preserveEntrySignatures: pipe(optional(union([literal(false)])), description("Avoid facade chunks for entry points"))
|
|
2259
2267
|
});
|
|
2260
2268
|
InputCliOptionsSchema = omit(strictObject({
|
|
2261
2269
|
...InputOptionsSchema.entries,
|
|
@@ -2359,12 +2367,6 @@ var init_validator = __esm({ "src/utils/validator.ts"() {
|
|
|
2359
2367
|
}, () => `The 'true' value is not supported`)),
|
|
2360
2368
|
preserveModules: pipe(optional(boolean()), description("Preserve module structure")),
|
|
2361
2369
|
preserveModulesRoot: pipe(optional(string()), description("Put preserved modules under this path at root level")),
|
|
2362
|
-
preserveEntrySignatures: pipe(optional(union([
|
|
2363
|
-
literal("strict"),
|
|
2364
|
-
literal("allow-extension"),
|
|
2365
|
-
literal("exports-only"),
|
|
2366
|
-
literal(false)
|
|
2367
|
-
]))),
|
|
2368
2370
|
virtualDirname: optional(string())
|
|
2369
2371
|
});
|
|
2370
2372
|
getAddonDescription = (placement, wrapper) => {
|
|
@@ -2387,8 +2389,7 @@ var init_validator = __esm({ "src/utils/validator.ts"() {
|
|
|
2387
2389
|
minSize: pipe(optional(number()), description("Minimum size of the chunk")),
|
|
2388
2390
|
minShareCount: pipe(optional(number()), description("Minimum share count of the chunk"))
|
|
2389
2391
|
})), description("Global variable of UMD / IIFE dependencies (syntax: `key=value`)")),
|
|
2390
|
-
minify: pipe(optional(boolean()), description("Minify the bundled file"))
|
|
2391
|
-
preserveEntrySignatures: pipe(optional(union([literal(false)])), description("Avoid facade chunks for entry points"))
|
|
2392
|
+
minify: pipe(optional(boolean()), description("Minify the bundled file"))
|
|
2392
2393
|
});
|
|
2393
2394
|
OutputCliOptionsSchema = omit(strictObject({
|
|
2394
2395
|
...OutputOptionsSchema.entries,
|
|
@@ -3180,7 +3181,7 @@ var init_transform_rendered_chunk = __esm({ "src/utils/transform-rendered-chunk.
|
|
|
3180
3181
|
//#endregion
|
|
3181
3182
|
//#region src/utils/bindingify-output-options.ts
|
|
3182
3183
|
function bindingifyOutputOptions(outputOptions) {
|
|
3183
|
-
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
|
|
3184
|
+
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;
|
|
3184
3185
|
return {
|
|
3185
3186
|
dir,
|
|
3186
3187
|
file: file == null ? void 0 : file,
|
|
@@ -3214,8 +3215,7 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
3214
3215
|
preserveModules,
|
|
3215
3216
|
virtualDirname,
|
|
3216
3217
|
legalComments,
|
|
3217
|
-
preserveModulesRoot
|
|
3218
|
-
preserveEntrySignatures
|
|
3218
|
+
preserveModulesRoot
|
|
3219
3219
|
};
|
|
3220
3220
|
}
|
|
3221
3221
|
function bindingifyAddon(configAddon) {
|
|
@@ -3370,13 +3370,13 @@ var init_normalized_output_options = __esm({ "src/options/normalized-output-opti
|
|
|
3370
3370
|
return this.normalizedOutputPlugins;
|
|
3371
3371
|
}
|
|
3372
3372
|
get preserveModules() {
|
|
3373
|
-
return this.preserveModules;
|
|
3373
|
+
return this.outputOptions.preserveModules || false;
|
|
3374
3374
|
}
|
|
3375
3375
|
get preserveModulesRoot() {
|
|
3376
|
-
return this.preserveModulesRoot;
|
|
3376
|
+
return this.outputOptions.preserveModulesRoot;
|
|
3377
3377
|
}
|
|
3378
3378
|
get virtualDirname() {
|
|
3379
|
-
return this.virtualDirname;
|
|
3379
|
+
return this.outputOptions.virtualDirname || "_virtual";
|
|
3380
3380
|
}
|
|
3381
3381
|
};
|
|
3382
3382
|
} });
|
|
@@ -4088,7 +4088,8 @@ function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, normali
|
|
|
4088
4088
|
makeAbsoluteExternalsRelative: bindingifyMakeAbsoluteExternalsRelative(inputOptions.makeAbsoluteExternalsRelative),
|
|
4089
4089
|
debug: inputOptions.debug,
|
|
4090
4090
|
invalidateJsSideCache: pluginContextData.clear.bind(pluginContextData),
|
|
4091
|
-
markModuleLoaded: pluginContextData.markModuleLoaded.bind(pluginContextData)
|
|
4091
|
+
markModuleLoaded: pluginContextData.markModuleLoaded.bind(pluginContextData),
|
|
4092
|
+
preserveEntrySignatures: inputOptions.preserveEntrySignatures
|
|
4092
4093
|
};
|
|
4093
4094
|
}
|
|
4094
4095
|
function bindingifyHmr(hmr) {
|
|
@@ -8,7 +8,7 @@ const node_os = require_chunk.__toESM(require("node:os"));
|
|
|
8
8
|
const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
|
|
9
9
|
|
|
10
10
|
//#region package.json
|
|
11
|
-
var version = "1.0.0-beta.
|
|
11
|
+
var version = "1.0.0-beta.14";
|
|
12
12
|
var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
13
13
|
|
|
14
14
|
//#endregion
|
|
@@ -55,7 +55,8 @@ function wasmHelperPlugin() {
|
|
|
55
55
|
return new BuiltinPlugin("builtin:wasm-helper");
|
|
56
56
|
}
|
|
57
57
|
function wasmFallbackPlugin() {
|
|
58
|
-
|
|
58
|
+
const builtinPlugin = new BuiltinPlugin("builtin:wasm-fallback");
|
|
59
|
+
return makeBuiltinPluginCallable(builtinPlugin);
|
|
59
60
|
}
|
|
60
61
|
function loadFallbackPlugin() {
|
|
61
62
|
return new BuiltinPlugin("builtin:load-fallback");
|
|
@@ -2151,7 +2152,13 @@ const InputOptionsSchema = strictObject({
|
|
|
2151
2152
|
dropLabels: pipe(optional(array(string())), description("Remove labeled statements with these label names")),
|
|
2152
2153
|
checks: optional(ChecksOptionsSchema),
|
|
2153
2154
|
keepNames: pipe(optional(boolean()), description("Keep function/class name")),
|
|
2154
|
-
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."))
|
|
2155
|
+
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.")),
|
|
2156
|
+
preserveEntrySignatures: pipe(optional(union([
|
|
2157
|
+
literal("strict"),
|
|
2158
|
+
literal("allow-extension"),
|
|
2159
|
+
literal("exports-only"),
|
|
2160
|
+
literal(false)
|
|
2161
|
+
])))
|
|
2155
2162
|
});
|
|
2156
2163
|
const InputCliOverrideSchema = strictObject({
|
|
2157
2164
|
input: pipe(optional(array(string())), description("Entry file")),
|
|
@@ -2164,7 +2171,8 @@ const InputCliOverrideSchema = strictObject({
|
|
|
2164
2171
|
literal("react"),
|
|
2165
2172
|
literal("react-jsx"),
|
|
2166
2173
|
literal("preserve")
|
|
2167
|
-
])), description("Jsx options preset"))
|
|
2174
|
+
])), description("Jsx options preset")),
|
|
2175
|
+
preserveEntrySignatures: pipe(optional(union([literal(false)])), description("Avoid facade chunks for entry points"))
|
|
2168
2176
|
});
|
|
2169
2177
|
const InputCliOptionsSchema = omit(strictObject({
|
|
2170
2178
|
...InputOptionsSchema.entries,
|
|
@@ -2268,12 +2276,6 @@ const OutputOptionsSchema = strictObject({
|
|
|
2268
2276
|
}, () => `The 'true' value is not supported`)),
|
|
2269
2277
|
preserveModules: pipe(optional(boolean()), description("Preserve module structure")),
|
|
2270
2278
|
preserveModulesRoot: pipe(optional(string()), description("Put preserved modules under this path at root level")),
|
|
2271
|
-
preserveEntrySignatures: pipe(optional(union([
|
|
2272
|
-
literal("strict"),
|
|
2273
|
-
literal("allow-extension"),
|
|
2274
|
-
literal("exports-only"),
|
|
2275
|
-
literal(false)
|
|
2276
|
-
]))),
|
|
2277
2279
|
virtualDirname: optional(string())
|
|
2278
2280
|
});
|
|
2279
2281
|
const getAddonDescription = (placement, wrapper) => {
|
|
@@ -2296,8 +2298,7 @@ const OutputCliOverrideSchema = strictObject({
|
|
|
2296
2298
|
minSize: pipe(optional(number()), description("Minimum size of the chunk")),
|
|
2297
2299
|
minShareCount: pipe(optional(number()), description("Minimum share count of the chunk"))
|
|
2298
2300
|
})), description("Global variable of UMD / IIFE dependencies (syntax: `key=value`)")),
|
|
2299
|
-
minify: pipe(optional(boolean()), description("Minify the bundled file"))
|
|
2300
|
-
preserveEntrySignatures: pipe(optional(union([literal(false)])), description("Avoid facade chunks for entry points"))
|
|
2301
|
+
minify: pipe(optional(boolean()), description("Minify the bundled file"))
|
|
2301
2302
|
});
|
|
2302
2303
|
const OutputCliOptionsSchema = omit(strictObject({
|
|
2303
2304
|
...OutputOptionsSchema.entries,
|
|
@@ -3060,7 +3061,7 @@ function transformChunkModules(modules) {
|
|
|
3060
3061
|
//#endregion
|
|
3061
3062
|
//#region src/utils/bindingify-output-options.ts
|
|
3062
3063
|
function bindingifyOutputOptions(outputOptions) {
|
|
3063
|
-
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
|
|
3064
|
+
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;
|
|
3064
3065
|
return {
|
|
3065
3066
|
dir,
|
|
3066
3067
|
file: file == null ? void 0 : file,
|
|
@@ -3094,8 +3095,7 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
3094
3095
|
preserveModules,
|
|
3095
3096
|
virtualDirname,
|
|
3096
3097
|
legalComments,
|
|
3097
|
-
preserveModulesRoot
|
|
3098
|
-
preserveEntrySignatures
|
|
3098
|
+
preserveModulesRoot
|
|
3099
3099
|
};
|
|
3100
3100
|
}
|
|
3101
3101
|
function bindingifyAddon(configAddon) {
|
|
@@ -3238,13 +3238,13 @@ var NormalizedOutputOptionsImpl = class {
|
|
|
3238
3238
|
return this.normalizedOutputPlugins;
|
|
3239
3239
|
}
|
|
3240
3240
|
get preserveModules() {
|
|
3241
|
-
return this.preserveModules;
|
|
3241
|
+
return this.outputOptions.preserveModules || false;
|
|
3242
3242
|
}
|
|
3243
3243
|
get preserveModulesRoot() {
|
|
3244
|
-
return this.preserveModulesRoot;
|
|
3244
|
+
return this.outputOptions.preserveModulesRoot;
|
|
3245
3245
|
}
|
|
3246
3246
|
get virtualDirname() {
|
|
3247
|
-
return this.virtualDirname;
|
|
3247
|
+
return this.outputOptions.virtualDirname || "_virtual";
|
|
3248
3248
|
}
|
|
3249
3249
|
};
|
|
3250
3250
|
function normalizeAddon(value) {
|
|
@@ -3921,7 +3921,8 @@ function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, normali
|
|
|
3921
3921
|
makeAbsoluteExternalsRelative: bindingifyMakeAbsoluteExternalsRelative(inputOptions.makeAbsoluteExternalsRelative),
|
|
3922
3922
|
debug: inputOptions.debug,
|
|
3923
3923
|
invalidateJsSideCache: pluginContextData.clear.bind(pluginContextData),
|
|
3924
|
-
markModuleLoaded: pluginContextData.markModuleLoaded.bind(pluginContextData)
|
|
3924
|
+
markModuleLoaded: pluginContextData.markModuleLoaded.bind(pluginContextData),
|
|
3925
|
+
preserveEntrySignatures: inputOptions.preserveEntrySignatures
|
|
3925
3926
|
};
|
|
3926
3927
|
}
|
|
3927
3928
|
function bindingifyHmr(hmr) {
|
|
@@ -28,7 +28,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
28
28
|
|
|
29
29
|
//#endregion
|
|
30
30
|
//#region package.json
|
|
31
|
-
var version = "1.0.0-beta.
|
|
31
|
+
var version = "1.0.0-beta.14";
|
|
32
32
|
|
|
33
33
|
//#endregion
|
|
34
34
|
//#region src/builtin-plugin/utils.ts
|
|
@@ -74,7 +74,8 @@ function wasmHelperPlugin() {
|
|
|
74
74
|
return new BuiltinPlugin("builtin:wasm-helper");
|
|
75
75
|
}
|
|
76
76
|
function wasmFallbackPlugin() {
|
|
77
|
-
|
|
77
|
+
const builtinPlugin = new BuiltinPlugin("builtin:wasm-fallback");
|
|
78
|
+
return makeBuiltinPluginCallable(builtinPlugin);
|
|
78
79
|
}
|
|
79
80
|
function loadFallbackPlugin() {
|
|
80
81
|
return new BuiltinPlugin("builtin:load-fallback");
|
|
@@ -1909,7 +1910,13 @@ const InputOptionsSchema = strictObject({
|
|
|
1909
1910
|
dropLabels: pipe(optional(array(string())), description("Remove labeled statements with these label names")),
|
|
1910
1911
|
checks: optional(ChecksOptionsSchema),
|
|
1911
1912
|
keepNames: pipe(optional(boolean()), description("Keep function/class name")),
|
|
1912
|
-
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."))
|
|
1913
|
+
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.")),
|
|
1914
|
+
preserveEntrySignatures: pipe(optional(union([
|
|
1915
|
+
literal("strict"),
|
|
1916
|
+
literal("allow-extension"),
|
|
1917
|
+
literal("exports-only"),
|
|
1918
|
+
literal(false)
|
|
1919
|
+
])))
|
|
1913
1920
|
});
|
|
1914
1921
|
const InputCliOverrideSchema = strictObject({
|
|
1915
1922
|
input: pipe(optional(array(string())), description("Entry file")),
|
|
@@ -1922,7 +1929,8 @@ const InputCliOverrideSchema = strictObject({
|
|
|
1922
1929
|
literal("react"),
|
|
1923
1930
|
literal("react-jsx"),
|
|
1924
1931
|
literal("preserve")
|
|
1925
|
-
])), description("Jsx options preset"))
|
|
1932
|
+
])), description("Jsx options preset")),
|
|
1933
|
+
preserveEntrySignatures: pipe(optional(union([literal(false)])), description("Avoid facade chunks for entry points"))
|
|
1926
1934
|
});
|
|
1927
1935
|
const InputCliOptionsSchema = omit(strictObject({
|
|
1928
1936
|
...InputOptionsSchema.entries,
|
|
@@ -2026,12 +2034,6 @@ const OutputOptionsSchema = strictObject({
|
|
|
2026
2034
|
}, () => `The 'true' value is not supported`)),
|
|
2027
2035
|
preserveModules: pipe(optional(boolean()), description("Preserve module structure")),
|
|
2028
2036
|
preserveModulesRoot: pipe(optional(string()), description("Put preserved modules under this path at root level")),
|
|
2029
|
-
preserveEntrySignatures: pipe(optional(union([
|
|
2030
|
-
literal("strict"),
|
|
2031
|
-
literal("allow-extension"),
|
|
2032
|
-
literal("exports-only"),
|
|
2033
|
-
literal(false)
|
|
2034
|
-
]))),
|
|
2035
2037
|
virtualDirname: optional(string())
|
|
2036
2038
|
});
|
|
2037
2039
|
const getAddonDescription = (placement, wrapper) => {
|
|
@@ -2054,8 +2056,7 @@ const OutputCliOverrideSchema = strictObject({
|
|
|
2054
2056
|
minSize: pipe(optional(number()), description("Minimum size of the chunk")),
|
|
2055
2057
|
minShareCount: pipe(optional(number()), description("Minimum share count of the chunk"))
|
|
2056
2058
|
})), description("Global variable of UMD / IIFE dependencies (syntax: `key=value`)")),
|
|
2057
|
-
minify: pipe(optional(boolean()), description("Minify the bundled file"))
|
|
2058
|
-
preserveEntrySignatures: pipe(optional(union([literal(false)])), description("Avoid facade chunks for entry points"))
|
|
2059
|
+
minify: pipe(optional(boolean()), description("Minify the bundled file"))
|
|
2059
2060
|
});
|
|
2060
2061
|
const OutputCliOptionsSchema = omit(strictObject({
|
|
2061
2062
|
...OutputOptionsSchema.entries,
|
|
@@ -2957,7 +2958,7 @@ function transformChunkModules(modules) {
|
|
|
2957
2958
|
//#endregion
|
|
2958
2959
|
//#region src/utils/bindingify-output-options.ts
|
|
2959
2960
|
function bindingifyOutputOptions(outputOptions) {
|
|
2960
|
-
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
|
|
2961
|
+
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;
|
|
2961
2962
|
return {
|
|
2962
2963
|
dir,
|
|
2963
2964
|
file: file == null ? void 0 : file,
|
|
@@ -2991,8 +2992,7 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
2991
2992
|
preserveModules,
|
|
2992
2993
|
virtualDirname,
|
|
2993
2994
|
legalComments,
|
|
2994
|
-
preserveModulesRoot
|
|
2995
|
-
preserveEntrySignatures
|
|
2995
|
+
preserveModulesRoot
|
|
2996
2996
|
};
|
|
2997
2997
|
}
|
|
2998
2998
|
function bindingifyAddon(configAddon) {
|
|
@@ -3135,13 +3135,13 @@ var NormalizedOutputOptionsImpl = class {
|
|
|
3135
3135
|
return this.normalizedOutputPlugins;
|
|
3136
3136
|
}
|
|
3137
3137
|
get preserveModules() {
|
|
3138
|
-
return this.preserveModules;
|
|
3138
|
+
return this.outputOptions.preserveModules || false;
|
|
3139
3139
|
}
|
|
3140
3140
|
get preserveModulesRoot() {
|
|
3141
|
-
return this.preserveModulesRoot;
|
|
3141
|
+
return this.outputOptions.preserveModulesRoot;
|
|
3142
3142
|
}
|
|
3143
3143
|
get virtualDirname() {
|
|
3144
|
-
return this.virtualDirname;
|
|
3144
|
+
return this.outputOptions.virtualDirname || "_virtual";
|
|
3145
3145
|
}
|
|
3146
3146
|
};
|
|
3147
3147
|
function normalizeAddon(value) {
|
|
@@ -3818,7 +3818,8 @@ function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, normali
|
|
|
3818
3818
|
makeAbsoluteExternalsRelative: bindingifyMakeAbsoluteExternalsRelative(inputOptions.makeAbsoluteExternalsRelative),
|
|
3819
3819
|
debug: inputOptions.debug,
|
|
3820
3820
|
invalidateJsSideCache: pluginContextData.clear.bind(pluginContextData),
|
|
3821
|
-
markModuleLoaded: pluginContextData.markModuleLoaded.bind(pluginContextData)
|
|
3821
|
+
markModuleLoaded: pluginContextData.markModuleLoaded.bind(pluginContextData),
|
|
3822
|
+
preserveEntrySignatures: inputOptions.preserveEntrySignatures
|
|
3822
3823
|
};
|
|
3823
3824
|
}
|
|
3824
3825
|
function bindingifyHmr(hmr) {
|
package/package.json
CHANGED