@rolldown/browser 1.0.0-rc.9 → 1.0.1
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.mjs +208 -73
- package/dist/config.d.mts +1 -1
- package/dist/config.mjs +2 -7
- package/dist/{constructors-BgL_dmUe.js → constructors-BTLtc_G_.js} +11 -2
- package/dist/{error-DkAP_6fk.js → error-CIj5jXSo.js} +1 -1
- package/dist/experimental-index.browser.mjs +10 -10
- package/dist/experimental-index.d.mts +17 -19
- package/dist/experimental-index.mjs +11 -11
- package/dist/experimental-runtime-types.d.ts +14 -5
- package/dist/filter-index.d.mts +3 -3
- package/dist/filter-index.mjs +3 -3
- package/dist/index.browser.mjs +4 -4
- package/dist/index.d.mts +4 -3
- package/dist/index.mjs +4 -8
- package/dist/{normalize-string-or-regex-TtAGUp42.js → normalize-string-or-regex-CBPw_c5O.js} +21 -11
- package/dist/parallel-plugin-worker.mjs +1 -4
- package/dist/parallel-plugin.d.mts +2 -2
- package/dist/parse-ast-index.d.mts +1 -2
- package/dist/parse-ast-index.mjs +1 -1
- package/dist/plugins-index.browser.mjs +2 -2
- package/dist/plugins-index.d.mts +3 -3
- package/dist/plugins-index.mjs +2 -2
- package/dist/{transform-UkHb5h4g.js → resolve-tsconfig-uVC8K7GR.js} +28 -5
- package/dist/rolldown-binding.wasi-browser.js +6 -0
- package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/{rolldown-build-sRmdtwRU.js → rolldown-build-DCjXbOeh.js} +242 -210
- package/dist/shared/binding-CaVxb0SV.d.mts +3198 -0
- package/dist/shared/{bindingify-input-options-Cfptl9gw.mjs → bindingify-input-options-C7dl2XLe.mjs} +126 -58
- package/dist/shared/{composable-filters-B2ByPP8y.mjs → composable-filters-DpWB82jk.mjs} +2 -2
- package/dist/shared/{constructors-C1tQjDsj.d.mts → constructors-B1JYJxhf.d.mts} +7 -3
- package/dist/shared/{constructors-C7Kkidxk.mjs → constructors-CI_8FAaP.mjs} +11 -2
- package/dist/shared/{define-config-B1J71V4c.d.mts → define-config-CYgMQYTy.d.mts} +131 -39
- package/dist/shared/{load-config-B6MMusXN.mjs → load-config-BFkorvIR.mjs} +1 -1
- package/dist/shared/{normalize-string-or-regex-CF3Uz6aU.mjs → normalize-string-or-regex-Dq6w-2tU.mjs} +21 -11
- package/dist/shared/{parse-DDUnGYGU.mjs → parse-Bmk53Le1.mjs} +1 -1
- package/dist/shared/{prompt-BYQIwEjg.mjs → prompt-U5ajztzG.mjs} +4 -2
- package/dist/shared/{transform-B_n5An0U.mjs → resolve-tsconfig-Cwoo4h_o.mjs} +27 -4
- package/dist/shared/{rolldown-BDqeiCX1.mjs → rolldown-Dyy9Y2li.mjs} +1 -1
- package/dist/shared/{rolldown-build-DZ7tJkeQ.mjs → rolldown-build-DYE2Qi6z.mjs} +120 -156
- package/dist/shared/{transform-BSAGL1b_.d.mts → transform-kP3ISMFT.d.mts} +30 -13
- package/dist/shared/{utils-6wxe_LMG.d.mts → utils-KRVeJqya.d.mts} +1 -1
- package/dist/shared/{watch-Cj4uDLQX.mjs → watch-DXAEaxPd.mjs} +3 -3
- package/dist/utils-index.browser.mjs +5 -5
- package/dist/utils-index.d.mts +4 -4
- package/dist/utils-index.mjs +5 -6
- package/dist/wasi-worker-browser.mjs +8 -0
- package/package.json +4 -2
- package/dist/shared/types-Cx3HYorz.d.mts +0 -1302
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as logInputHookInOutputPlugin, n as error } from "./logs-D80CXhvg.mjs";
|
|
2
|
-
import { n as BuiltinPlugin } from "./normalize-string-or-regex-
|
|
3
|
-
import { c as __decorate, d as PlainObjectLike, f as MinimalPluginContextImpl, h as LOG_LEVEL_DEBUG, i as transformModuleInfo, l as transformAssetSource, m as normalizeLog, o as transformToRollupOutput, p as normalizeHook, s as transformRenderedChunk, t as bindingifyInputOptions, u as lazyProp, v as LOG_LEVEL_WARN, x as VERSION, y as logLevelPriority } from "./bindingify-input-options-
|
|
4
|
-
import { v as unimplemented } from "./composable-filters-
|
|
2
|
+
import { n as BuiltinPlugin } from "./normalize-string-or-regex-Dq6w-2tU.mjs";
|
|
3
|
+
import { c as __decorate, d as PlainObjectLike, f as MinimalPluginContextImpl, h as LOG_LEVEL_DEBUG, i as transformModuleInfo, l as transformAssetSource, m as normalizeLog, o as transformToRollupOutput, p as normalizeHook, s as transformRenderedChunk, t as bindingifyInputOptions, u as lazyProp, v as LOG_LEVEL_WARN, x as VERSION, y as logLevelPriority } from "./bindingify-input-options-C7dl2XLe.mjs";
|
|
4
|
+
import { v as unimplemented } from "./composable-filters-DpWB82jk.mjs";
|
|
5
5
|
import { i as unwrapBindingResult } from "./error-CQ6njWsV.mjs";
|
|
6
6
|
import { Worker } from "node:worker_threads";
|
|
7
7
|
import { BindingBundler, ParallelJsPluginRegistry, shutdownAsyncRuntime, startAsyncRuntime } from "../rolldown-binding.wasi.cjs";
|
|
@@ -211,8 +211,14 @@ function getSortedPlugins(hookName, plugins) {
|
|
|
211
211
|
];
|
|
212
212
|
}
|
|
213
213
|
//#endregion
|
|
214
|
-
//#region ../../node_modules/.pnpm/valibot@1.
|
|
214
|
+
//#region ../../node_modules/.pnpm/valibot@1.4.0_typescript@6.0.3/node_modules/valibot/dist/index.mjs
|
|
215
215
|
let store$4;
|
|
216
|
+
const DEFAULT_CONFIG = {
|
|
217
|
+
lang: void 0,
|
|
218
|
+
message: void 0,
|
|
219
|
+
abortEarly: void 0,
|
|
220
|
+
abortPipeEarly: void 0
|
|
221
|
+
};
|
|
216
222
|
/**
|
|
217
223
|
* Returns the global configuration.
|
|
218
224
|
*
|
|
@@ -222,6 +228,7 @@ let store$4;
|
|
|
222
228
|
*/
|
|
223
229
|
/* @__NO_SIDE_EFFECTS__ */
|
|
224
230
|
function getGlobalConfig(config$1) {
|
|
231
|
+
if (!config$1 && true) return DEFAULT_CONFIG;
|
|
225
232
|
return {
|
|
226
233
|
lang: config$1?.lang ?? store$4?.lang,
|
|
227
234
|
message: config$1?.message,
|
|
@@ -319,6 +326,7 @@ function _addIssue(context, label, dataset, config$1, other) {
|
|
|
319
326
|
if (dataset.issues) dataset.issues.push(issue);
|
|
320
327
|
else dataset.issues = [issue];
|
|
321
328
|
}
|
|
329
|
+
const _standardCache = /* @__PURE__ */ new WeakMap();
|
|
322
330
|
/**
|
|
323
331
|
* Returns the Standard Schema properties.
|
|
324
332
|
*
|
|
@@ -328,13 +336,18 @@ function _addIssue(context, label, dataset, config$1, other) {
|
|
|
328
336
|
*/
|
|
329
337
|
/* @__NO_SIDE_EFFECTS__ */
|
|
330
338
|
function _getStandardProps(context) {
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
339
|
+
let cached = _standardCache.get(context);
|
|
340
|
+
if (!cached) {
|
|
341
|
+
cached = {
|
|
342
|
+
version: 1,
|
|
343
|
+
vendor: "valibot",
|
|
344
|
+
validate(value$1) {
|
|
345
|
+
return context["~run"]({ value: value$1 }, /* @__PURE__ */ getGlobalConfig());
|
|
346
|
+
}
|
|
347
|
+
};
|
|
348
|
+
_standardCache.set(context, cached);
|
|
349
|
+
}
|
|
350
|
+
return cached;
|
|
338
351
|
}
|
|
339
352
|
/**
|
|
340
353
|
* Disallows inherited object properties and prevents object prototype
|
|
@@ -349,7 +362,7 @@ function _getStandardProps(context) {
|
|
|
349
362
|
*/
|
|
350
363
|
/* @__NO_SIDE_EFFECTS__ */
|
|
351
364
|
function _isValidObjectKey(object$1, key) {
|
|
352
|
-
return Object.
|
|
365
|
+
return Object.prototype.hasOwnProperty.call(object$1, key) && key !== "__proto__" && key !== "prototype" && key !== "constructor";
|
|
353
366
|
}
|
|
354
367
|
/**
|
|
355
368
|
* Joins multiple `expects` values with the given separator.
|
|
@@ -473,6 +486,7 @@ function returnsAsync(schema) {
|
|
|
473
486
|
}
|
|
474
487
|
};
|
|
475
488
|
}
|
|
489
|
+
const ABORT_EARLY_CONFIG = { abortEarly: true };
|
|
476
490
|
/**
|
|
477
491
|
* Returns the fallback value of the schema.
|
|
478
492
|
*
|
|
@@ -510,7 +524,7 @@ function getDefault(schema, dataset, config$1) {
|
|
|
510
524
|
*/
|
|
511
525
|
/* @__NO_SIDE_EFFECTS__ */
|
|
512
526
|
function is(schema, input) {
|
|
513
|
-
return !schema["~run"]({ value: input },
|
|
527
|
+
return !schema["~run"]({ value: input }, ABORT_EARLY_CONFIG).issues;
|
|
514
528
|
}
|
|
515
529
|
/**
|
|
516
530
|
* Creates an any schema.
|
|
@@ -1122,7 +1136,7 @@ function undefined_(message$1) {
|
|
|
1122
1136
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1123
1137
|
function _subIssues(datasets) {
|
|
1124
1138
|
let issues;
|
|
1125
|
-
if (datasets) for (const dataset of datasets) if (issues)
|
|
1139
|
+
if (datasets) for (const dataset of datasets) if (issues) for (const issue of dataset.issues) issues.push(issue);
|
|
1126
1140
|
else issues = dataset.issues;
|
|
1127
1141
|
return issues;
|
|
1128
1142
|
}
|
|
@@ -1396,9 +1410,7 @@ function styleText$1(...args) {
|
|
|
1396
1410
|
}
|
|
1397
1411
|
//#endregion
|
|
1398
1412
|
//#region src/utils/validator.ts
|
|
1399
|
-
function isTypeTrue() {}
|
|
1400
1413
|
const StringOrRegExpSchema = /* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ instance(RegExp)]);
|
|
1401
|
-
isTypeTrue();
|
|
1402
1414
|
function vFunction() {
|
|
1403
1415
|
return /* @__PURE__ */ function_();
|
|
1404
1416
|
}
|
|
@@ -1407,32 +1419,25 @@ const LogLevelSchema = /* @__PURE__ */ union([
|
|
|
1407
1419
|
/* @__PURE__ */ literal("info"),
|
|
1408
1420
|
/* @__PURE__ */ literal("warn")
|
|
1409
1421
|
]);
|
|
1410
|
-
isTypeTrue();
|
|
1411
1422
|
const LogLevelOptionSchema = /* @__PURE__ */ union([LogLevelSchema, /* @__PURE__ */ literal("silent")]);
|
|
1412
|
-
isTypeTrue();
|
|
1413
1423
|
const LogLevelWithErrorSchema = /* @__PURE__ */ union([LogLevelSchema, /* @__PURE__ */ literal("error")]);
|
|
1414
|
-
isTypeTrue();
|
|
1415
1424
|
const RollupLogSchema = /* @__PURE__ */ any();
|
|
1416
1425
|
const RollupLogWithStringSchema = /* @__PURE__ */ union([RollupLogSchema, /* @__PURE__ */ string()]);
|
|
1417
|
-
isTypeTrue();
|
|
1418
1426
|
const InputOptionSchema = /* @__PURE__ */ union([
|
|
1419
1427
|
/* @__PURE__ */ string(),
|
|
1420
1428
|
/* @__PURE__ */ array(/* @__PURE__ */ string()),
|
|
1421
1429
|
/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string())
|
|
1422
1430
|
]);
|
|
1423
|
-
isTypeTrue();
|
|
1424
1431
|
const ExternalOptionFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([
|
|
1425
1432
|
/* @__PURE__ */ string(),
|
|
1426
1433
|
/* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
1427
1434
|
/* @__PURE__ */ boolean()
|
|
1428
1435
|
])), /* @__PURE__ */ returns(/* @__PURE__ */ nullish(/* @__PURE__ */ boolean())));
|
|
1429
|
-
isTypeTrue();
|
|
1430
1436
|
const ExternalOptionSchema = /* @__PURE__ */ union([
|
|
1431
1437
|
StringOrRegExpSchema,
|
|
1432
1438
|
/* @__PURE__ */ array(StringOrRegExpSchema),
|
|
1433
1439
|
ExternalOptionFunctionSchema
|
|
1434
1440
|
]);
|
|
1435
|
-
isTypeTrue();
|
|
1436
1441
|
const ModuleTypesSchema = /* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ union([
|
|
1437
1442
|
/* @__PURE__ */ literal("asset"),
|
|
1438
1443
|
/* @__PURE__ */ literal("base64"),
|
|
@@ -1448,76 +1453,63 @@ const ModuleTypesSchema = /* @__PURE__ */ record(/* @__PURE__ */ string(), /* @_
|
|
|
1448
1453
|
/* @__PURE__ */ literal("ts"),
|
|
1449
1454
|
/* @__PURE__ */ literal("tsx")
|
|
1450
1455
|
]));
|
|
1451
|
-
isTypeTrue();
|
|
1452
|
-
const JsxOptionsSchema = /* @__PURE__ */ strictObject({
|
|
1453
|
-
runtime: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("classic"), /* @__PURE__ */ literal("automatic")])), /* @__PURE__ */ description("Which runtime to use")),
|
|
1454
|
-
development: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Development specific information")),
|
|
1455
|
-
throwIfNamespace: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Toggles whether to throw an error when a tag name uses an XML namespace")),
|
|
1456
|
-
pure: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Mark JSX elements and top-level React method calls as pure for tree shaking.")),
|
|
1457
|
-
importSource: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Import the factory of element and fragment if mode is classic")),
|
|
1458
|
-
pragma: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Jsx element transformation")),
|
|
1459
|
-
pragmaFrag: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Jsx fragment transformation")),
|
|
1460
|
-
refresh: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ any()])), /* @__PURE__ */ description("Enable react fast refresh"))
|
|
1461
|
-
});
|
|
1462
|
-
isTypeTrue();
|
|
1463
|
-
const HelperModeSchema = /* @__PURE__ */ union([/* @__PURE__ */ literal("Runtime"), /* @__PURE__ */ literal("External")]);
|
|
1464
|
-
const DecoratorOptionSchema = /* @__PURE__ */ object({
|
|
1465
|
-
legacy: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1466
|
-
emitDecoratorMetadata: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1467
|
-
});
|
|
1468
|
-
isTypeTrue();
|
|
1469
|
-
const HelpersSchema = /* @__PURE__ */ object({ mode: /* @__PURE__ */ optional(HelperModeSchema) });
|
|
1470
|
-
isTypeTrue();
|
|
1471
|
-
const TypescriptSchema = /* @__PURE__ */ object({
|
|
1472
|
-
jsxPragma: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
1473
|
-
jsxPragmaFrag: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
1474
|
-
onlyRemoveTypeImports: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1475
|
-
allowNamespaces: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1476
|
-
allowDeclareFields: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1477
|
-
removeClassFieldsWithoutInitializer: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1478
|
-
declaration: /* @__PURE__ */ optional(/* @__PURE__ */ object({
|
|
1479
|
-
stripInternal: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1480
|
-
sourcemap: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1481
|
-
})),
|
|
1482
|
-
rewriteImportExtensions: /* @__PURE__ */ optional(/* @__PURE__ */ union([
|
|
1483
|
-
/* @__PURE__ */ literal("rewrite"),
|
|
1484
|
-
/* @__PURE__ */ literal("remove"),
|
|
1485
|
-
/* @__PURE__ */ boolean()
|
|
1486
|
-
]))
|
|
1487
|
-
});
|
|
1488
|
-
isTypeTrue();
|
|
1489
|
-
const AssumptionsSchema = /* @__PURE__ */ object({
|
|
1490
|
-
ignoreFunctionLength: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1491
|
-
noDocumentAll: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1492
|
-
objectRestNoSymbols: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1493
|
-
pureGetters: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1494
|
-
setPublicClassFields: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1495
|
-
});
|
|
1496
|
-
isTypeTrue();
|
|
1497
|
-
const TransformPluginsSchema = /* @__PURE__ */ object({
|
|
1498
|
-
styledComponents: /* @__PURE__ */ optional(/* @__PURE__ */ any()),
|
|
1499
|
-
taggedTemplateEscape: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1500
|
-
});
|
|
1501
|
-
isTypeTrue();
|
|
1502
1456
|
const TransformOptionsSchema = /* @__PURE__ */ object({
|
|
1503
|
-
assumptions: /* @__PURE__ */ optional(
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1457
|
+
assumptions: /* @__PURE__ */ optional(/* @__PURE__ */ object({
|
|
1458
|
+
ignoreFunctionLength: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1459
|
+
noDocumentAll: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1460
|
+
objectRestNoSymbols: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1461
|
+
pureGetters: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1462
|
+
setPublicClassFields: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1463
|
+
})),
|
|
1464
|
+
typescript: /* @__PURE__ */ optional(/* @__PURE__ */ object({
|
|
1465
|
+
jsxPragma: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
1466
|
+
jsxPragmaFrag: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
1467
|
+
onlyRemoveTypeImports: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1468
|
+
allowNamespaces: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1469
|
+
allowDeclareFields: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1470
|
+
removeClassFieldsWithoutInitializer: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1471
|
+
optimizeConstEnums: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1472
|
+
optimizeEnums: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1473
|
+
declaration: /* @__PURE__ */ optional(/* @__PURE__ */ object({
|
|
1474
|
+
stripInternal: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1475
|
+
sourcemap: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1476
|
+
})),
|
|
1477
|
+
rewriteImportExtensions: /* @__PURE__ */ optional(/* @__PURE__ */ union([
|
|
1478
|
+
/* @__PURE__ */ literal("rewrite"),
|
|
1479
|
+
/* @__PURE__ */ literal("remove"),
|
|
1480
|
+
/* @__PURE__ */ boolean()
|
|
1481
|
+
]))
|
|
1482
|
+
})),
|
|
1483
|
+
helpers: /* @__PURE__ */ optional(/* @__PURE__ */ object({ mode: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("Runtime"), /* @__PURE__ */ literal("External")])) })),
|
|
1484
|
+
decorator: /* @__PURE__ */ optional(/* @__PURE__ */ object({
|
|
1485
|
+
legacy: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1486
|
+
emitDecoratorMetadata: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1487
|
+
})),
|
|
1507
1488
|
jsx: /* @__PURE__ */ optional(/* @__PURE__ */ union([
|
|
1508
1489
|
/* @__PURE__ */ literal(false),
|
|
1509
1490
|
/* @__PURE__ */ literal("preserve"),
|
|
1510
1491
|
/* @__PURE__ */ literal("react"),
|
|
1511
1492
|
/* @__PURE__ */ literal("react-jsx"),
|
|
1512
|
-
|
|
1493
|
+
/* @__PURE__ */ strictObject({
|
|
1494
|
+
runtime: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("classic"), /* @__PURE__ */ literal("automatic")])), /* @__PURE__ */ description("Which runtime to use")),
|
|
1495
|
+
development: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Development specific information")),
|
|
1496
|
+
throwIfNamespace: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Toggles whether to throw an error when a tag name uses an XML namespace")),
|
|
1497
|
+
pure: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Mark JSX elements and top-level React method calls as pure for tree shaking.")),
|
|
1498
|
+
importSource: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Import the factory of element and fragment if mode is classic")),
|
|
1499
|
+
pragma: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Jsx element transformation")),
|
|
1500
|
+
pragmaFrag: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Jsx fragment transformation")),
|
|
1501
|
+
refresh: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ any()])), /* @__PURE__ */ description("Enable react fast refresh"))
|
|
1502
|
+
})
|
|
1513
1503
|
])),
|
|
1514
1504
|
target: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ array(/* @__PURE__ */ string())])), /* @__PURE__ */ description("The JavaScript target environment")),
|
|
1515
1505
|
define: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string())), /* @__PURE__ */ description("Define global variables (syntax: key:value,key2:value2)")),
|
|
1516
1506
|
inject: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ tuple([/* @__PURE__ */ string(), /* @__PURE__ */ string()])]))), /* @__PURE__ */ description("Inject import statements on demand")),
|
|
1517
1507
|
dropLabels: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())), /* @__PURE__ */ description("Remove labeled statements with these label names")),
|
|
1518
|
-
plugins: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(
|
|
1508
|
+
plugins: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ object({
|
|
1509
|
+
styledComponents: /* @__PURE__ */ optional(/* @__PURE__ */ any()),
|
|
1510
|
+
taggedTemplateEscape: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1511
|
+
})), /* @__PURE__ */ description("Third-party plugins to use"))
|
|
1519
1512
|
});
|
|
1520
|
-
isTypeTrue();
|
|
1521
1513
|
const WatcherFileWatcherOptionsSchema = /* @__PURE__ */ strictObject({
|
|
1522
1514
|
usePolling: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Use polling-based file watching instead of native OS events")),
|
|
1523
1515
|
pollInterval: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ number()), /* @__PURE__ */ description("Poll interval in milliseconds (only used when usePolling is true)")),
|
|
@@ -1537,7 +1529,6 @@ const WatcherOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
1537
1529
|
clearScreen: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to clear the screen when a rebuild is triggered")),
|
|
1538
1530
|
onInvalidate: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(vFunction()), /* @__PURE__ */ description("An optional function that will be called immediately every time a module changes that is part of the build."))
|
|
1539
1531
|
});
|
|
1540
|
-
isTypeTrue();
|
|
1541
1532
|
const ChecksOptionsSchema = /* @__PURE__ */ strictObject({
|
|
1542
1533
|
circularDependency: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when detecting circular dependency")),
|
|
1543
1534
|
eval: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when detecting uses of direct `eval`s")),
|
|
@@ -1558,54 +1549,42 @@ const ChecksOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
1558
1549
|
pluginTimings: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when plugins take significant time during the build process")),
|
|
1559
1550
|
duplicateShebang: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when both the code and postBanner contain shebang")),
|
|
1560
1551
|
unsupportedTsconfigOption: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a tsconfig option or combination of options is not supported")),
|
|
1561
|
-
ineffectiveDynamicImport: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a module is dynamically imported but also statically imported, making the dynamic import ineffective for code splitting"))
|
|
1562
|
-
|
|
1563
|
-
isTypeTrue();
|
|
1564
|
-
const CompressOptionsKeepNamesSchema = /* @__PURE__ */ strictObject({
|
|
1565
|
-
function: /* @__PURE__ */ boolean(),
|
|
1566
|
-
class: /* @__PURE__ */ boolean()
|
|
1567
|
-
});
|
|
1568
|
-
isTypeTrue();
|
|
1569
|
-
const CompressTreeshakeOptionsSchema = /* @__PURE__ */ strictObject({
|
|
1570
|
-
annotations: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1571
|
-
manualPureFunctions: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())),
|
|
1572
|
-
propertyReadSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ literal("always")])),
|
|
1573
|
-
unknownGlobalSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1574
|
-
invalidImportSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1575
|
-
});
|
|
1576
|
-
isTypeTrue();
|
|
1577
|
-
const CompressOptionsSchema = /* @__PURE__ */ strictObject({
|
|
1578
|
-
target: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ array(/* @__PURE__ */ string())])),
|
|
1579
|
-
dropConsole: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1580
|
-
dropDebugger: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1581
|
-
keepNames: /* @__PURE__ */ optional(CompressOptionsKeepNamesSchema),
|
|
1582
|
-
unused: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ literal("keep_assign")])),
|
|
1583
|
-
joinVars: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1584
|
-
sequences: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1585
|
-
dropLabels: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())),
|
|
1586
|
-
maxIterations: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
1587
|
-
treeshake: /* @__PURE__ */ optional(CompressTreeshakeOptionsSchema)
|
|
1588
|
-
});
|
|
1589
|
-
isTypeTrue();
|
|
1590
|
-
const MangleOptionsKeepNamesSchema = /* @__PURE__ */ strictObject({
|
|
1591
|
-
function: /* @__PURE__ */ boolean(),
|
|
1592
|
-
class: /* @__PURE__ */ boolean()
|
|
1552
|
+
ineffectiveDynamicImport: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a module is dynamically imported but also statically imported, making the dynamic import ineffective for code splitting")),
|
|
1553
|
+
largeBarrelModules: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit info logs when a barrel module has a very large number of re-exports (more than 5000)"))
|
|
1593
1554
|
});
|
|
1594
|
-
isTypeTrue();
|
|
1595
|
-
const MangleOptionsSchema = /* @__PURE__ */ strictObject({
|
|
1596
|
-
toplevel: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1597
|
-
keepNames: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), MangleOptionsKeepNamesSchema])),
|
|
1598
|
-
debug: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1599
|
-
});
|
|
1600
|
-
isTypeTrue();
|
|
1601
|
-
const CodegenOptionsSchema = /* @__PURE__ */ strictObject({ removeWhitespace: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()) });
|
|
1602
|
-
isTypeTrue();
|
|
1603
1555
|
const MinifyOptionsSchema = /* @__PURE__ */ strictObject({
|
|
1604
|
-
compress: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(),
|
|
1605
|
-
|
|
1606
|
-
|
|
1556
|
+
compress: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
|
|
1557
|
+
target: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ array(/* @__PURE__ */ string())])),
|
|
1558
|
+
dropConsole: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1559
|
+
dropDebugger: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1560
|
+
keepNames: /* @__PURE__ */ optional(/* @__PURE__ */ strictObject({
|
|
1561
|
+
function: /* @__PURE__ */ boolean(),
|
|
1562
|
+
class: /* @__PURE__ */ boolean()
|
|
1563
|
+
})),
|
|
1564
|
+
unused: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ literal("keep_assign")])),
|
|
1565
|
+
joinVars: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1566
|
+
sequences: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1567
|
+
dropLabels: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())),
|
|
1568
|
+
maxIterations: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
1569
|
+
treeshake: /* @__PURE__ */ optional(/* @__PURE__ */ strictObject({
|
|
1570
|
+
annotations: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1571
|
+
manualPureFunctions: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())),
|
|
1572
|
+
propertyReadSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ literal("always")])),
|
|
1573
|
+
propertyWriteSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1574
|
+
unknownGlobalSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1575
|
+
invalidImportSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1576
|
+
}))
|
|
1577
|
+
})])),
|
|
1578
|
+
mangle: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
|
|
1579
|
+
toplevel: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1580
|
+
keepNames: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
|
|
1581
|
+
function: /* @__PURE__ */ boolean(),
|
|
1582
|
+
class: /* @__PURE__ */ boolean()
|
|
1583
|
+
})])),
|
|
1584
|
+
debug: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1585
|
+
})])),
|
|
1586
|
+
codegen: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({ removeWhitespace: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()) })]))
|
|
1607
1587
|
});
|
|
1608
|
-
isTypeTrue();
|
|
1609
1588
|
const ResolveOptionsSchema = /* @__PURE__ */ strictObject({
|
|
1610
1589
|
alias: /* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ union([
|
|
1611
1590
|
/* @__PURE__ */ literal(false),
|
|
@@ -1623,7 +1602,6 @@ const ResolveOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
1623
1602
|
symlinks: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1624
1603
|
tsconfigFilename: /* @__PURE__ */ optional(/* @__PURE__ */ string())
|
|
1625
1604
|
});
|
|
1626
|
-
isTypeTrue();
|
|
1627
1605
|
const TreeshakingOptionsSchema = /* @__PURE__ */ strictObject({
|
|
1628
1606
|
moduleSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ any()),
|
|
1629
1607
|
annotations: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
@@ -1634,7 +1612,6 @@ const TreeshakingOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
1634
1612
|
propertyReadSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal(false), /* @__PURE__ */ literal("always")])),
|
|
1635
1613
|
propertyWriteSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal(false), /* @__PURE__ */ literal("always")]))
|
|
1636
1614
|
});
|
|
1637
|
-
isTypeTrue();
|
|
1638
1615
|
const OptimizationOptionsSchema = /* @__PURE__ */ strictObject({
|
|
1639
1616
|
inlineConst: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
|
|
1640
1617
|
mode: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("all"), /* @__PURE__ */ literal("smart")])),
|
|
@@ -1642,24 +1619,19 @@ const OptimizationOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
1642
1619
|
})])), /* @__PURE__ */ description("Enable crossmodule constant inlining")),
|
|
1643
1620
|
pifeForModuleWrappers: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Use PIFE pattern for module wrappers"))
|
|
1644
1621
|
});
|
|
1645
|
-
isTypeTrue();
|
|
1646
1622
|
const LogOrStringHandlerSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([LogLevelWithErrorSchema, RollupLogWithStringSchema])));
|
|
1647
|
-
isTypeTrue();
|
|
1648
1623
|
const OnLogSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([
|
|
1649
1624
|
LogLevelSchema,
|
|
1650
1625
|
RollupLogSchema,
|
|
1651
1626
|
LogOrStringHandlerSchema
|
|
1652
1627
|
])));
|
|
1653
|
-
isTypeTrue();
|
|
1654
1628
|
const OnwarnSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([RollupLogSchema, /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ union([RollupLogWithStringSchema, /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ returns(RollupLogWithStringSchema))])])))])));
|
|
1655
|
-
isTypeTrue();
|
|
1656
1629
|
const DevModeSchema = /* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
|
|
1657
1630
|
port: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
1658
1631
|
host: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
1659
1632
|
implement: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
1660
1633
|
lazy: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1661
1634
|
})]);
|
|
1662
|
-
isTypeTrue();
|
|
1663
1635
|
const InputOptionsSchema = /* @__PURE__ */ strictObject({
|
|
1664
1636
|
input: /* @__PURE__ */ optional(InputOptionSchema),
|
|
1665
1637
|
plugins: /* @__PURE__ */ optional(/* @__PURE__ */ custom(() => true)),
|
|
@@ -1696,7 +1668,10 @@ const InputOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
1696
1668
|
onDemandWrapping: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1697
1669
|
incrementalBuild: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1698
1670
|
nativeMagicString: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1699
|
-
chunkOptimization: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()
|
|
1671
|
+
chunkOptimization: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
|
|
1672
|
+
mergeCommonChunks: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1673
|
+
avoidRedundantChunkLoads: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1674
|
+
})])),
|
|
1700
1675
|
lazyBarrel: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1701
1676
|
})),
|
|
1702
1677
|
transform: /* @__PURE__ */ optional(TransformOptionsSchema),
|
|
@@ -1712,7 +1687,6 @@ const InputOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
1712
1687
|
context: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("The value of `this` at the top level of each module.")),
|
|
1713
1688
|
tsconfig: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ string()])), /* @__PURE__ */ description("Path to the tsconfig.json file."))
|
|
1714
1689
|
});
|
|
1715
|
-
isTypeTrue();
|
|
1716
1690
|
const InputCliOverrideSchema = /* @__PURE__ */ strictObject({
|
|
1717
1691
|
input: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())), /* @__PURE__ */ description("Entry file")),
|
|
1718
1692
|
external: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())), /* @__PURE__ */ description("Comma-separated list of module ids to exclude from the bundle `<module-id>,...`")),
|
|
@@ -1741,32 +1715,22 @@ const ModuleFormatSchema = /* @__PURE__ */ union([
|
|
|
1741
1715
|
/* @__PURE__ */ literal("iife"),
|
|
1742
1716
|
/* @__PURE__ */ literal("umd")
|
|
1743
1717
|
]);
|
|
1744
|
-
isTypeTrue();
|
|
1745
1718
|
const AddonFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ custom(() => true)])), /* @__PURE__ */ returnsAsync(/* @__PURE__ */ unionAsync([/* @__PURE__ */ string(), /* @__PURE__ */ pipeAsync(/* @__PURE__ */ promise(), /* @__PURE__ */ awaitAsync(), /* @__PURE__ */ string())])));
|
|
1746
|
-
isTypeTrue();
|
|
1747
1719
|
const ChunkFileNamesFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ custom(() => true)])), /* @__PURE__ */ returns(/* @__PURE__ */ string()));
|
|
1748
|
-
isTypeTrue();
|
|
1749
1720
|
const ChunkFileNamesSchema = /* @__PURE__ */ union([/* @__PURE__ */ string(), ChunkFileNamesFunctionSchema]);
|
|
1750
1721
|
const AssetFileNamesFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ custom(() => true)])), /* @__PURE__ */ returns(/* @__PURE__ */ string()));
|
|
1751
|
-
isTypeTrue();
|
|
1752
1722
|
const AssetFileNamesSchema = /* @__PURE__ */ union([/* @__PURE__ */ string(), AssetFileNamesFunctionSchema]);
|
|
1753
1723
|
const SanitizeFileNameFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string()])), /* @__PURE__ */ returns(/* @__PURE__ */ string()));
|
|
1754
|
-
isTypeTrue();
|
|
1755
1724
|
const SanitizeFileNameSchema = /* @__PURE__ */ union([/* @__PURE__ */ boolean(), SanitizeFileNameFunctionSchema]);
|
|
1756
1725
|
const GlobalsFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string()])), /* @__PURE__ */ returns(/* @__PURE__ */ string()));
|
|
1757
|
-
isTypeTrue();
|
|
1758
1726
|
const PathsFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string()])), /* @__PURE__ */ returns(/* @__PURE__ */ string()));
|
|
1759
|
-
isTypeTrue();
|
|
1760
1727
|
const ManualChunksFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string(), /* @__PURE__ */ object({})])), /* @__PURE__ */ returns(/* @__PURE__ */ nullish(/* @__PURE__ */ string())));
|
|
1761
|
-
isTypeTrue();
|
|
1762
1728
|
const AdvancedChunksNameFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string(), /* @__PURE__ */ object({})])), /* @__PURE__ */ returns(/* @__PURE__ */ nullish(/* @__PURE__ */ string())));
|
|
1763
|
-
isTypeTrue();
|
|
1764
1729
|
const AdvancedChunksTestFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string()])), /* @__PURE__ */ returns(/* @__PURE__ */ union([
|
|
1765
1730
|
/* @__PURE__ */ boolean(),
|
|
1766
1731
|
/* @__PURE__ */ void_(),
|
|
1767
1732
|
/* @__PURE__ */ undefined_()
|
|
1768
1733
|
])));
|
|
1769
|
-
isTypeTrue();
|
|
1770
1734
|
const AdvancedChunksSchema = /* @__PURE__ */ strictObject({
|
|
1771
1735
|
includeDependenciesRecursively: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1772
1736
|
minSize: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
@@ -1784,18 +1748,15 @@ const AdvancedChunksSchema = /* @__PURE__ */ strictObject({
|
|
|
1784
1748
|
minModuleSize: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
1785
1749
|
maxModuleSize: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
1786
1750
|
entriesAware: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1787
|
-
entriesAwareMergeThreshold: /* @__PURE__ */ optional(/* @__PURE__ */ number())
|
|
1751
|
+
entriesAwareMergeThreshold: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
1752
|
+
tags: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string()))
|
|
1788
1753
|
})))
|
|
1789
1754
|
});
|
|
1790
|
-
isTypeTrue();
|
|
1791
|
-
const GeneratedCodePresetSchema = /* @__PURE__ */ union([/* @__PURE__ */ literal("es5"), /* @__PURE__ */ literal("es2015")]);
|
|
1792
|
-
isTypeTrue();
|
|
1793
1755
|
const GeneratedCodeOptionsSchema = /* @__PURE__ */ strictObject({
|
|
1794
1756
|
symbols: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to use Symbol.toStringTag for namespace objects")),
|
|
1795
|
-
preset: /* @__PURE__ */ optional(
|
|
1757
|
+
preset: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("es5"), /* @__PURE__ */ literal("es2015")])),
|
|
1796
1758
|
profilerNames: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to add readable names to internal variables for profiling purposes"))
|
|
1797
1759
|
});
|
|
1798
|
-
isTypeTrue();
|
|
1799
1760
|
const OutputOptionsSchema = /* @__PURE__ */ strictObject({
|
|
1800
1761
|
dir: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Output directory, defaults to `dist` if `file` is not set")),
|
|
1801
1762
|
file: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Single output file")),
|
|
@@ -1818,6 +1779,7 @@ const OutputOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
1818
1779
|
])), /* @__PURE__ */ description(`Generate sourcemap (\`-s inline\` for inline, or \`-s\` for \`.map\` file)`)),
|
|
1819
1780
|
sourcemapBaseUrl: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Base URL used to prefix sourcemap paths")),
|
|
1820
1781
|
sourcemapDebugIds: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Inject sourcemap debug IDs")),
|
|
1782
|
+
sourcemapExcludeSources: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Exclude source content from sourcemaps")),
|
|
1821
1783
|
sourcemapIgnoreList: /* @__PURE__ */ optional(/* @__PURE__ */ union([
|
|
1822
1784
|
/* @__PURE__ */ boolean(),
|
|
1823
1785
|
/* @__PURE__ */ custom(() => true),
|
|
@@ -1870,7 +1832,6 @@ const OutputOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
1870
1832
|
strictExecutionOrder: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Lets modules be executed in the order they are declared.")),
|
|
1871
1833
|
strict: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ literal("auto")])), /* @__PURE__ */ description("Whether to always output `\"use strict\"` directive in non-ES module outputs."))
|
|
1872
1834
|
});
|
|
1873
|
-
isTypeTrue();
|
|
1874
1835
|
const getAddonDescription = (placement, wrapper) => {
|
|
1875
1836
|
return `Code to insert the ${styleText$1("bold", placement)} of the bundled file (${styleText$1("bold", wrapper)} the wrapper function)`;
|
|
1876
1837
|
};
|
|
@@ -1961,6 +1922,7 @@ function getCliSchemaInfo() {
|
|
|
1961
1922
|
//#endregion
|
|
1962
1923
|
//#region src/types/rolldown-output-impl.ts
|
|
1963
1924
|
var RolldownOutputImpl = class extends PlainObjectLike {
|
|
1925
|
+
bindingOutputs;
|
|
1964
1926
|
constructor(bindingOutputs) {
|
|
1965
1927
|
super();
|
|
1966
1928
|
this.bindingOutputs = bindingOutputs;
|
|
@@ -1984,6 +1946,7 @@ __decorate([lazyProp], RolldownOutputImpl.prototype, "output", null);
|
|
|
1984
1946
|
//#endregion
|
|
1985
1947
|
//#region src/types/chunking-context.ts
|
|
1986
1948
|
var ChunkingContextImpl = class {
|
|
1949
|
+
context;
|
|
1987
1950
|
constructor(context) {
|
|
1988
1951
|
this.context = context;
|
|
1989
1952
|
}
|
|
@@ -2763,7 +2726,7 @@ function n(e) {
|
|
|
2763
2726
|
return e ? e !== "false" : false;
|
|
2764
2727
|
}
|
|
2765
2728
|
const I = globalThis.process?.platform || "", T = n(o.CI) || l.ci !== false, a = n(globalThis.process?.stdout && globalThis.process?.stdout.isTTY), g = n(o.DEBUG), R = t === "test" || n(o.TEST);
|
|
2766
|
-
|
|
2729
|
+
o.MINIMAL;
|
|
2767
2730
|
const A = /^win/i.test(I);
|
|
2768
2731
|
!n(o.NO_COLOR) && (n(o.FORCE_COLOR) || (a || A) && o.TERM);
|
|
2769
2732
|
const C = (globalThis.process?.versions?.node || "").replace(/^v/, "") || null;
|
|
@@ -2932,7 +2895,7 @@ function createConsola(options = {}) {
|
|
|
2932
2895
|
defaults: { level },
|
|
2933
2896
|
stdout: process.stdout,
|
|
2934
2897
|
stderr: process.stderr,
|
|
2935
|
-
prompt: (...args) => import("./prompt-
|
|
2898
|
+
prompt: (...args) => import("./prompt-U5ajztzG.mjs").then((m) => m.prompt(...args)),
|
|
2936
2899
|
reporters: options.reporters || [options.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()],
|
|
2937
2900
|
...options
|
|
2938
2901
|
});
|
|
@@ -2973,7 +2936,7 @@ function createTestingLogger() {
|
|
|
2973
2936
|
//#endregion
|
|
2974
2937
|
//#region src/utils/bindingify-output-options.ts
|
|
2975
2938
|
function bindingifyOutputOptions(outputOptions) {
|
|
2976
|
-
const { dir, format, exports, hashCharacters, sourcemap, sourcemapBaseUrl, sourcemapDebugIds, sourcemapIgnoreList, sourcemapPathTransform, name, assetFileNames, entryFileNames, chunkFileNames, banner, footer, postBanner, postFooter, intro, outro, esModule, globals, paths, generatedCode, file, sanitizeFileName, preserveModules, virtualDirname, legalComments, comments, preserveModulesRoot, manualChunks, topLevelVar, cleanDir, strictExecutionOrder } = outputOptions;
|
|
2939
|
+
const { dir, format, exports, hashCharacters, sourcemap, sourcemapBaseUrl, sourcemapDebugIds, sourcemapExcludeSources, sourcemapIgnoreList, sourcemapPathTransform, name, assetFileNames, entryFileNames, chunkFileNames, banner, footer, postBanner, postFooter, intro, outro, esModule, globals, paths, generatedCode, file, sanitizeFileName, preserveModules, virtualDirname, legalComments, comments, preserveModulesRoot, manualChunks, topLevelVar, cleanDir, strictExecutionOrder } = outputOptions;
|
|
2977
2940
|
if (legalComments != null) logger.warn("`legalComments` option is deprecated, please use `comments.legal` instead.");
|
|
2978
2941
|
const { inlineDynamicImports, advancedChunks } = bindingifyCodeSplitting(outputOptions.codeSplitting, outputOptions.inlineDynamicImports, outputOptions.advancedChunks, manualChunks);
|
|
2979
2942
|
return {
|
|
@@ -2985,6 +2948,7 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
2985
2948
|
sourcemap: bindingifySourcemap(sourcemap),
|
|
2986
2949
|
sourcemapBaseUrl,
|
|
2987
2950
|
sourcemapDebugIds,
|
|
2951
|
+
sourcemapExcludeSources,
|
|
2988
2952
|
sourcemapIgnoreList: sourcemapIgnoreList ?? /node_modules/,
|
|
2989
2953
|
sourcemapPathTransform,
|
|
2990
2954
|
banner: bindingifyAddon(banner),
|