@rolldown/browser 1.0.0-beta.33 → 1.0.0-beta.34
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 +31 -31
- package/dist/cli.mjs +31 -31
- package/dist/config.cjs +3 -3
- package/dist/config.d.cts +2 -2
- package/dist/config.d.mts +2 -2
- package/dist/config.mjs +3 -3
- package/dist/experimental-index.browser.mjs +34 -3
- package/dist/experimental-index.cjs +36 -2
- package/dist/experimental-index.d.cts +36 -4
- package/dist/experimental-index.d.mts +36 -4
- package/dist/experimental-index.mjs +35 -4
- 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 +2 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- 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 +2 -2
- package/dist/parallel-plugin.d.mts +2 -2
- package/dist/parse-ast-index.cjs +1 -1
- package/dist/parse-ast-index.d.cts +1 -1
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/parse-ast-index.mjs +1 -1
- package/dist/rolldown-binding.wasi-browser.js +3 -0
- package/dist/rolldown-binding.wasi.cjs +3 -0
- package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/shared/{binding-CFhvYkVn.d.mts → binding-9k0egz6L.d.mts} +107 -7
- package/dist/shared/{binding-DQk9TN_A.d.cts → binding-D13M6Llu.d.cts} +107 -7
- package/dist/shared/{define-config-B3QOs3Kt.d.cts → define-config-D5AluabE.d.cts} +63 -24
- package/dist/shared/{define-config-DyjJkNqG.d.mts → define-config-DzIQxNqU.d.mts} +63 -24
- package/dist/shared/{load-config-CLPLfZVe.mjs → load-config--VYNOtUY.mjs} +1 -1
- package/dist/shared/{load-config-xKQFLlGV.cjs → load-config-DfHD1OI9.cjs} +1 -1
- package/dist/shared/{parse-ast-index-BGzB5Bo-.mjs → parse-ast-index-C_CZT4St.mjs} +1 -1
- package/dist/shared/{parse-ast-index-BZfwAN9P.cjs → parse-ast-index-ChWj_C49.cjs} +1 -1
- package/dist/shared/{src-CZgQg1yE.mjs → src-B4V64IkU.mjs} +105 -90
- package/dist/shared/{src-CGziNJPr.cjs → src-McCMqGpa.cjs} +122 -95
- package/dist/{src-D_htlJ_o.js → src-Bl12Y5ab.js} +102 -87
- package/package.json +19 -11
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { augmentCodeLocation, error, logCycleLoading, logDuplicateJsxConfig, logInputHookInOutputPlugin, logInvalidLogPosition, logMultiplyNotifyOption, logPluginError, parseAst } from "./parse-ast-index-
|
|
1
|
+
import { augmentCodeLocation, error, logCycleLoading, logDuplicateJsxConfig, logInputHookInOutputPlugin, logInvalidLogPosition, logMultiplyNotifyOption, logPluginError, parseAst } from "./parse-ast-index-C_CZT4St.mjs";
|
|
2
2
|
import { and, arraify, code, exclude, id, include, moduleType, noop, or, unimplemented, unreachable, unsupported } from "./dist-ByKQkexh.mjs";
|
|
3
3
|
import { BindingAttachDebugInfo, BindingBundler, BindingCallableBuiltinPlugin, BindingChunkModuleOrderBy, BindingJsx, BindingLogLevel, BindingPluginOrder, BindingWatcher, ParallelJsPluginRegistry, shutdownAsyncRuntime, startAsyncRuntime } from "../rolldown-binding.wasi.cjs";
|
|
4
4
|
import path from "node:path";
|
|
@@ -34,22 +34,17 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
34
34
|
|
|
35
35
|
//#endregion
|
|
36
36
|
//#region package.json
|
|
37
|
-
var version = "1.0.0-beta.
|
|
37
|
+
var version = "1.0.0-beta.34";
|
|
38
38
|
var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
39
39
|
|
|
40
|
-
//#endregion
|
|
41
|
-
//#region src/utils/normalize-string-or-regex.ts
|
|
42
|
-
function normalizedStringOrRegex(pattern) {
|
|
43
|
-
if (!pattern) return void 0;
|
|
44
|
-
if (!isReadonlyArray(pattern)) return [pattern];
|
|
45
|
-
return pattern;
|
|
46
|
-
}
|
|
47
|
-
function isReadonlyArray(input) {
|
|
48
|
-
return Array.isArray(input);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
40
|
//#endregion
|
|
52
41
|
//#region src/builtin-plugin/utils.ts
|
|
42
|
+
var BuiltinPlugin = class {
|
|
43
|
+
constructor(name, _options) {
|
|
44
|
+
this.name = name;
|
|
45
|
+
this._options = _options;
|
|
46
|
+
}
|
|
47
|
+
};
|
|
53
48
|
function makeBuiltinPluginCallable(plugin) {
|
|
54
49
|
let callablePlugin = new BindingCallableBuiltinPlugin(bindingifyBuiltInPlugin(plugin));
|
|
55
50
|
const wrappedPlugin = plugin;
|
|
@@ -73,67 +68,6 @@ function bindingifyBuiltInPlugin(plugin) {
|
|
|
73
68
|
};
|
|
74
69
|
}
|
|
75
70
|
|
|
76
|
-
//#endregion
|
|
77
|
-
//#region src/builtin-plugin/constructors.ts
|
|
78
|
-
var BuiltinPlugin = class {
|
|
79
|
-
constructor(name, _options) {
|
|
80
|
-
this.name = name;
|
|
81
|
-
this._options = _options;
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
function modulePreloadPolyfillPlugin(config) {
|
|
85
|
-
return new BuiltinPlugin("builtin:module-preload-polyfill", config);
|
|
86
|
-
}
|
|
87
|
-
function dynamicImportVarsPlugin(config) {
|
|
88
|
-
if (config) {
|
|
89
|
-
config.include = normalizedStringOrRegex(config.include);
|
|
90
|
-
config.exclude = normalizedStringOrRegex(config.exclude);
|
|
91
|
-
}
|
|
92
|
-
return new BuiltinPlugin("builtin:dynamic-import-vars", config);
|
|
93
|
-
}
|
|
94
|
-
function importGlobPlugin(config) {
|
|
95
|
-
return new BuiltinPlugin("builtin:import-glob", config);
|
|
96
|
-
}
|
|
97
|
-
function reporterPlugin(config) {
|
|
98
|
-
return new BuiltinPlugin("builtin:reporter", config);
|
|
99
|
-
}
|
|
100
|
-
function manifestPlugin(config) {
|
|
101
|
-
return new BuiltinPlugin("builtin:manifest", config);
|
|
102
|
-
}
|
|
103
|
-
function wasmHelperPlugin(config) {
|
|
104
|
-
return new BuiltinPlugin("builtin:wasm-helper", config);
|
|
105
|
-
}
|
|
106
|
-
function wasmFallbackPlugin() {
|
|
107
|
-
const builtinPlugin = new BuiltinPlugin("builtin:wasm-fallback");
|
|
108
|
-
return makeBuiltinPluginCallable(builtinPlugin);
|
|
109
|
-
}
|
|
110
|
-
function loadFallbackPlugin() {
|
|
111
|
-
return new BuiltinPlugin("builtin:load-fallback");
|
|
112
|
-
}
|
|
113
|
-
function jsonPlugin(config) {
|
|
114
|
-
const builtinPlugin = new BuiltinPlugin("builtin:json", config);
|
|
115
|
-
return makeBuiltinPluginCallable(builtinPlugin);
|
|
116
|
-
}
|
|
117
|
-
function buildImportAnalysisPlugin(config) {
|
|
118
|
-
return new BuiltinPlugin("builtin:build-import-analysis", config);
|
|
119
|
-
}
|
|
120
|
-
function viteResolvePlugin(config) {
|
|
121
|
-
const builtinPlugin = new BuiltinPlugin("builtin:vite-resolve", config);
|
|
122
|
-
return makeBuiltinPluginCallable(builtinPlugin);
|
|
123
|
-
}
|
|
124
|
-
function isolatedDeclarationPlugin(config) {
|
|
125
|
-
return new BuiltinPlugin("builtin:isolated-declaration", config);
|
|
126
|
-
}
|
|
127
|
-
function assetPlugin(config) {
|
|
128
|
-
return new BuiltinPlugin("builtin:asset", config);
|
|
129
|
-
}
|
|
130
|
-
function webWorkerPostPlugin() {
|
|
131
|
-
return new BuiltinPlugin("builtin:web-worker-post");
|
|
132
|
-
}
|
|
133
|
-
function oxcRuntimePlugin(config) {
|
|
134
|
-
return new BuiltinPlugin("builtin:oxc-runtime", config);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
71
|
//#endregion
|
|
138
72
|
//#region src/log/logging.ts
|
|
139
73
|
const LOG_LEVEL_SILENT = "silent";
|
|
@@ -258,6 +192,75 @@ function normalizeHook(hook) {
|
|
|
258
192
|
unreachable("Invalid hook type");
|
|
259
193
|
}
|
|
260
194
|
|
|
195
|
+
//#endregion
|
|
196
|
+
//#region src/utils/normalize-string-or-regex.ts
|
|
197
|
+
function normalizedStringOrRegex(pattern) {
|
|
198
|
+
if (!pattern) return void 0;
|
|
199
|
+
if (!isReadonlyArray(pattern)) return [pattern];
|
|
200
|
+
return pattern;
|
|
201
|
+
}
|
|
202
|
+
function isReadonlyArray(input) {
|
|
203
|
+
return Array.isArray(input);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
//#endregion
|
|
207
|
+
//#region src/builtin-plugin/constructors.ts
|
|
208
|
+
function modulePreloadPolyfillPlugin(config) {
|
|
209
|
+
return new BuiltinPlugin("builtin:module-preload-polyfill", config);
|
|
210
|
+
}
|
|
211
|
+
function dynamicImportVarsPlugin(config) {
|
|
212
|
+
if (config) {
|
|
213
|
+
config.include = normalizedStringOrRegex(config.include);
|
|
214
|
+
config.exclude = normalizedStringOrRegex(config.exclude);
|
|
215
|
+
}
|
|
216
|
+
return new BuiltinPlugin("builtin:dynamic-import-vars", config);
|
|
217
|
+
}
|
|
218
|
+
function importGlobPlugin(config) {
|
|
219
|
+
return new BuiltinPlugin("builtin:import-glob", config);
|
|
220
|
+
}
|
|
221
|
+
function reporterPlugin(config) {
|
|
222
|
+
return new BuiltinPlugin("builtin:reporter", config);
|
|
223
|
+
}
|
|
224
|
+
function manifestPlugin(config) {
|
|
225
|
+
return new BuiltinPlugin("builtin:manifest", config);
|
|
226
|
+
}
|
|
227
|
+
function wasmHelperPlugin(config) {
|
|
228
|
+
return new BuiltinPlugin("builtin:wasm-helper", config);
|
|
229
|
+
}
|
|
230
|
+
function wasmFallbackPlugin() {
|
|
231
|
+
const builtinPlugin = new BuiltinPlugin("builtin:wasm-fallback");
|
|
232
|
+
return makeBuiltinPluginCallable(builtinPlugin);
|
|
233
|
+
}
|
|
234
|
+
function loadFallbackPlugin() {
|
|
235
|
+
return new BuiltinPlugin("builtin:load-fallback");
|
|
236
|
+
}
|
|
237
|
+
function jsonPlugin(config) {
|
|
238
|
+
const builtinPlugin = new BuiltinPlugin("builtin:json", config);
|
|
239
|
+
return makeBuiltinPluginCallable(builtinPlugin);
|
|
240
|
+
}
|
|
241
|
+
function buildImportAnalysisPlugin(config) {
|
|
242
|
+
return new BuiltinPlugin("builtin:build-import-analysis", config);
|
|
243
|
+
}
|
|
244
|
+
function viteResolvePlugin(config) {
|
|
245
|
+
const builtinPlugin = new BuiltinPlugin("builtin:vite-resolve", config);
|
|
246
|
+
return makeBuiltinPluginCallable(builtinPlugin);
|
|
247
|
+
}
|
|
248
|
+
function isolatedDeclarationPlugin(config) {
|
|
249
|
+
return new BuiltinPlugin("builtin:isolated-declaration", config);
|
|
250
|
+
}
|
|
251
|
+
function assetPlugin(config) {
|
|
252
|
+
return new BuiltinPlugin("builtin:asset", config);
|
|
253
|
+
}
|
|
254
|
+
function webWorkerPostPlugin() {
|
|
255
|
+
return new BuiltinPlugin("builtin:web-worker-post");
|
|
256
|
+
}
|
|
257
|
+
function oxcRuntimePlugin(config) {
|
|
258
|
+
return new BuiltinPlugin("builtin:oxc-runtime", config);
|
|
259
|
+
}
|
|
260
|
+
function esmExternalRequirePlugin(config) {
|
|
261
|
+
return new BuiltinPlugin("builtin:esm-external-require", config);
|
|
262
|
+
}
|
|
263
|
+
|
|
261
264
|
//#endregion
|
|
262
265
|
//#region src/constants/plugin.ts
|
|
263
266
|
const ENUMERATED_INPUT_PLUGIN_HOOK_NAMES = [
|
|
@@ -1938,6 +1941,7 @@ var require_ansis = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/ansis
|
|
|
1938
1941
|
//#endregion
|
|
1939
1942
|
//#region ../../node_modules/.pnpm/ansis@4.1.0/node_modules/ansis/index.mjs
|
|
1940
1943
|
var import_ansis = /* @__PURE__ */ __toESM(require_ansis(), 1);
|
|
1944
|
+
var ansis_default = import_ansis.default;
|
|
1941
1945
|
const { Ansis, fg, bg, rgb, bgRgb, hex, bgHex, reset, inverse, hidden, visible, bold, dim, italic, underline, strikethrough, black, red, green, yellow, blue, magenta, cyan, white, gray, redBright, greenBright, yellowBright, blueBright, magentaBright, cyanBright, whiteBright, bgBlack, bgRed, bgGreen, bgYellow, bgBlue, bgMagenta, bgCyan, bgWhite, bgGray, bgRedBright, bgGreenBright, bgYellowBright, bgBlueBright, bgMagentaBright, bgCyanBright, bgWhiteBright } = import_ansis.default;
|
|
1942
1946
|
|
|
1943
1947
|
//#endregion
|
|
@@ -2035,7 +2039,7 @@ const TransformOptionsSchema = object({
|
|
|
2035
2039
|
typescript: optional(TypescriptSchema),
|
|
2036
2040
|
helpers: optional(HelpersSchema),
|
|
2037
2041
|
decorators: optional(DecoratorOptionSchema),
|
|
2038
|
-
jsx: optional(JsxOptionsSchema),
|
|
2042
|
+
jsx: optional(union([literal("preserve"), JsxOptionsSchema])),
|
|
2039
2043
|
target: pipe(optional(union([string(), array(string())])), description("The JavaScript target environment"))
|
|
2040
2044
|
});
|
|
2041
2045
|
const WatchOptionsSchema = strictObject({
|
|
@@ -2063,7 +2067,8 @@ const ChecksOptionsSchema = strictObject({
|
|
|
2063
2067
|
commonJsVariableInEsm: pipe(optional(boolean()), description("Whether to emit warning when detecting common js variable in esm")),
|
|
2064
2068
|
importIsUndefined: pipe(optional(boolean()), description("Whether to emit warning when detecting import is undefined")),
|
|
2065
2069
|
emptyImportMeta: pipe(optional(boolean()), description("Whether to emit warning when detecting empty import meta")),
|
|
2066
|
-
configurationFieldConflict: pipe(optional(boolean()), description("Whether to emit warning when detecting configuration field conflict"))
|
|
2070
|
+
configurationFieldConflict: pipe(optional(boolean()), description("Whether to emit warning when detecting configuration field conflict")),
|
|
2071
|
+
preferBuiltinFeature: pipe(optional(boolean()), description("Whether to emit warning when detecting prefer builtin feature"))
|
|
2067
2072
|
});
|
|
2068
2073
|
const MinifyOptionsSchema = strictObject({
|
|
2069
2074
|
mangle: optional(boolean()),
|
|
@@ -2081,7 +2086,6 @@ const ResolveOptionsSchema = strictObject({
|
|
|
2081
2086
|
mainFiles: optional(array(string())),
|
|
2082
2087
|
modules: optional(array(string())),
|
|
2083
2088
|
symlinks: optional(boolean()),
|
|
2084
|
-
tsconfigFilename: optional(string()),
|
|
2085
2089
|
yarnPnp: optional(boolean())
|
|
2086
2090
|
});
|
|
2087
2091
|
const TreeshakingOptionsSchema = union([boolean(), looseObject({
|
|
@@ -2116,11 +2120,11 @@ const InputOptionsSchema = strictObject({
|
|
|
2116
2120
|
literal("browser"),
|
|
2117
2121
|
literal("neutral"),
|
|
2118
2122
|
literal("node")
|
|
2119
|
-
])), description(`Platform for which the code should be generated (node, ${
|
|
2123
|
+
])), description(`Platform for which the code should be generated (node, ${ansis_default.underline("browser")}, neutral)`)),
|
|
2120
2124
|
shimMissingExports: pipe(optional(boolean()), description("Create shim variables for missing exports")),
|
|
2121
2125
|
treeshake: optional(TreeshakingOptionsSchema),
|
|
2122
2126
|
optimization: optional(OptimizationOptionsSchema),
|
|
2123
|
-
logLevel: pipe(optional(LogLevelOptionSchema), description(`Log level (${
|
|
2127
|
+
logLevel: pipe(optional(LogLevelOptionSchema), description(`Log level (${ansis_default.dim("silent")}, ${ansis_default.underline(ansis_default.gray("info"))}, debug, ${ansis_default.yellow("warn")})`)),
|
|
2124
2128
|
onLog: optional(OnLogSchema),
|
|
2125
2129
|
onwarn: optional(OnwarnSchema),
|
|
2126
2130
|
moduleTypes: pipe(optional(ModuleTypesSchema), description("Module types for customized extensions")),
|
|
@@ -2165,7 +2169,8 @@ const InputOptionsSchema = strictObject({
|
|
|
2165
2169
|
literal("allow-extension"),
|
|
2166
2170
|
literal("exports-only"),
|
|
2167
2171
|
literal(false)
|
|
2168
|
-
])))
|
|
2172
|
+
]))),
|
|
2173
|
+
tsconfig: pipe(optional(string()), description("Path to the tsconfig.json file."))
|
|
2169
2174
|
});
|
|
2170
2175
|
const InputCliOverrideSchema = strictObject({
|
|
2171
2176
|
input: pipe(optional(array(string())), description("Entry file")),
|
|
@@ -2238,18 +2243,18 @@ const OutputOptionsSchema = strictObject({
|
|
|
2238
2243
|
literal("named"),
|
|
2239
2244
|
literal("default"),
|
|
2240
2245
|
literal("none")
|
|
2241
|
-
])), description(`Specify a export mode (${
|
|
2246
|
+
])), description(`Specify a export mode (${ansis_default.underline("auto")}, named, default, none)`)),
|
|
2242
2247
|
hashCharacters: pipe(optional(union([
|
|
2243
2248
|
literal("base64"),
|
|
2244
2249
|
literal("base36"),
|
|
2245
2250
|
literal("hex")
|
|
2246
2251
|
])), description("Use the specified character set for file hashes")),
|
|
2247
|
-
format: pipe(optional(ModuleFormatSchema), description(`Output format of the generated bundle (supports ${
|
|
2252
|
+
format: pipe(optional(ModuleFormatSchema), description(`Output format of the generated bundle (supports ${ansis_default.underline("esm")}, cjs, and iife)`)),
|
|
2248
2253
|
sourcemap: pipe(optional(union([
|
|
2249
2254
|
boolean(),
|
|
2250
2255
|
literal("inline"),
|
|
2251
2256
|
literal("hidden")
|
|
2252
|
-
])), description(`Generate sourcemap (\`-s inline\` for inline, or ${
|
|
2257
|
+
])), description(`Generate sourcemap (\`-s inline\` for inline, or ${ansis_default.bold("pass the `-s` on the last argument if you want to generate `.map` file")})`)),
|
|
2253
2258
|
sourcemapBaseUrl: pipe(optional(string()), description("Base URL used to prefix sourcemap paths")),
|
|
2254
2259
|
sourcemapDebugIds: pipe(optional(boolean()), description("Inject sourcemap debug IDs")),
|
|
2255
2260
|
sourcemapIgnoreList: optional(union([boolean(), custom(() => true)])),
|
|
@@ -2287,10 +2292,11 @@ const OutputOptionsSchema = strictObject({
|
|
|
2287
2292
|
preserveModules: pipe(optional(boolean()), description("Preserve module structure")),
|
|
2288
2293
|
preserveModulesRoot: pipe(optional(string()), description("Put preserved modules under this path at root level")),
|
|
2289
2294
|
virtualDirname: optional(string()),
|
|
2290
|
-
minifyInternalExports: pipe(optional(boolean()), description("Minify internal exports"))
|
|
2295
|
+
minifyInternalExports: pipe(optional(boolean()), description("Minify internal exports")),
|
|
2296
|
+
topLevelVar: pipe(optional(boolean()), description("Rewrite top-level declarations to use `var`."))
|
|
2291
2297
|
});
|
|
2292
2298
|
const getAddonDescription = (placement, wrapper) => {
|
|
2293
|
-
return `Code to insert the ${
|
|
2299
|
+
return `Code to insert the ${ansis_default.bold(placement)} of the bundled file (${ansis_default.bold(wrapper)} the wrapper function)`;
|
|
2294
2300
|
};
|
|
2295
2301
|
const OutputCliOverrideSchema = strictObject({
|
|
2296
2302
|
assetFileNames: pipe(optional(string()), description("Name pattern for asset files")),
|
|
@@ -2741,7 +2747,8 @@ var PluginContextImpl = class extends MinimalPluginContextImpl {
|
|
|
2741
2747
|
...res,
|
|
2742
2748
|
external: res.external === "relative" ? unreachable(`The PluginContext resolve result external couldn't be 'relative'`) : res.external,
|
|
2743
2749
|
...info,
|
|
2744
|
-
moduleSideEffects: info.moduleSideEffects ?? res.moduleSideEffects ?? null
|
|
2750
|
+
moduleSideEffects: info.moduleSideEffects ?? res.moduleSideEffects ?? null,
|
|
2751
|
+
packageJsonPath: res.packageJsonPath
|
|
2745
2752
|
};
|
|
2746
2753
|
}
|
|
2747
2754
|
emitFile = (file) => {
|
|
@@ -2867,7 +2874,8 @@ function bindingifyResolveId(args$1) {
|
|
|
2867
2874
|
id: ret.id,
|
|
2868
2875
|
external: ret.external,
|
|
2869
2876
|
normalizeExternalId: false,
|
|
2870
|
-
moduleSideEffects: exist.moduleSideEffects ?? void 0
|
|
2877
|
+
moduleSideEffects: exist.moduleSideEffects ?? void 0,
|
|
2878
|
+
packageJsonPath: ret.packageJsonPath
|
|
2871
2879
|
};
|
|
2872
2880
|
},
|
|
2873
2881
|
meta: bindingifyPluginHookMeta(meta),
|
|
@@ -3793,7 +3801,13 @@ var NormalizedOutputOptionsImpl = class {
|
|
|
3793
3801
|
return this.outputOptions.sourcemapPathTransform;
|
|
3794
3802
|
}
|
|
3795
3803
|
get minify() {
|
|
3796
|
-
|
|
3804
|
+
let ret = this.inner.minify;
|
|
3805
|
+
if (typeof ret === "object" && ret !== null) {
|
|
3806
|
+
delete ret["codegen"];
|
|
3807
|
+
delete ret["module"];
|
|
3808
|
+
delete ret["sourcemap"];
|
|
3809
|
+
}
|
|
3810
|
+
return ret;
|
|
3797
3811
|
}
|
|
3798
3812
|
get legalComments() {
|
|
3799
3813
|
return this.inner.legalComments;
|
|
@@ -3977,7 +3991,8 @@ function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, normali
|
|
|
3977
3991
|
markModuleLoaded: pluginContextData.markModuleLoaded.bind(pluginContextData),
|
|
3978
3992
|
preserveEntrySignatures: bindingifyPreserveEntrySignatures(inputOptions.preserveEntrySignatures),
|
|
3979
3993
|
optimization: inputOptions.optimization,
|
|
3980
|
-
context: inputOptions.context
|
|
3994
|
+
context: inputOptions.context,
|
|
3995
|
+
tsconfig: inputOptions.tsconfig
|
|
3981
3996
|
};
|
|
3982
3997
|
}
|
|
3983
3998
|
function bindingifyHmr(hmr) {
|
|
@@ -4536,4 +4551,4 @@ function defineConfig(config) {
|
|
|
4536
4551
|
const VERSION = version;
|
|
4537
4552
|
|
|
4538
4553
|
//#endregion
|
|
4539
|
-
export { BuiltinPlugin, PluginContextData, PluginDriver, VERSION, __commonJS, __toESM, assetPlugin, bindingifyPlugin, build, buildImportAnalysisPlugin, createBundlerImpl, defineConfig, description$1 as description, dynamicImportVarsPlugin, getInputCliKeys, getJsonSchema, getOutputCliKeys, handleOutputErrors, importGlobPlugin,
|
|
4554
|
+
export { BuiltinPlugin, PluginContextData, PluginDriver, VERSION, __commonJS, __toESM, ansis_default, assetPlugin, bindingifyPlugin, build, buildImportAnalysisPlugin, createBundlerImpl, createBundlerOptions, defineConfig, description$1 as description, dynamicImportVarsPlugin, esmExternalRequirePlugin, getInputCliKeys, getJsonSchema, getOutputCliKeys, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, rolldown, validateCliOptions, version, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, watch, webWorkerPostPlugin };
|