@rolldown/browser 1.0.0-beta.11-commit.0a985f3 → 1.0.0-beta.12
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 +13 -7
- package/dist/cli.mjs +13 -7
- package/dist/config.cjs +3 -3
- package/dist/config.d.cts +1 -1
- package/dist/config.d.mts +1 -1
- package/dist/config.mjs +3 -3
- package/dist/experimental-index.browser.mjs +1 -1
- package/dist/experimental-index.cjs +2 -2
- package/dist/experimental-index.d.cts +1 -1
- package/dist/experimental-index.d.mts +1 -1
- package/dist/experimental-index.mjs +2 -2
- package/dist/filter-index.d.cts +1 -1
- package/dist/filter-index.d.mts +1 -1
- package/dist/index.browser.mjs +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +2 -2
- package/dist/parallel-plugin-worker.cjs +2 -2
- package/dist/parallel-plugin-worker.mjs +2 -2
- package/dist/parallel-plugin.d.cts +1 -1
- package/dist/parallel-plugin.d.mts +1 -1
- package/dist/parse-ast-index.cjs +1 -1
- package/dist/parse-ast-index.mjs +1 -1
- package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/shared/{define-config-DXrn-qjH.d.mts → define-config-D9yO3QIE.d.mts} +1 -0
- package/dist/shared/{define-config-D9V573sm.d.cts → define-config-DHHoUVzc.d.cts} +1 -0
- package/dist/shared/{load-config-BTlecg4U.cjs → load-config-B6qBL2wt.cjs} +1 -1
- package/dist/shared/{load-config-SSnyp5J3.mjs → load-config-Dhqel0Z2.mjs} +1 -1
- package/dist/shared/{parse-ast-index-DL8_b_QU.cjs → parse-ast-index-5MuKtufe.cjs} +1 -1
- package/dist/shared/{parse-ast-index-B3Tue26H.mjs → parse-ast-index-IepkD-LB.mjs} +2 -2
- package/dist/shared/{src-DzD6EdZa.mjs → src-BZTccB3J.mjs} +14 -6
- package/dist/shared/{src-W_p4ryeu.cjs → src-Chz32nF8.cjs} +14 -6
- package/dist/{src-C1OY6Xci.js → src-UAjV5sCZ.js} +14 -6
- 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-Chz32nF8.cjs');
|
|
3
3
|
const require_dist = require('./shared/dist-BMVjvV-v.cjs');
|
|
4
|
-
require('./shared/parse-ast-index-
|
|
5
|
-
const require_load_config = require('./shared/load-config-
|
|
4
|
+
require('./shared/parse-ast-index-5MuKtufe.cjs');
|
|
5
|
+
const require_load_config = require('./shared/load-config-B6qBL2wt.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"));
|
|
@@ -1029,6 +1029,10 @@ const alias = {
|
|
|
1029
1029
|
default: true,
|
|
1030
1030
|
reverse: true
|
|
1031
1031
|
},
|
|
1032
|
+
preserveEntrySignatures: {
|
|
1033
|
+
default: "strict",
|
|
1034
|
+
reverse: true
|
|
1035
|
+
},
|
|
1032
1036
|
moduleTypes: { hint: "types" }
|
|
1033
1037
|
};
|
|
1034
1038
|
|
|
@@ -1138,8 +1142,10 @@ const options = Object.fromEntries(Object.entries(flattenedSchema).filter(([_key
|
|
|
1138
1142
|
hint: config?.hint
|
|
1139
1143
|
};
|
|
1140
1144
|
if (config && config?.abbreviation) result.short = config?.abbreviation;
|
|
1141
|
-
if (config && config.reverse)
|
|
1142
|
-
|
|
1145
|
+
if (config && config.reverse) {
|
|
1146
|
+
if (result.description.startsWith("enable")) result.description = result.description.replace("enable", "disable");
|
|
1147
|
+
else if (!result.description.startsWith("Avoid")) result.description = `disable ${result.description}`;
|
|
1148
|
+
}
|
|
1143
1149
|
key = camelCaseToKebabCase(key);
|
|
1144
1150
|
return [config?.reverse ? `no-${key}` : key, result];
|
|
1145
1151
|
}));
|
|
@@ -1417,8 +1423,8 @@ const process$2 = globalThis.process;
|
|
|
1417
1423
|
const { onExit, load, unload } = signalExitWrap(processOk(process$2) ? new SignalExit(process$2) : new SignalExitFallback());
|
|
1418
1424
|
|
|
1419
1425
|
//#endregion
|
|
1420
|
-
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.72.
|
|
1421
|
-
var require_usingCtx = require_chunk.__commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.
|
|
1426
|
+
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.72.3/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js
|
|
1427
|
+
var require_usingCtx = require_chunk.__commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.3/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(exports, module) {
|
|
1422
1428
|
function _usingCtx() {
|
|
1423
1429
|
var r$1 = "function" == typeof SuppressedError ? SuppressedError : function(r$2, e$1) {
|
|
1424
1430
|
var n$2 = Error();
|
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-BZTccB3J.mjs";
|
|
3
3
|
import { arraify, init_misc } from "./shared/dist-DeDsdiza.mjs";
|
|
4
|
-
import "./shared/parse-ast-index-
|
|
5
|
-
import { init_load_config, loadConfig } from "./shared/load-config-
|
|
4
|
+
import "./shared/parse-ast-index-IepkD-LB.mjs";
|
|
5
|
+
import { init_load_config, loadConfig } from "./shared/load-config-Dhqel0Z2.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";
|
|
@@ -1047,6 +1047,10 @@ var init_alias = __esm({ "src/cli/arguments/alias.ts"() {
|
|
|
1047
1047
|
default: true,
|
|
1048
1048
|
reverse: true
|
|
1049
1049
|
},
|
|
1050
|
+
preserveEntrySignatures: {
|
|
1051
|
+
default: "strict",
|
|
1052
|
+
reverse: true
|
|
1053
|
+
},
|
|
1050
1054
|
moduleTypes: { hint: "types" }
|
|
1051
1055
|
};
|
|
1052
1056
|
} });
|
|
@@ -1243,8 +1247,10 @@ var init_arguments = __esm({ "src/cli/arguments/index.ts"() {
|
|
|
1243
1247
|
hint: config?.hint
|
|
1244
1248
|
};
|
|
1245
1249
|
if (config && config?.abbreviation) result.short = config?.abbreviation;
|
|
1246
|
-
if (config && config.reverse)
|
|
1247
|
-
|
|
1250
|
+
if (config && config.reverse) {
|
|
1251
|
+
if (result.description.startsWith("enable")) result.description = result.description.replace("enable", "disable");
|
|
1252
|
+
else if (!result.description.startsWith("Avoid")) result.description = `disable ${result.description}`;
|
|
1253
|
+
}
|
|
1248
1254
|
key = camelCaseToKebabCase(key);
|
|
1249
1255
|
return [config?.reverse ? `no-${key}` : key, result];
|
|
1250
1256
|
}));
|
|
@@ -1433,8 +1439,8 @@ var init_mjs = __esm({ "../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/
|
|
|
1433
1439
|
} });
|
|
1434
1440
|
|
|
1435
1441
|
//#endregion
|
|
1436
|
-
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.72.
|
|
1437
|
-
var require_usingCtx = __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.
|
|
1442
|
+
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.72.3/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js
|
|
1443
|
+
var require_usingCtx = __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.72.3/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(exports, module) {
|
|
1438
1444
|
function _usingCtx() {
|
|
1439
1445
|
var r$1 = "function" == typeof SuppressedError ? SuppressedError : function(r$2, e$1) {
|
|
1440
1446
|
var n$2 = Error();
|
package/dist/config.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_src = require('./shared/src-
|
|
1
|
+
const require_src = require('./shared/src-Chz32nF8.cjs');
|
|
2
2
|
require('./shared/dist-BMVjvV-v.cjs');
|
|
3
|
-
require('./shared/parse-ast-index-
|
|
4
|
-
const require_load_config = require('./shared/load-config-
|
|
3
|
+
require('./shared/parse-ast-index-5MuKtufe.cjs');
|
|
4
|
+
const require_load_config = require('./shared/load-config-B6qBL2wt.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
1
|
import "./shared/binding-TjXg6Uds.cjs";
|
|
2
|
-
import { ConfigExport, defineConfig } from "./shared/define-config-
|
|
2
|
+
import { ConfigExport, defineConfig } from "./shared/define-config-DHHoUVzc.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
1
|
import "./shared/binding-BHIN6Pwt.mjs";
|
|
2
|
-
import { ConfigExport, defineConfig } from "./shared/define-config-
|
|
2
|
+
import { ConfigExport, defineConfig } from "./shared/define-config-D9yO3QIE.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-BZTccB3J.mjs";
|
|
2
2
|
import "./shared/dist-DeDsdiza.mjs";
|
|
3
|
-
import "./shared/parse-ast-index-
|
|
4
|
-
import { init_load_config, loadConfig } from "./shared/load-config-
|
|
3
|
+
import "./shared/parse-ast-index-IepkD-LB.mjs";
|
|
4
|
+
import { init_load_config, loadConfig } from "./shared/load-config-Dhqel0Z2.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-UAjV5sCZ.js";
|
|
2
2
|
import { ResolverFactory, isolatedDeclaration, moduleRunnerTransform, transform } from "./rolldown-binding.wasi-browser.js";
|
|
3
3
|
|
|
4
4
|
//#region src/api/experimental.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
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-Chz32nF8.cjs');
|
|
3
3
|
require('./shared/dist-BMVjvV-v.cjs');
|
|
4
|
-
require('./shared/parse-ast-index-
|
|
4
|
+
require('./shared/parse-ast-index-5MuKtufe.cjs');
|
|
5
5
|
const src_rolldown_binding_wasi_cjs = require_chunk.__toESM(require("./rolldown-binding.wasi.cjs"));
|
|
6
6
|
const node_url = require_chunk.__toESM(require("node:url"));
|
|
7
7
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding-TjXg6Uds.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-
|
|
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-DHHoUVzc.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/experimental.d.ts
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding-BHIN6Pwt.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-
|
|
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-D9yO3QIE.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/experimental.d.ts
|
|
5
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
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-BZTccB3J.mjs";
|
|
2
2
|
import "./shared/dist-DeDsdiza.mjs";
|
|
3
|
-
import "./shared/parse-ast-index-
|
|
3
|
+
import "./shared/parse-ast-index-IepkD-LB.mjs";
|
|
4
4
|
import { ResolverFactory, isolatedDeclaration, moduleRunnerTransform, transform } from "./rolldown-binding.wasi.cjs";
|
|
5
5
|
import { pathToFileURL } from "node:url";
|
|
6
6
|
|
package/dist/filter-index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "./shared/binding-TjXg6Uds.cjs";
|
|
2
|
-
import { withFilter } from "./shared/define-config-
|
|
2
|
+
import { withFilter } from "./shared/define-config-DHHoUVzc.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
1
|
import "./shared/binding-BHIN6Pwt.mjs";
|
|
2
|
-
import { withFilter } from "./shared/define-config-
|
|
2
|
+
import { withFilter } from "./shared/define-config-D9yO3QIE.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
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_src = require('./shared/src-
|
|
1
|
+
const require_src = require('./shared/src-Chz32nF8.cjs');
|
|
2
2
|
require('./shared/dist-BMVjvV-v.cjs');
|
|
3
|
-
require('./shared/parse-ast-index-
|
|
3
|
+
require('./shared/parse-ast-index-5MuKtufe.cjs');
|
|
4
4
|
|
|
5
5
|
exports.VERSION = require_src.VERSION;
|
|
6
6
|
exports.build = require_src.build;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { PreRenderedChunk } from "./shared/binding-TjXg6Uds.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-
|
|
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-DHHoUVzc.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
1
|
import { PreRenderedChunk } from "./shared/binding-BHIN6Pwt.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-
|
|
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-D9yO3QIE.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,6 +1,6 @@
|
|
|
1
|
-
import { VERSION, build, defineConfig, init_src, rolldown, watch } from "./shared/src-
|
|
1
|
+
import { VERSION, build, defineConfig, init_src, rolldown, watch } from "./shared/src-BZTccB3J.mjs";
|
|
2
2
|
import "./shared/dist-DeDsdiza.mjs";
|
|
3
|
-
import "./shared/parse-ast-index-
|
|
3
|
+
import "./shared/parse-ast-index-IepkD-LB.mjs";
|
|
4
4
|
|
|
5
5
|
init_src();
|
|
6
6
|
export { VERSION, build, defineConfig, rolldown, watch };
|
|
@@ -1,7 +1,7 @@
|
|
|
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-Chz32nF8.cjs');
|
|
3
3
|
require('./shared/dist-BMVjvV-v.cjs');
|
|
4
|
-
require('./shared/parse-ast-index-
|
|
4
|
+
require('./shared/parse-ast-index-5MuKtufe.cjs');
|
|
5
5
|
const src_rolldown_binding_wasi_cjs = require_chunk.__toESM(require("./rolldown-binding.wasi.cjs"));
|
|
6
6
|
const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
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-BZTccB3J.mjs";
|
|
3
3
|
import "./shared/dist-DeDsdiza.mjs";
|
|
4
|
-
import "./shared/parse-ast-index-
|
|
4
|
+
import "./shared/parse-ast-index-IepkD-LB.mjs";
|
|
5
5
|
import { registerPlugins } from "./rolldown-binding.wasi.cjs";
|
|
6
6
|
import { parentPort, workerData } from "node:worker_threads";
|
|
7
7
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./shared/binding-TjXg6Uds.cjs";
|
|
2
|
-
import { MaybePromise, Plugin } from "./shared/define-config-
|
|
2
|
+
import { MaybePromise, Plugin } from "./shared/define-config-DHHoUVzc.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
5
5
|
type ParallelPluginImplementation = Plugin;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./shared/binding-BHIN6Pwt.mjs";
|
|
2
|
-
import { MaybePromise, Plugin } from "./shared/define-config-
|
|
2
|
+
import { MaybePromise, Plugin } from "./shared/define-config-D9yO3QIE.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
5
5
|
type ParallelPluginImplementation = Plugin;
|
package/dist/parse-ast-index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_parse_ast_index = require('./shared/parse-ast-index-
|
|
1
|
+
const require_parse_ast_index = require('./shared/parse-ast-index-5MuKtufe.cjs');
|
|
2
2
|
|
|
3
3
|
exports.parseAst = require_parse_ast_index.parseAst;
|
|
4
4
|
exports.parseAstAsync = require_parse_ast_index.parseAstAsync;
|
package/dist/parse-ast-index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { init_parse_ast_index, parseAst, parseAstAsync } from "./shared/parse-ast-index-
|
|
1
|
+
import { init_parse_ast_index, parseAst, parseAstAsync } from "./shared/parse-ast-index-IepkD-LB.mjs";
|
|
2
2
|
|
|
3
3
|
init_parse_ast_index();
|
|
4
4
|
export { parseAst, parseAstAsync };
|
|
Binary file
|
|
@@ -282,6 +282,7 @@ interface OutputOptions {
|
|
|
282
282
|
preserveModules?: boolean;
|
|
283
283
|
virtualDirname?: string;
|
|
284
284
|
preserveModulesRoot?: string;
|
|
285
|
+
preserveEntrySignatures?: false | "strict" | "allow-extension" | "exports-only";
|
|
285
286
|
}
|
|
286
287
|
//#endregion
|
|
287
288
|
//#region src/api/build.d.ts
|
|
@@ -282,6 +282,7 @@ interface OutputOptions {
|
|
|
282
282
|
preserveModules?: boolean;
|
|
283
283
|
virtualDirname?: string;
|
|
284
284
|
preserveModulesRoot?: string;
|
|
285
|
+
preserveEntrySignatures?: false | "strict" | "allow-extension" | "exports-only";
|
|
285
286
|
}
|
|
286
287
|
//#endregion
|
|
287
288
|
//#region src/api/build.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-Chz32nF8.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-BZTccB3J.mjs";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { pathToFileURL } from "node:url";
|
|
5
5
|
import { cwd } from "node:process";
|
|
@@ -181,7 +181,7 @@ function augmentCodeLocation(properties, pos, source, id) {
|
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
//#endregion
|
|
184
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.72.
|
|
184
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.72.3/node_modules/oxc-parser/wrap.mjs
|
|
185
185
|
function wrap$1(result) {
|
|
186
186
|
let program, module$1, comments, errors;
|
|
187
187
|
return {
|
|
@@ -190,7 +190,7 @@ var init_logs = __esm({ "src/log/logs.ts"() {
|
|
|
190
190
|
} });
|
|
191
191
|
|
|
192
192
|
//#endregion
|
|
193
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.72.
|
|
193
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.72.3/node_modules/oxc-parser/wrap.mjs
|
|
194
194
|
function wrap$1(result) {
|
|
195
195
|
let program, module, comments, errors;
|
|
196
196
|
return {
|
|
@@ -225,7 +225,7 @@ function applyFix(program, fixPath) {
|
|
|
225
225
|
node.value = RegExp(node.regex.pattern, node.regex.flags);
|
|
226
226
|
} catch (_err) {}
|
|
227
227
|
}
|
|
228
|
-
var init_wrap = __esm({ "../../node_modules/.pnpm/oxc-parser@0.72.
|
|
228
|
+
var init_wrap = __esm({ "../../node_modules/.pnpm/oxc-parser@0.72.3/node_modules/oxc-parser/wrap.mjs"() {} });
|
|
229
229
|
|
|
230
230
|
//#endregion
|
|
231
231
|
//#region src/parse-ast-index.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __commonJS, __esm, __toESM } from "./chunk-DSsiIF1Z.mjs";
|
|
2
2
|
import { and, arraify, code, exclude, id, include, init_dist, init_misc, isNullish, moduleType, noop, or, unimplemented, unreachable, unsupported } from "./dist-DeDsdiza.mjs";
|
|
3
|
-
import { augmentCodeLocation, error, init_logs, init_parse_ast_index, logCycleLoading, logInputHookInOutputPlugin, logInvalidLogPosition, logMultiplyNotifyOption, logPluginError, parseAst } from "./parse-ast-index-
|
|
3
|
+
import { augmentCodeLocation, error, init_logs, init_parse_ast_index, logCycleLoading, logInputHookInOutputPlugin, logInvalidLogPosition, logMultiplyNotifyOption, logPluginError, parseAst } from "./parse-ast-index-IepkD-LB.mjs";
|
|
4
4
|
import { BindingCallableBuiltinPlugin, BindingHookSideEffects, BindingJsx, BindingLogLevel, BindingPluginOrder, BindingWatcher, Bundler, ParallelJsPluginRegistry, shutdownAsyncRuntime, startAsyncRuntime } from "../rolldown-binding.wasi.cjs";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { fileURLToPath } from "node:url";
|
|
@@ -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.12";
|
|
12
12
|
var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
13
13
|
|
|
14
14
|
//#endregion
|
|
@@ -2359,6 +2359,12 @@ var init_validator = __esm({ "src/utils/validator.ts"() {
|
|
|
2359
2359
|
}, () => `The 'true' value is not supported`)),
|
|
2360
2360
|
preserveModules: pipe(optional(boolean()), description("Preserve module structure")),
|
|
2361
2361
|
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
|
+
]))),
|
|
2362
2368
|
virtualDirname: optional(string())
|
|
2363
2369
|
});
|
|
2364
2370
|
getAddonDescription = (placement, wrapper) => {
|
|
@@ -2381,7 +2387,8 @@ var init_validator = __esm({ "src/utils/validator.ts"() {
|
|
|
2381
2387
|
minSize: pipe(optional(number()), description("Minimum size of the chunk")),
|
|
2382
2388
|
minShareCount: pipe(optional(number()), description("Minimum share count of the chunk"))
|
|
2383
2389
|
})), description("Global variable of UMD / IIFE dependencies (syntax: `key=value`)")),
|
|
2384
|
-
minify: pipe(optional(boolean()), description("Minify the bundled file"))
|
|
2390
|
+
minify: pipe(optional(boolean()), description("Minify the bundled file")),
|
|
2391
|
+
preserveEntrySignatures: pipe(optional(union([literal(false)])), description("Avoid facade chunks for entry points"))
|
|
2385
2392
|
});
|
|
2386
2393
|
OutputCliOptionsSchema = omit(strictObject({
|
|
2387
2394
|
...OutputOptionsSchema.entries,
|
|
@@ -3173,7 +3180,7 @@ var init_transform_rendered_chunk = __esm({ "src/utils/transform-rendered-chunk.
|
|
|
3173
3180
|
//#endregion
|
|
3174
3181
|
//#region src/utils/bindingify-output-options.ts
|
|
3175
3182
|
function bindingifyOutputOptions(outputOptions) {
|
|
3176
|
-
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;
|
|
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, preserveEntrySignatures } = outputOptions;
|
|
3177
3184
|
return {
|
|
3178
3185
|
dir,
|
|
3179
3186
|
file: file == null ? void 0 : file,
|
|
@@ -3207,7 +3214,8 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
3207
3214
|
preserveModules,
|
|
3208
3215
|
virtualDirname,
|
|
3209
3216
|
legalComments,
|
|
3210
|
-
preserveModulesRoot
|
|
3217
|
+
preserveModulesRoot,
|
|
3218
|
+
preserveEntrySignatures
|
|
3211
3219
|
};
|
|
3212
3220
|
}
|
|
3213
3221
|
function bindingifyAddon(configAddon) {
|
|
@@ -3479,7 +3487,7 @@ function transformToOutputBundle(context, output, changed) {
|
|
|
3479
3487
|
set(_target, _p, _newValue, _receiver) {
|
|
3480
3488
|
const originalStackTraceLimit = Error.stackTraceLimit;
|
|
3481
3489
|
Error.stackTraceLimit = 2;
|
|
3482
|
-
const message = "This plugin assigns to bundle variable. This is discouraged by Rollup and is not supported by Rolldown. This will be ignored.";
|
|
3490
|
+
const message = "This plugin assigns to bundle variable. This is discouraged by Rollup and is not supported by Rolldown. This will be ignored. https://rollupjs.org/plugin-development/#generatebundle:~:text=DANGER,this.emitFile.";
|
|
3483
3491
|
const stack = new Error(message).stack ?? message;
|
|
3484
3492
|
Error.stackTraceLimit = originalStackTraceLimit;
|
|
3485
3493
|
context.warn({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-DDkG_k5U.cjs');
|
|
2
2
|
const require_dist = require('./dist-BMVjvV-v.cjs');
|
|
3
|
-
const require_parse_ast_index = require('./parse-ast-index-
|
|
3
|
+
const require_parse_ast_index = require('./parse-ast-index-5MuKtufe.cjs');
|
|
4
4
|
const src_rolldown_binding_wasi_cjs = require_chunk.__toESM(require("../rolldown-binding.wasi.cjs"));
|
|
5
5
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
6
6
|
const node_url = require_chunk.__toESM(require("node:url"));
|
|
@@ -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.12";
|
|
12
12
|
var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
13
13
|
|
|
14
14
|
//#endregion
|
|
@@ -2268,6 +2268,12 @@ const OutputOptionsSchema = strictObject({
|
|
|
2268
2268
|
}, () => `The 'true' value is not supported`)),
|
|
2269
2269
|
preserveModules: pipe(optional(boolean()), description("Preserve module structure")),
|
|
2270
2270
|
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
|
+
]))),
|
|
2271
2277
|
virtualDirname: optional(string())
|
|
2272
2278
|
});
|
|
2273
2279
|
const getAddonDescription = (placement, wrapper) => {
|
|
@@ -2290,7 +2296,8 @@ const OutputCliOverrideSchema = strictObject({
|
|
|
2290
2296
|
minSize: pipe(optional(number()), description("Minimum size of the chunk")),
|
|
2291
2297
|
minShareCount: pipe(optional(number()), description("Minimum share count of the chunk"))
|
|
2292
2298
|
})), description("Global variable of UMD / IIFE dependencies (syntax: `key=value`)")),
|
|
2293
|
-
minify: pipe(optional(boolean()), description("Minify the bundled file"))
|
|
2299
|
+
minify: pipe(optional(boolean()), description("Minify the bundled file")),
|
|
2300
|
+
preserveEntrySignatures: pipe(optional(union([literal(false)])), description("Avoid facade chunks for entry points"))
|
|
2294
2301
|
});
|
|
2295
2302
|
const OutputCliOptionsSchema = omit(strictObject({
|
|
2296
2303
|
...OutputOptionsSchema.entries,
|
|
@@ -3053,7 +3060,7 @@ function transformChunkModules(modules) {
|
|
|
3053
3060
|
//#endregion
|
|
3054
3061
|
//#region src/utils/bindingify-output-options.ts
|
|
3055
3062
|
function bindingifyOutputOptions(outputOptions) {
|
|
3056
|
-
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;
|
|
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, preserveEntrySignatures } = outputOptions;
|
|
3057
3064
|
return {
|
|
3058
3065
|
dir,
|
|
3059
3066
|
file: file == null ? void 0 : file,
|
|
@@ -3087,7 +3094,8 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
3087
3094
|
preserveModules,
|
|
3088
3095
|
virtualDirname,
|
|
3089
3096
|
legalComments,
|
|
3090
|
-
preserveModulesRoot
|
|
3097
|
+
preserveModulesRoot,
|
|
3098
|
+
preserveEntrySignatures
|
|
3091
3099
|
};
|
|
3092
3100
|
}
|
|
3093
3101
|
function bindingifyAddon(configAddon) {
|
|
@@ -3350,7 +3358,7 @@ function transformToOutputBundle(context, output, changed) {
|
|
|
3350
3358
|
set(_target, _p, _newValue, _receiver) {
|
|
3351
3359
|
const originalStackTraceLimit = Error.stackTraceLimit;
|
|
3352
3360
|
Error.stackTraceLimit = 2;
|
|
3353
|
-
const message = "This plugin assigns to bundle variable. This is discouraged by Rollup and is not supported by Rolldown. This will be ignored.";
|
|
3361
|
+
const message = "This plugin assigns to bundle variable. This is discouraged by Rollup and is not supported by Rolldown. This will be ignored. https://rollupjs.org/plugin-development/#generatebundle:~:text=DANGER,this.emitFile.";
|
|
3354
3362
|
const stack = new Error(message).stack ?? message;
|
|
3355
3363
|
Error.stackTraceLimit = originalStackTraceLimit;
|
|
3356
3364
|
context.warn({
|
|
@@ -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.12";
|
|
32
32
|
|
|
33
33
|
//#endregion
|
|
34
34
|
//#region src/builtin-plugin/utils.ts
|
|
@@ -2026,6 +2026,12 @@ const OutputOptionsSchema = strictObject({
|
|
|
2026
2026
|
}, () => `The 'true' value is not supported`)),
|
|
2027
2027
|
preserveModules: pipe(optional(boolean()), description("Preserve module structure")),
|
|
2028
2028
|
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
|
+
]))),
|
|
2029
2035
|
virtualDirname: optional(string())
|
|
2030
2036
|
});
|
|
2031
2037
|
const getAddonDescription = (placement, wrapper) => {
|
|
@@ -2048,7 +2054,8 @@ const OutputCliOverrideSchema = strictObject({
|
|
|
2048
2054
|
minSize: pipe(optional(number()), description("Minimum size of the chunk")),
|
|
2049
2055
|
minShareCount: pipe(optional(number()), description("Minimum share count of the chunk"))
|
|
2050
2056
|
})), description("Global variable of UMD / IIFE dependencies (syntax: `key=value`)")),
|
|
2051
|
-
minify: pipe(optional(boolean()), description("Minify the bundled file"))
|
|
2057
|
+
minify: pipe(optional(boolean()), description("Minify the bundled file")),
|
|
2058
|
+
preserveEntrySignatures: pipe(optional(union([literal(false)])), description("Avoid facade chunks for entry points"))
|
|
2052
2059
|
});
|
|
2053
2060
|
const OutputCliOptionsSchema = omit(strictObject({
|
|
2054
2061
|
...OutputOptionsSchema.entries,
|
|
@@ -2516,7 +2523,7 @@ function bindingPluginOrder(order) {
|
|
|
2516
2523
|
}
|
|
2517
2524
|
|
|
2518
2525
|
//#endregion
|
|
2519
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.72.
|
|
2526
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.72.3/node_modules/oxc-parser/wrap.mjs
|
|
2520
2527
|
function wrap$1(result) {
|
|
2521
2528
|
let program, module$1, comments, errors;
|
|
2522
2529
|
return {
|
|
@@ -2950,7 +2957,7 @@ function transformChunkModules(modules) {
|
|
|
2950
2957
|
//#endregion
|
|
2951
2958
|
//#region src/utils/bindingify-output-options.ts
|
|
2952
2959
|
function bindingifyOutputOptions(outputOptions) {
|
|
2953
|
-
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;
|
|
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, preserveEntrySignatures } = outputOptions;
|
|
2954
2961
|
return {
|
|
2955
2962
|
dir,
|
|
2956
2963
|
file: file == null ? void 0 : file,
|
|
@@ -2984,7 +2991,8 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
2984
2991
|
preserveModules,
|
|
2985
2992
|
virtualDirname,
|
|
2986
2993
|
legalComments,
|
|
2987
|
-
preserveModulesRoot
|
|
2994
|
+
preserveModulesRoot,
|
|
2995
|
+
preserveEntrySignatures
|
|
2988
2996
|
};
|
|
2989
2997
|
}
|
|
2990
2998
|
function bindingifyAddon(configAddon) {
|
|
@@ -3247,7 +3255,7 @@ function transformToOutputBundle(context, output, changed) {
|
|
|
3247
3255
|
set(_target, _p, _newValue, _receiver) {
|
|
3248
3256
|
const originalStackTraceLimit = Error.stackTraceLimit;
|
|
3249
3257
|
Error.stackTraceLimit = 2;
|
|
3250
|
-
const message = "This plugin assigns to bundle variable. This is discouraged by Rollup and is not supported by Rolldown. This will be ignored.";
|
|
3258
|
+
const message = "This plugin assigns to bundle variable. This is discouraged by Rollup and is not supported by Rolldown. This will be ignored. https://rollupjs.org/plugin-development/#generatebundle:~:text=DANGER,this.emitFile.";
|
|
3251
3259
|
const stack = new Error(message).stack ?? message;
|
|
3252
3260
|
Error.stackTraceLimit = originalStackTraceLimit;
|
|
3253
3261
|
context.warn({
|
package/package.json
CHANGED