@rolldown/browser 1.0.0-beta.13-commit.024b632 → 1.0.0-beta.14-commit.12b8061
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.cjs +2 -2
- package/dist/cli.mjs +2 -2
- package/dist/config.cjs +2 -2
- package/dist/config.d.cts +2 -2
- package/dist/config.d.mts +2 -2
- package/dist/config.mjs +2 -2
- package/dist/experimental-index.browser.mjs +3 -2
- package/dist/experimental-index.cjs +3 -2
- package/dist/experimental-index.d.cts +2 -2
- package/dist/experimental-index.d.mts +2 -2
- package/dist/experimental-index.mjs +4 -2
- package/dist/filter-index.d.cts +2 -2
- package/dist/filter-index.d.mts +2 -2
- package/dist/index.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-CZdobbZA.d.cts} +13 -2
- package/dist/shared/{binding-TjXg6Uds.d.cts → binding-Dze8QVpf.d.mts} +13 -2
- package/dist/shared/{define-config-D9yO3QIE.d.mts → define-config-BE-fkZNW.d.cts} +4 -3
- package/dist/shared/{define-config-DHHoUVzc.d.cts → define-config-CnVvtpOm.d.mts} +4 -3
- package/dist/shared/{load-config-DqW80Noh.mjs → load-config-BUkt64Ft.mjs} +1 -1
- package/dist/shared/{load-config-JUGDZMZS.cjs → load-config-Dtt_VFiY.cjs} +1 -1
- package/dist/shared/{src-Cnjy5N-n.cjs → src-B_I243k1.cjs} +45 -23
- package/dist/shared/{src-DZb73lcW.mjs → src-CKQe7Qnf.mjs} +41 -24
- package/dist/{src-zFpuhs38.js → src-1bRy3Pay.js} +515 -46
- package/package.json +1 -1
|
@@ -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-commit.12b8061";
|
|
12
12
|
var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
13
13
|
|
|
14
14
|
//#endregion
|
|
@@ -36,8 +36,8 @@ var BuiltinPlugin = class {
|
|
|
36
36
|
this._options = _options;
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
|
-
function modulePreloadPolyfillPlugin() {
|
|
40
|
-
return new BuiltinPlugin("builtin:module-preload-polyfill");
|
|
39
|
+
function modulePreloadPolyfillPlugin(config) {
|
|
40
|
+
return new BuiltinPlugin("builtin:module-preload-polyfill", config);
|
|
41
41
|
}
|
|
42
42
|
function dynamicImportVarsPlugin(config) {
|
|
43
43
|
return new BuiltinPlugin("builtin:dynamic-import-vars", config);
|
|
@@ -55,13 +55,15 @@ 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");
|
|
62
63
|
}
|
|
63
64
|
function jsonPlugin(config) {
|
|
64
|
-
|
|
65
|
+
const builtinPlugin = new BuiltinPlugin("builtin:json", config);
|
|
66
|
+
return makeBuiltinPluginCallable(builtinPlugin);
|
|
65
67
|
}
|
|
66
68
|
function buildImportAnalysisPlugin(config) {
|
|
67
69
|
return new BuiltinPlugin("builtin:build-import-analysis", config);
|
|
@@ -2151,7 +2153,13 @@ const InputOptionsSchema = strictObject({
|
|
|
2151
2153
|
dropLabels: pipe(optional(array(string())), description("Remove labeled statements with these label names")),
|
|
2152
2154
|
checks: optional(ChecksOptionsSchema),
|
|
2153
2155
|
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."))
|
|
2156
|
+
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.")),
|
|
2157
|
+
preserveEntrySignatures: pipe(optional(union([
|
|
2158
|
+
literal("strict"),
|
|
2159
|
+
literal("allow-extension"),
|
|
2160
|
+
literal("exports-only"),
|
|
2161
|
+
literal(false)
|
|
2162
|
+
])))
|
|
2155
2163
|
});
|
|
2156
2164
|
const InputCliOverrideSchema = strictObject({
|
|
2157
2165
|
input: pipe(optional(array(string())), description("Entry file")),
|
|
@@ -2164,7 +2172,8 @@ const InputCliOverrideSchema = strictObject({
|
|
|
2164
2172
|
literal("react"),
|
|
2165
2173
|
literal("react-jsx"),
|
|
2166
2174
|
literal("preserve")
|
|
2167
|
-
])), description("Jsx options preset"))
|
|
2175
|
+
])), description("Jsx options preset")),
|
|
2176
|
+
preserveEntrySignatures: pipe(optional(union([literal(false)])), description("Avoid facade chunks for entry points"))
|
|
2168
2177
|
});
|
|
2169
2178
|
const InputCliOptionsSchema = omit(strictObject({
|
|
2170
2179
|
...InputOptionsSchema.entries,
|
|
@@ -2268,12 +2277,6 @@ const OutputOptionsSchema = strictObject({
|
|
|
2268
2277
|
}, () => `The 'true' value is not supported`)),
|
|
2269
2278
|
preserveModules: pipe(optional(boolean()), description("Preserve module structure")),
|
|
2270
2279
|
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
2280
|
virtualDirname: optional(string())
|
|
2278
2281
|
});
|
|
2279
2282
|
const getAddonDescription = (placement, wrapper) => {
|
|
@@ -2296,8 +2299,7 @@ const OutputCliOverrideSchema = strictObject({
|
|
|
2296
2299
|
minSize: pipe(optional(number()), description("Minimum size of the chunk")),
|
|
2297
2300
|
minShareCount: pipe(optional(number()), description("Minimum share count of the chunk"))
|
|
2298
2301
|
})), 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"))
|
|
2302
|
+
minify: pipe(optional(boolean()), description("Minify the bundled file"))
|
|
2301
2303
|
});
|
|
2302
2304
|
const OutputCliOptionsSchema = omit(strictObject({
|
|
2303
2305
|
...OutputOptionsSchema.entries,
|
|
@@ -2766,7 +2768,10 @@ var PluginContextImpl = class extends MinimalPluginContextImpl {
|
|
|
2766
2768
|
}
|
|
2767
2769
|
emitFile = (file) => {
|
|
2768
2770
|
if (file.type === "prebuilt-chunk") return require_dist.unimplemented("PluginContext.emitFile with type prebuilt-chunk");
|
|
2769
|
-
if (file.type === "chunk") return this.context.emitChunk(
|
|
2771
|
+
if (file.type === "chunk") return this.context.emitChunk({
|
|
2772
|
+
preserveEntrySignatures: bindingifyPreserveEntrySignatures(file.preserveSignature),
|
|
2773
|
+
...file
|
|
2774
|
+
});
|
|
2770
2775
|
const fnSanitizedFileName = file.fileName || typeof this.outputOptions.sanitizeFileName !== "function" ? void 0 : this.outputOptions.sanitizeFileName(file.name || "asset");
|
|
2771
2776
|
const filename = file.fileName ? void 0 : this.getAssetFileNames(file);
|
|
2772
2777
|
return this.context.emitFile({
|
|
@@ -3060,7 +3065,7 @@ function transformChunkModules(modules) {
|
|
|
3060
3065
|
//#endregion
|
|
3061
3066
|
//#region src/utils/bindingify-output-options.ts
|
|
3062
3067
|
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
|
|
3068
|
+
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
3069
|
return {
|
|
3065
3070
|
dir,
|
|
3066
3071
|
file: file == null ? void 0 : file,
|
|
@@ -3094,8 +3099,7 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
3094
3099
|
preserveModules,
|
|
3095
3100
|
virtualDirname,
|
|
3096
3101
|
legalComments,
|
|
3097
|
-
preserveModulesRoot
|
|
3098
|
-
preserveEntrySignatures
|
|
3102
|
+
preserveModulesRoot
|
|
3099
3103
|
};
|
|
3100
3104
|
}
|
|
3101
3105
|
function bindingifyAddon(configAddon) {
|
|
@@ -3238,13 +3242,13 @@ var NormalizedOutputOptionsImpl = class {
|
|
|
3238
3242
|
return this.normalizedOutputPlugins;
|
|
3239
3243
|
}
|
|
3240
3244
|
get preserveModules() {
|
|
3241
|
-
return this.preserveModules;
|
|
3245
|
+
return this.outputOptions.preserveModules || false;
|
|
3242
3246
|
}
|
|
3243
3247
|
get preserveModulesRoot() {
|
|
3244
|
-
return this.preserveModulesRoot;
|
|
3248
|
+
return this.outputOptions.preserveModulesRoot;
|
|
3245
3249
|
}
|
|
3246
3250
|
get virtualDirname() {
|
|
3247
|
-
return this.virtualDirname;
|
|
3251
|
+
return this.outputOptions.virtualDirname || "_virtual";
|
|
3248
3252
|
}
|
|
3249
3253
|
};
|
|
3250
3254
|
function normalizeAddon(value) {
|
|
@@ -3921,7 +3925,8 @@ function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, normali
|
|
|
3921
3925
|
makeAbsoluteExternalsRelative: bindingifyMakeAbsoluteExternalsRelative(inputOptions.makeAbsoluteExternalsRelative),
|
|
3922
3926
|
debug: inputOptions.debug,
|
|
3923
3927
|
invalidateJsSideCache: pluginContextData.clear.bind(pluginContextData),
|
|
3924
|
-
markModuleLoaded: pluginContextData.markModuleLoaded.bind(pluginContextData)
|
|
3928
|
+
markModuleLoaded: pluginContextData.markModuleLoaded.bind(pluginContextData),
|
|
3929
|
+
preserveEntrySignatures: bindingifyPreserveEntrySignatures(inputOptions.preserveEntrySignatures)
|
|
3925
3930
|
};
|
|
3926
3931
|
}
|
|
3927
3932
|
function bindingifyHmr(hmr) {
|
|
@@ -4057,6 +4062,17 @@ function bindingifyMakeAbsoluteExternalsRelative(makeAbsoluteExternalsRelative)
|
|
|
4057
4062
|
field0: makeAbsoluteExternalsRelative
|
|
4058
4063
|
};
|
|
4059
4064
|
}
|
|
4065
|
+
function bindingifyPreserveEntrySignatures(preserveEntrySignatures) {
|
|
4066
|
+
if (preserveEntrySignatures == void 0) return void 0;
|
|
4067
|
+
else if (typeof preserveEntrySignatures === "string") return {
|
|
4068
|
+
type: "String",
|
|
4069
|
+
field0: preserveEntrySignatures
|
|
4070
|
+
};
|
|
4071
|
+
else return {
|
|
4072
|
+
type: "Bool",
|
|
4073
|
+
field0: preserveEntrySignatures
|
|
4074
|
+
};
|
|
4075
|
+
}
|
|
4060
4076
|
|
|
4061
4077
|
//#endregion
|
|
4062
4078
|
//#region src/utils/plugin/index.ts
|
|
@@ -4730,6 +4746,12 @@ Object.defineProperty(exports, 'PluginContextData', {
|
|
|
4730
4746
|
return PluginContextData;
|
|
4731
4747
|
}
|
|
4732
4748
|
});
|
|
4749
|
+
Object.defineProperty(exports, 'PluginDriver', {
|
|
4750
|
+
enumerable: true,
|
|
4751
|
+
get: function () {
|
|
4752
|
+
return PluginDriver;
|
|
4753
|
+
}
|
|
4754
|
+
});
|
|
4733
4755
|
Object.defineProperty(exports, 'VERSION', {
|
|
4734
4756
|
enumerable: true,
|
|
4735
4757
|
get: function () {
|
|
@@ -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-commit.12b8061";
|
|
12
12
|
var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
13
13
|
|
|
14
14
|
//#endregion
|
|
@@ -31,8 +31,8 @@ var init_utils = __esm({ "src/builtin-plugin/utils.ts"() {} });
|
|
|
31
31
|
|
|
32
32
|
//#endregion
|
|
33
33
|
//#region src/builtin-plugin/constructors.ts
|
|
34
|
-
function modulePreloadPolyfillPlugin() {
|
|
35
|
-
return new BuiltinPlugin("builtin:module-preload-polyfill");
|
|
34
|
+
function modulePreloadPolyfillPlugin(config) {
|
|
35
|
+
return new BuiltinPlugin("builtin:module-preload-polyfill", config);
|
|
36
36
|
}
|
|
37
37
|
function dynamicImportVarsPlugin(config) {
|
|
38
38
|
return new BuiltinPlugin("builtin:dynamic-import-vars", config);
|
|
@@ -50,13 +50,15 @@ 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");
|
|
57
58
|
}
|
|
58
59
|
function jsonPlugin(config) {
|
|
59
|
-
|
|
60
|
+
const builtinPlugin = new BuiltinPlugin("builtin:json", config);
|
|
61
|
+
return makeBuiltinPluginCallable(builtinPlugin);
|
|
60
62
|
}
|
|
61
63
|
function buildImportAnalysisPlugin(config) {
|
|
62
64
|
return new BuiltinPlugin("builtin:build-import-analysis", config);
|
|
@@ -2242,7 +2244,13 @@ var init_validator = __esm({ "src/utils/validator.ts"() {
|
|
|
2242
2244
|
dropLabels: pipe(optional(array(string())), description("Remove labeled statements with these label names")),
|
|
2243
2245
|
checks: optional(ChecksOptionsSchema),
|
|
2244
2246
|
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."))
|
|
2247
|
+
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.")),
|
|
2248
|
+
preserveEntrySignatures: pipe(optional(union([
|
|
2249
|
+
literal("strict"),
|
|
2250
|
+
literal("allow-extension"),
|
|
2251
|
+
literal("exports-only"),
|
|
2252
|
+
literal(false)
|
|
2253
|
+
])))
|
|
2246
2254
|
});
|
|
2247
2255
|
InputCliOverrideSchema = strictObject({
|
|
2248
2256
|
input: pipe(optional(array(string())), description("Entry file")),
|
|
@@ -2255,7 +2263,8 @@ var init_validator = __esm({ "src/utils/validator.ts"() {
|
|
|
2255
2263
|
literal("react"),
|
|
2256
2264
|
literal("react-jsx"),
|
|
2257
2265
|
literal("preserve")
|
|
2258
|
-
])), description("Jsx options preset"))
|
|
2266
|
+
])), description("Jsx options preset")),
|
|
2267
|
+
preserveEntrySignatures: pipe(optional(union([literal(false)])), description("Avoid facade chunks for entry points"))
|
|
2259
2268
|
});
|
|
2260
2269
|
InputCliOptionsSchema = omit(strictObject({
|
|
2261
2270
|
...InputOptionsSchema.entries,
|
|
@@ -2359,12 +2368,6 @@ var init_validator = __esm({ "src/utils/validator.ts"() {
|
|
|
2359
2368
|
}, () => `The 'true' value is not supported`)),
|
|
2360
2369
|
preserveModules: pipe(optional(boolean()), description("Preserve module structure")),
|
|
2361
2370
|
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
2371
|
virtualDirname: optional(string())
|
|
2369
2372
|
});
|
|
2370
2373
|
getAddonDescription = (placement, wrapper) => {
|
|
@@ -2387,8 +2390,7 @@ var init_validator = __esm({ "src/utils/validator.ts"() {
|
|
|
2387
2390
|
minSize: pipe(optional(number()), description("Minimum size of the chunk")),
|
|
2388
2391
|
minShareCount: pipe(optional(number()), description("Minimum share count of the chunk"))
|
|
2389
2392
|
})), 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"))
|
|
2393
|
+
minify: pipe(optional(boolean()), description("Minify the bundled file"))
|
|
2392
2394
|
});
|
|
2393
2395
|
OutputCliOptionsSchema = omit(strictObject({
|
|
2394
2396
|
...OutputOptionsSchema.entries,
|
|
@@ -2800,6 +2802,7 @@ var init_plugin_context = __esm({ "src/plugin/plugin-context.ts"() {
|
|
|
2800
2802
|
init_parse_ast_index();
|
|
2801
2803
|
init_minimal_plugin_context();
|
|
2802
2804
|
init_asset_source();
|
|
2805
|
+
init_bindingify_input_options();
|
|
2803
2806
|
init_misc();
|
|
2804
2807
|
init_transform_side_effects();
|
|
2805
2808
|
PluginContextImpl = class extends MinimalPluginContextImpl {
|
|
@@ -2861,7 +2864,10 @@ var init_plugin_context = __esm({ "src/plugin/plugin-context.ts"() {
|
|
|
2861
2864
|
}
|
|
2862
2865
|
emitFile = (file) => {
|
|
2863
2866
|
if (file.type === "prebuilt-chunk") return unimplemented("PluginContext.emitFile with type prebuilt-chunk");
|
|
2864
|
-
if (file.type === "chunk") return this.context.emitChunk(
|
|
2867
|
+
if (file.type === "chunk") return this.context.emitChunk({
|
|
2868
|
+
preserveEntrySignatures: bindingifyPreserveEntrySignatures(file.preserveSignature),
|
|
2869
|
+
...file
|
|
2870
|
+
});
|
|
2865
2871
|
const fnSanitizedFileName = file.fileName || typeof this.outputOptions.sanitizeFileName !== "function" ? void 0 : this.outputOptions.sanitizeFileName(file.name || "asset");
|
|
2866
2872
|
const filename = file.fileName ? void 0 : this.getAssetFileNames(file);
|
|
2867
2873
|
return this.context.emitFile({
|
|
@@ -3180,7 +3186,7 @@ var init_transform_rendered_chunk = __esm({ "src/utils/transform-rendered-chunk.
|
|
|
3180
3186
|
//#endregion
|
|
3181
3187
|
//#region src/utils/bindingify-output-options.ts
|
|
3182
3188
|
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
|
|
3189
|
+
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
3190
|
return {
|
|
3185
3191
|
dir,
|
|
3186
3192
|
file: file == null ? void 0 : file,
|
|
@@ -3214,8 +3220,7 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
3214
3220
|
preserveModules,
|
|
3215
3221
|
virtualDirname,
|
|
3216
3222
|
legalComments,
|
|
3217
|
-
preserveModulesRoot
|
|
3218
|
-
preserveEntrySignatures
|
|
3223
|
+
preserveModulesRoot
|
|
3219
3224
|
};
|
|
3220
3225
|
}
|
|
3221
3226
|
function bindingifyAddon(configAddon) {
|
|
@@ -3370,13 +3375,13 @@ var init_normalized_output_options = __esm({ "src/options/normalized-output-opti
|
|
|
3370
3375
|
return this.normalizedOutputPlugins;
|
|
3371
3376
|
}
|
|
3372
3377
|
get preserveModules() {
|
|
3373
|
-
return this.preserveModules;
|
|
3378
|
+
return this.outputOptions.preserveModules || false;
|
|
3374
3379
|
}
|
|
3375
3380
|
get preserveModulesRoot() {
|
|
3376
|
-
return this.preserveModulesRoot;
|
|
3381
|
+
return this.outputOptions.preserveModulesRoot;
|
|
3377
3382
|
}
|
|
3378
3383
|
get virtualDirname() {
|
|
3379
|
-
return this.virtualDirname;
|
|
3384
|
+
return this.outputOptions.virtualDirname || "_virtual";
|
|
3380
3385
|
}
|
|
3381
3386
|
};
|
|
3382
3387
|
} });
|
|
@@ -4088,7 +4093,8 @@ function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, normali
|
|
|
4088
4093
|
makeAbsoluteExternalsRelative: bindingifyMakeAbsoluteExternalsRelative(inputOptions.makeAbsoluteExternalsRelative),
|
|
4089
4094
|
debug: inputOptions.debug,
|
|
4090
4095
|
invalidateJsSideCache: pluginContextData.clear.bind(pluginContextData),
|
|
4091
|
-
markModuleLoaded: pluginContextData.markModuleLoaded.bind(pluginContextData)
|
|
4096
|
+
markModuleLoaded: pluginContextData.markModuleLoaded.bind(pluginContextData),
|
|
4097
|
+
preserveEntrySignatures: bindingifyPreserveEntrySignatures(inputOptions.preserveEntrySignatures)
|
|
4092
4098
|
};
|
|
4093
4099
|
}
|
|
4094
4100
|
function bindingifyHmr(hmr) {
|
|
@@ -4224,6 +4230,17 @@ function bindingifyMakeAbsoluteExternalsRelative(makeAbsoluteExternalsRelative)
|
|
|
4224
4230
|
field0: makeAbsoluteExternalsRelative
|
|
4225
4231
|
};
|
|
4226
4232
|
}
|
|
4233
|
+
function bindingifyPreserveEntrySignatures(preserveEntrySignatures) {
|
|
4234
|
+
if (preserveEntrySignatures == void 0) return void 0;
|
|
4235
|
+
else if (typeof preserveEntrySignatures === "string") return {
|
|
4236
|
+
type: "String",
|
|
4237
|
+
field0: preserveEntrySignatures
|
|
4238
|
+
};
|
|
4239
|
+
else return {
|
|
4240
|
+
type: "Bool",
|
|
4241
|
+
field0: preserveEntrySignatures
|
|
4242
|
+
};
|
|
4243
|
+
}
|
|
4227
4244
|
var init_bindingify_input_options = __esm({ "src/utils/bindingify-input-options.ts"() {
|
|
4228
4245
|
init_constructors();
|
|
4229
4246
|
init_utils();
|
|
@@ -4967,4 +4984,4 @@ var init_src = __esm({ "src/index.ts"() {
|
|
|
4967
4984
|
} });
|
|
4968
4985
|
|
|
4969
4986
|
//#endregion
|
|
4970
|
-
export { BuiltinPlugin, PluginContextData, VERSION, ansis_default, assetPlugin, bindingifyPlugin, build, buildImportAnalysisPlugin, composeJsPlugins, createBundler, defineConfig, description$1 as description, dynamicImportVarsPlugin, getInputCliKeys, getJsonSchema, getOutputCliKeys, handleOutputErrors, importGlobPlugin, init_ansis, init_bindingify_plugin, init_compose_js_plugins, init_constructors, init_create_bundler, init_normalize_string_or_regex, init_plugin_context_data, init_rolldown, init_src, init_transform_to_rollup_output, init_validator, init_watch, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, rolldown, validateCliOptions, version, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, watch, webWorkerPostPlugin };
|
|
4987
|
+
export { BuiltinPlugin, PluginContextData, PluginDriver, VERSION, ansis_default, assetPlugin, bindingifyPlugin, build, buildImportAnalysisPlugin, composeJsPlugins, createBundler, defineConfig, description$1 as description, dynamicImportVarsPlugin, getInputCliKeys, getJsonSchema, getOutputCliKeys, handleOutputErrors, importGlobPlugin, init_ansis, init_bindingify_plugin, init_compose_js_plugins, init_constructors, init_create_bundler, init_normalize_string_or_regex, init_plugin_context_data, init_plugin_driver, init_rolldown, init_src, init_transform_to_rollup_output, init_validator, init_watch, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, rolldown, validateCliOptions, version, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, watch, webWorkerPostPlugin };
|