@rolldown/browser 1.0.0-rc.9 → 1.0.0
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 +207 -72
- package/dist/config.d.mts +1 -1
- package/dist/config.mjs +2 -7
- package/dist/{constructors-BgL_dmUe.js → constructors-BXVEHwHm.js} +8 -2
- package/dist/{error-DkAP_6fk.js → error-DMfKBGWU.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 +1 -1
- 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-eqfrsvjc.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-CKS7EawU.js} +211 -197
- package/dist/shared/binding-CaVxb0SV.d.mts +3198 -0
- package/dist/shared/{bindingify-input-options-Cfptl9gw.mjs → bindingify-input-options-CboGFdC4.mjs} +125 -57
- package/dist/shared/{constructors-C1tQjDsj.d.mts → constructors-B1JYJxhf.d.mts} +7 -3
- package/dist/shared/{constructors-C7Kkidxk.mjs → constructors-DO36gIcC.mjs} +8 -2
- package/dist/shared/{define-config-B1J71V4c.d.mts → define-config-Bah0mfyR.d.mts} +81 -29
- package/dist/shared/{load-config-B6MMusXN.mjs → load-config-BwBgui4p.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-Lc1YQk0q.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-WowDTCZP.mjs} +1 -1
- package/dist/shared/{rolldown-build-DZ7tJkeQ.mjs → rolldown-build-DIb-iqkO.mjs} +89 -143
- 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-B81_EvN-.mjs} +2 -2
- 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,6 +1,6 @@
|
|
|
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-
|
|
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-CboGFdC4.mjs";
|
|
4
4
|
import { v as unimplemented } from "./composable-filters-B2ByPP8y.mjs";
|
|
5
5
|
import { i as unwrapBindingResult } from "./error-CQ6njWsV.mjs";
|
|
6
6
|
import { Worker } from "node:worker_threads";
|
|
@@ -211,7 +211,7 @@ 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.3.1_typescript@6.0.3/node_modules/valibot/dist/index.mjs
|
|
215
215
|
let store$4;
|
|
216
216
|
/**
|
|
217
217
|
* Returns the global configuration.
|
|
@@ -1396,9 +1396,7 @@ function styleText$1(...args) {
|
|
|
1396
1396
|
}
|
|
1397
1397
|
//#endregion
|
|
1398
1398
|
//#region src/utils/validator.ts
|
|
1399
|
-
function isTypeTrue() {}
|
|
1400
1399
|
const StringOrRegExpSchema = /* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ instance(RegExp)]);
|
|
1401
|
-
isTypeTrue();
|
|
1402
1400
|
function vFunction() {
|
|
1403
1401
|
return /* @__PURE__ */ function_();
|
|
1404
1402
|
}
|
|
@@ -1407,32 +1405,25 @@ const LogLevelSchema = /* @__PURE__ */ union([
|
|
|
1407
1405
|
/* @__PURE__ */ literal("info"),
|
|
1408
1406
|
/* @__PURE__ */ literal("warn")
|
|
1409
1407
|
]);
|
|
1410
|
-
isTypeTrue();
|
|
1411
1408
|
const LogLevelOptionSchema = /* @__PURE__ */ union([LogLevelSchema, /* @__PURE__ */ literal("silent")]);
|
|
1412
|
-
isTypeTrue();
|
|
1413
1409
|
const LogLevelWithErrorSchema = /* @__PURE__ */ union([LogLevelSchema, /* @__PURE__ */ literal("error")]);
|
|
1414
|
-
isTypeTrue();
|
|
1415
1410
|
const RollupLogSchema = /* @__PURE__ */ any();
|
|
1416
1411
|
const RollupLogWithStringSchema = /* @__PURE__ */ union([RollupLogSchema, /* @__PURE__ */ string()]);
|
|
1417
|
-
isTypeTrue();
|
|
1418
1412
|
const InputOptionSchema = /* @__PURE__ */ union([
|
|
1419
1413
|
/* @__PURE__ */ string(),
|
|
1420
1414
|
/* @__PURE__ */ array(/* @__PURE__ */ string()),
|
|
1421
1415
|
/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string())
|
|
1422
1416
|
]);
|
|
1423
|
-
isTypeTrue();
|
|
1424
1417
|
const ExternalOptionFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([
|
|
1425
1418
|
/* @__PURE__ */ string(),
|
|
1426
1419
|
/* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
1427
1420
|
/* @__PURE__ */ boolean()
|
|
1428
1421
|
])), /* @__PURE__ */ returns(/* @__PURE__ */ nullish(/* @__PURE__ */ boolean())));
|
|
1429
|
-
isTypeTrue();
|
|
1430
1422
|
const ExternalOptionSchema = /* @__PURE__ */ union([
|
|
1431
1423
|
StringOrRegExpSchema,
|
|
1432
1424
|
/* @__PURE__ */ array(StringOrRegExpSchema),
|
|
1433
1425
|
ExternalOptionFunctionSchema
|
|
1434
1426
|
]);
|
|
1435
|
-
isTypeTrue();
|
|
1436
1427
|
const ModuleTypesSchema = /* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ union([
|
|
1437
1428
|
/* @__PURE__ */ literal("asset"),
|
|
1438
1429
|
/* @__PURE__ */ literal("base64"),
|
|
@@ -1448,76 +1439,63 @@ const ModuleTypesSchema = /* @__PURE__ */ record(/* @__PURE__ */ string(), /* @_
|
|
|
1448
1439
|
/* @__PURE__ */ literal("ts"),
|
|
1449
1440
|
/* @__PURE__ */ literal("tsx")
|
|
1450
1441
|
]));
|
|
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
1442
|
const TransformOptionsSchema = /* @__PURE__ */ object({
|
|
1503
|
-
assumptions: /* @__PURE__ */ optional(
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1443
|
+
assumptions: /* @__PURE__ */ optional(/* @__PURE__ */ object({
|
|
1444
|
+
ignoreFunctionLength: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1445
|
+
noDocumentAll: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1446
|
+
objectRestNoSymbols: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1447
|
+
pureGetters: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1448
|
+
setPublicClassFields: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1449
|
+
})),
|
|
1450
|
+
typescript: /* @__PURE__ */ optional(/* @__PURE__ */ object({
|
|
1451
|
+
jsxPragma: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
1452
|
+
jsxPragmaFrag: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
1453
|
+
onlyRemoveTypeImports: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1454
|
+
allowNamespaces: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1455
|
+
allowDeclareFields: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1456
|
+
removeClassFieldsWithoutInitializer: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1457
|
+
optimizeConstEnums: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1458
|
+
optimizeEnums: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1459
|
+
declaration: /* @__PURE__ */ optional(/* @__PURE__ */ object({
|
|
1460
|
+
stripInternal: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1461
|
+
sourcemap: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1462
|
+
})),
|
|
1463
|
+
rewriteImportExtensions: /* @__PURE__ */ optional(/* @__PURE__ */ union([
|
|
1464
|
+
/* @__PURE__ */ literal("rewrite"),
|
|
1465
|
+
/* @__PURE__ */ literal("remove"),
|
|
1466
|
+
/* @__PURE__ */ boolean()
|
|
1467
|
+
]))
|
|
1468
|
+
})),
|
|
1469
|
+
helpers: /* @__PURE__ */ optional(/* @__PURE__ */ object({ mode: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("Runtime"), /* @__PURE__ */ literal("External")])) })),
|
|
1470
|
+
decorator: /* @__PURE__ */ optional(/* @__PURE__ */ object({
|
|
1471
|
+
legacy: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1472
|
+
emitDecoratorMetadata: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1473
|
+
})),
|
|
1507
1474
|
jsx: /* @__PURE__ */ optional(/* @__PURE__ */ union([
|
|
1508
1475
|
/* @__PURE__ */ literal(false),
|
|
1509
1476
|
/* @__PURE__ */ literal("preserve"),
|
|
1510
1477
|
/* @__PURE__ */ literal("react"),
|
|
1511
1478
|
/* @__PURE__ */ literal("react-jsx"),
|
|
1512
|
-
|
|
1479
|
+
/* @__PURE__ */ strictObject({
|
|
1480
|
+
runtime: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("classic"), /* @__PURE__ */ literal("automatic")])), /* @__PURE__ */ description("Which runtime to use")),
|
|
1481
|
+
development: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Development specific information")),
|
|
1482
|
+
throwIfNamespace: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Toggles whether to throw an error when a tag name uses an XML namespace")),
|
|
1483
|
+
pure: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Mark JSX elements and top-level React method calls as pure for tree shaking.")),
|
|
1484
|
+
importSource: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Import the factory of element and fragment if mode is classic")),
|
|
1485
|
+
pragma: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Jsx element transformation")),
|
|
1486
|
+
pragmaFrag: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Jsx fragment transformation")),
|
|
1487
|
+
refresh: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ any()])), /* @__PURE__ */ description("Enable react fast refresh"))
|
|
1488
|
+
})
|
|
1513
1489
|
])),
|
|
1514
1490
|
target: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ array(/* @__PURE__ */ string())])), /* @__PURE__ */ description("The JavaScript target environment")),
|
|
1515
1491
|
define: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string())), /* @__PURE__ */ description("Define global variables (syntax: key:value,key2:value2)")),
|
|
1516
1492
|
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
1493
|
dropLabels: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())), /* @__PURE__ */ description("Remove labeled statements with these label names")),
|
|
1518
|
-
plugins: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(
|
|
1494
|
+
plugins: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ object({
|
|
1495
|
+
styledComponents: /* @__PURE__ */ optional(/* @__PURE__ */ any()),
|
|
1496
|
+
taggedTemplateEscape: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1497
|
+
})), /* @__PURE__ */ description("Third-party plugins to use"))
|
|
1519
1498
|
});
|
|
1520
|
-
isTypeTrue();
|
|
1521
1499
|
const WatcherFileWatcherOptionsSchema = /* @__PURE__ */ strictObject({
|
|
1522
1500
|
usePolling: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Use polling-based file watching instead of native OS events")),
|
|
1523
1501
|
pollInterval: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ number()), /* @__PURE__ */ description("Poll interval in milliseconds (only used when usePolling is true)")),
|
|
@@ -1537,7 +1515,6 @@ const WatcherOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
1537
1515
|
clearScreen: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to clear the screen when a rebuild is triggered")),
|
|
1538
1516
|
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
1517
|
});
|
|
1540
|
-
isTypeTrue();
|
|
1541
1518
|
const ChecksOptionsSchema = /* @__PURE__ */ strictObject({
|
|
1542
1519
|
circularDependency: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when detecting circular dependency")),
|
|
1543
1520
|
eval: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when detecting uses of direct `eval`s")),
|
|
@@ -1560,52 +1537,39 @@ const ChecksOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
1560
1537
|
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
1538
|
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
1539
|
});
|
|
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()
|
|
1593
|
-
});
|
|
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
1540
|
const MinifyOptionsSchema = /* @__PURE__ */ strictObject({
|
|
1604
|
-
compress: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(),
|
|
1605
|
-
|
|
1606
|
-
|
|
1541
|
+
compress: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
|
|
1542
|
+
target: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ array(/* @__PURE__ */ string())])),
|
|
1543
|
+
dropConsole: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1544
|
+
dropDebugger: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1545
|
+
keepNames: /* @__PURE__ */ optional(/* @__PURE__ */ strictObject({
|
|
1546
|
+
function: /* @__PURE__ */ boolean(),
|
|
1547
|
+
class: /* @__PURE__ */ boolean()
|
|
1548
|
+
})),
|
|
1549
|
+
unused: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ literal("keep_assign")])),
|
|
1550
|
+
joinVars: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1551
|
+
sequences: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1552
|
+
dropLabels: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())),
|
|
1553
|
+
maxIterations: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
1554
|
+
treeshake: /* @__PURE__ */ optional(/* @__PURE__ */ strictObject({
|
|
1555
|
+
annotations: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1556
|
+
manualPureFunctions: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())),
|
|
1557
|
+
propertyReadSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ literal("always")])),
|
|
1558
|
+
propertyWriteSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1559
|
+
unknownGlobalSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1560
|
+
invalidImportSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1561
|
+
}))
|
|
1562
|
+
})])),
|
|
1563
|
+
mangle: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
|
|
1564
|
+
toplevel: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1565
|
+
keepNames: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
|
|
1566
|
+
function: /* @__PURE__ */ boolean(),
|
|
1567
|
+
class: /* @__PURE__ */ boolean()
|
|
1568
|
+
})])),
|
|
1569
|
+
debug: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1570
|
+
})])),
|
|
1571
|
+
codegen: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({ removeWhitespace: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()) })]))
|
|
1607
1572
|
});
|
|
1608
|
-
isTypeTrue();
|
|
1609
1573
|
const ResolveOptionsSchema = /* @__PURE__ */ strictObject({
|
|
1610
1574
|
alias: /* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ union([
|
|
1611
1575
|
/* @__PURE__ */ literal(false),
|
|
@@ -1623,7 +1587,6 @@ const ResolveOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
1623
1587
|
symlinks: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1624
1588
|
tsconfigFilename: /* @__PURE__ */ optional(/* @__PURE__ */ string())
|
|
1625
1589
|
});
|
|
1626
|
-
isTypeTrue();
|
|
1627
1590
|
const TreeshakingOptionsSchema = /* @__PURE__ */ strictObject({
|
|
1628
1591
|
moduleSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ any()),
|
|
1629
1592
|
annotations: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
@@ -1634,7 +1597,6 @@ const TreeshakingOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
1634
1597
|
propertyReadSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal(false), /* @__PURE__ */ literal("always")])),
|
|
1635
1598
|
propertyWriteSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal(false), /* @__PURE__ */ literal("always")]))
|
|
1636
1599
|
});
|
|
1637
|
-
isTypeTrue();
|
|
1638
1600
|
const OptimizationOptionsSchema = /* @__PURE__ */ strictObject({
|
|
1639
1601
|
inlineConst: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
|
|
1640
1602
|
mode: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("all"), /* @__PURE__ */ literal("smart")])),
|
|
@@ -1642,24 +1604,19 @@ const OptimizationOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
1642
1604
|
})])), /* @__PURE__ */ description("Enable crossmodule constant inlining")),
|
|
1643
1605
|
pifeForModuleWrappers: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Use PIFE pattern for module wrappers"))
|
|
1644
1606
|
});
|
|
1645
|
-
isTypeTrue();
|
|
1646
1607
|
const LogOrStringHandlerSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([LogLevelWithErrorSchema, RollupLogWithStringSchema])));
|
|
1647
|
-
isTypeTrue();
|
|
1648
1608
|
const OnLogSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([
|
|
1649
1609
|
LogLevelSchema,
|
|
1650
1610
|
RollupLogSchema,
|
|
1651
1611
|
LogOrStringHandlerSchema
|
|
1652
1612
|
])));
|
|
1653
|
-
isTypeTrue();
|
|
1654
1613
|
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
1614
|
const DevModeSchema = /* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
|
|
1657
1615
|
port: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
1658
1616
|
host: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
1659
1617
|
implement: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
1660
1618
|
lazy: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1661
1619
|
})]);
|
|
1662
|
-
isTypeTrue();
|
|
1663
1620
|
const InputOptionsSchema = /* @__PURE__ */ strictObject({
|
|
1664
1621
|
input: /* @__PURE__ */ optional(InputOptionSchema),
|
|
1665
1622
|
plugins: /* @__PURE__ */ optional(/* @__PURE__ */ custom(() => true)),
|
|
@@ -1712,7 +1669,6 @@ const InputOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
1712
1669
|
context: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("The value of `this` at the top level of each module.")),
|
|
1713
1670
|
tsconfig: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ string()])), /* @__PURE__ */ description("Path to the tsconfig.json file."))
|
|
1714
1671
|
});
|
|
1715
|
-
isTypeTrue();
|
|
1716
1672
|
const InputCliOverrideSchema = /* @__PURE__ */ strictObject({
|
|
1717
1673
|
input: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())), /* @__PURE__ */ description("Entry file")),
|
|
1718
1674
|
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 +1697,22 @@ const ModuleFormatSchema = /* @__PURE__ */ union([
|
|
|
1741
1697
|
/* @__PURE__ */ literal("iife"),
|
|
1742
1698
|
/* @__PURE__ */ literal("umd")
|
|
1743
1699
|
]);
|
|
1744
|
-
isTypeTrue();
|
|
1745
1700
|
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
1701
|
const ChunkFileNamesFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ custom(() => true)])), /* @__PURE__ */ returns(/* @__PURE__ */ string()));
|
|
1748
|
-
isTypeTrue();
|
|
1749
1702
|
const ChunkFileNamesSchema = /* @__PURE__ */ union([/* @__PURE__ */ string(), ChunkFileNamesFunctionSchema]);
|
|
1750
1703
|
const AssetFileNamesFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ custom(() => true)])), /* @__PURE__ */ returns(/* @__PURE__ */ string()));
|
|
1751
|
-
isTypeTrue();
|
|
1752
1704
|
const AssetFileNamesSchema = /* @__PURE__ */ union([/* @__PURE__ */ string(), AssetFileNamesFunctionSchema]);
|
|
1753
1705
|
const SanitizeFileNameFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string()])), /* @__PURE__ */ returns(/* @__PURE__ */ string()));
|
|
1754
|
-
isTypeTrue();
|
|
1755
1706
|
const SanitizeFileNameSchema = /* @__PURE__ */ union([/* @__PURE__ */ boolean(), SanitizeFileNameFunctionSchema]);
|
|
1756
1707
|
const GlobalsFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string()])), /* @__PURE__ */ returns(/* @__PURE__ */ string()));
|
|
1757
|
-
isTypeTrue();
|
|
1758
1708
|
const PathsFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string()])), /* @__PURE__ */ returns(/* @__PURE__ */ string()));
|
|
1759
|
-
isTypeTrue();
|
|
1760
1709
|
const ManualChunksFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string(), /* @__PURE__ */ object({})])), /* @__PURE__ */ returns(/* @__PURE__ */ nullish(/* @__PURE__ */ string())));
|
|
1761
|
-
isTypeTrue();
|
|
1762
1710
|
const AdvancedChunksNameFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string(), /* @__PURE__ */ object({})])), /* @__PURE__ */ returns(/* @__PURE__ */ nullish(/* @__PURE__ */ string())));
|
|
1763
|
-
isTypeTrue();
|
|
1764
1711
|
const AdvancedChunksTestFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string()])), /* @__PURE__ */ returns(/* @__PURE__ */ union([
|
|
1765
1712
|
/* @__PURE__ */ boolean(),
|
|
1766
1713
|
/* @__PURE__ */ void_(),
|
|
1767
1714
|
/* @__PURE__ */ undefined_()
|
|
1768
1715
|
])));
|
|
1769
|
-
isTypeTrue();
|
|
1770
1716
|
const AdvancedChunksSchema = /* @__PURE__ */ strictObject({
|
|
1771
1717
|
includeDependenciesRecursively: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1772
1718
|
minSize: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
@@ -1784,18 +1730,15 @@ const AdvancedChunksSchema = /* @__PURE__ */ strictObject({
|
|
|
1784
1730
|
minModuleSize: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
1785
1731
|
maxModuleSize: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
1786
1732
|
entriesAware: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1787
|
-
entriesAwareMergeThreshold: /* @__PURE__ */ optional(/* @__PURE__ */ number())
|
|
1733
|
+
entriesAwareMergeThreshold: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
1734
|
+
tags: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string()))
|
|
1788
1735
|
})))
|
|
1789
1736
|
});
|
|
1790
|
-
isTypeTrue();
|
|
1791
|
-
const GeneratedCodePresetSchema = /* @__PURE__ */ union([/* @__PURE__ */ literal("es5"), /* @__PURE__ */ literal("es2015")]);
|
|
1792
|
-
isTypeTrue();
|
|
1793
1737
|
const GeneratedCodeOptionsSchema = /* @__PURE__ */ strictObject({
|
|
1794
1738
|
symbols: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to use Symbol.toStringTag for namespace objects")),
|
|
1795
|
-
preset: /* @__PURE__ */ optional(
|
|
1739
|
+
preset: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("es5"), /* @__PURE__ */ literal("es2015")])),
|
|
1796
1740
|
profilerNames: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to add readable names to internal variables for profiling purposes"))
|
|
1797
1741
|
});
|
|
1798
|
-
isTypeTrue();
|
|
1799
1742
|
const OutputOptionsSchema = /* @__PURE__ */ strictObject({
|
|
1800
1743
|
dir: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Output directory, defaults to `dist` if `file` is not set")),
|
|
1801
1744
|
file: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Single output file")),
|
|
@@ -1818,6 +1761,7 @@ const OutputOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
1818
1761
|
])), /* @__PURE__ */ description(`Generate sourcemap (\`-s inline\` for inline, or \`-s\` for \`.map\` file)`)),
|
|
1819
1762
|
sourcemapBaseUrl: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Base URL used to prefix sourcemap paths")),
|
|
1820
1763
|
sourcemapDebugIds: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Inject sourcemap debug IDs")),
|
|
1764
|
+
sourcemapExcludeSources: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Exclude source content from sourcemaps")),
|
|
1821
1765
|
sourcemapIgnoreList: /* @__PURE__ */ optional(/* @__PURE__ */ union([
|
|
1822
1766
|
/* @__PURE__ */ boolean(),
|
|
1823
1767
|
/* @__PURE__ */ custom(() => true),
|
|
@@ -1870,7 +1814,6 @@ const OutputOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
1870
1814
|
strictExecutionOrder: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Lets modules be executed in the order they are declared.")),
|
|
1871
1815
|
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
1816
|
});
|
|
1873
|
-
isTypeTrue();
|
|
1874
1817
|
const getAddonDescription = (placement, wrapper) => {
|
|
1875
1818
|
return `Code to insert the ${styleText$1("bold", placement)} of the bundled file (${styleText$1("bold", wrapper)} the wrapper function)`;
|
|
1876
1819
|
};
|
|
@@ -1961,6 +1904,7 @@ function getCliSchemaInfo() {
|
|
|
1961
1904
|
//#endregion
|
|
1962
1905
|
//#region src/types/rolldown-output-impl.ts
|
|
1963
1906
|
var RolldownOutputImpl = class extends PlainObjectLike {
|
|
1907
|
+
bindingOutputs;
|
|
1964
1908
|
constructor(bindingOutputs) {
|
|
1965
1909
|
super();
|
|
1966
1910
|
this.bindingOutputs = bindingOutputs;
|
|
@@ -1984,6 +1928,7 @@ __decorate([lazyProp], RolldownOutputImpl.prototype, "output", null);
|
|
|
1984
1928
|
//#endregion
|
|
1985
1929
|
//#region src/types/chunking-context.ts
|
|
1986
1930
|
var ChunkingContextImpl = class {
|
|
1931
|
+
context;
|
|
1987
1932
|
constructor(context) {
|
|
1988
1933
|
this.context = context;
|
|
1989
1934
|
}
|
|
@@ -2763,7 +2708,7 @@ function n(e) {
|
|
|
2763
2708
|
return e ? e !== "false" : false;
|
|
2764
2709
|
}
|
|
2765
2710
|
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
|
-
|
|
2711
|
+
o.MINIMAL;
|
|
2767
2712
|
const A = /^win/i.test(I);
|
|
2768
2713
|
!n(o.NO_COLOR) && (n(o.FORCE_COLOR) || (a || A) && o.TERM);
|
|
2769
2714
|
const C = (globalThis.process?.versions?.node || "").replace(/^v/, "") || null;
|
|
@@ -2932,7 +2877,7 @@ function createConsola(options = {}) {
|
|
|
2932
2877
|
defaults: { level },
|
|
2933
2878
|
stdout: process.stdout,
|
|
2934
2879
|
stderr: process.stderr,
|
|
2935
|
-
prompt: (...args) => import("./prompt-
|
|
2880
|
+
prompt: (...args) => import("./prompt-U5ajztzG.mjs").then((m) => m.prompt(...args)),
|
|
2936
2881
|
reporters: options.reporters || [options.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()],
|
|
2937
2882
|
...options
|
|
2938
2883
|
});
|
|
@@ -2973,7 +2918,7 @@ function createTestingLogger() {
|
|
|
2973
2918
|
//#endregion
|
|
2974
2919
|
//#region src/utils/bindingify-output-options.ts
|
|
2975
2920
|
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;
|
|
2921
|
+
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
2922
|
if (legalComments != null) logger.warn("`legalComments` option is deprecated, please use `comments.legal` instead.");
|
|
2978
2923
|
const { inlineDynamicImports, advancedChunks } = bindingifyCodeSplitting(outputOptions.codeSplitting, outputOptions.inlineDynamicImports, outputOptions.advancedChunks, manualChunks);
|
|
2979
2924
|
return {
|
|
@@ -2985,6 +2930,7 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
2985
2930
|
sourcemap: bindingifySourcemap(sourcemap),
|
|
2986
2931
|
sourcemapBaseUrl,
|
|
2987
2932
|
sourcemapDebugIds,
|
|
2933
|
+
sourcemapExcludeSources,
|
|
2988
2934
|
sourcemapIgnoreList: sourcemapIgnoreList ?? /node_modules/,
|
|
2989
2935
|
sourcemapPathTransform,
|
|
2990
2936
|
banner: bindingifyAddon(banner),
|
|
@@ -1,19 +1,36 @@
|
|
|
1
|
+
import { F as MinifyResult$1, H as SourceMap, L as ParseResult$1, P as MinifyOptions$1, R as ParserOptions$1, W as TsconfigCache$1, a as BindingEnhancedTransformOptions, o as BindingEnhancedTransformResult, v as BindingTsconfigResult } from "./binding-CaVxb0SV.mjs";
|
|
1
2
|
import { a as RolldownLog } from "./logging-C6h4g8dA.mjs";
|
|
2
|
-
import { BindingEnhancedTransformOptions, BindingEnhancedTransformResult, BindingTsconfigCompilerOptions as TsconfigCompilerOptions, BindingTsconfigRawOptions as TsconfigRawOptions, MinifyOptions, MinifyResult, ParseResult, ParserOptions, SourceMap, TsconfigCache } from "../binding.cjs";
|
|
3
3
|
|
|
4
|
+
//#region src/utils/resolve-tsconfig.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Cache for tsconfig resolution to avoid redundant file system operations.
|
|
7
|
+
*
|
|
8
|
+
* The cache stores resolved tsconfig configurations keyed by their file paths.
|
|
9
|
+
* When transforming multiple files in the same project, tsconfig lookups are
|
|
10
|
+
* deduplicated, improving performance.
|
|
11
|
+
*
|
|
12
|
+
* @category Utilities
|
|
13
|
+
* @experimental
|
|
14
|
+
*/
|
|
15
|
+
declare class TsconfigCache extends TsconfigCache$1 {
|
|
16
|
+
constructor();
|
|
17
|
+
}
|
|
18
|
+
/** @hidden This is only expected to be used by Vite */
|
|
19
|
+
declare function resolveTsconfig(filename: string, cache?: TsconfigCache | null): BindingTsconfigResult | null;
|
|
20
|
+
//#endregion
|
|
4
21
|
//#region src/utils/parse.d.ts
|
|
5
22
|
/**
|
|
6
23
|
* Result of parsing a code
|
|
7
24
|
*
|
|
8
25
|
* @category Utilities
|
|
9
26
|
*/
|
|
10
|
-
interface ParseResult
|
|
27
|
+
interface ParseResult extends ParseResult$1 {}
|
|
11
28
|
/**
|
|
12
29
|
* Options for parsing a code
|
|
13
30
|
*
|
|
14
31
|
* @category Utilities
|
|
15
32
|
*/
|
|
16
|
-
interface ParserOptions
|
|
33
|
+
interface ParserOptions extends ParserOptions$1 {}
|
|
17
34
|
/**
|
|
18
35
|
* Parse JS/TS source asynchronously on a separate thread.
|
|
19
36
|
*
|
|
@@ -29,7 +46,7 @@ interface ParserOptions$1 extends ParserOptions {}
|
|
|
29
46
|
*
|
|
30
47
|
* @category Utilities
|
|
31
48
|
*/
|
|
32
|
-
declare function parse(filename: string, sourceText: string, options?: ParserOptions
|
|
49
|
+
declare function parse(filename: string, sourceText: string, options?: ParserOptions | null): Promise<ParseResult>;
|
|
33
50
|
/**
|
|
34
51
|
* Parse JS/TS source synchronously on current thread.
|
|
35
52
|
*
|
|
@@ -42,7 +59,7 @@ declare function parse(filename: string, sourceText: string, options?: ParserOpt
|
|
|
42
59
|
*
|
|
43
60
|
* @category Utilities
|
|
44
61
|
*/
|
|
45
|
-
declare function parseSync(filename: string, sourceText: string, options?: ParserOptions
|
|
62
|
+
declare function parseSync(filename: string, sourceText: string, options?: ParserOptions | null): ParseResult;
|
|
46
63
|
//#endregion
|
|
47
64
|
//#region src/utils/minify.d.ts
|
|
48
65
|
/**
|
|
@@ -50,7 +67,7 @@ declare function parseSync(filename: string, sourceText: string, options?: Parse
|
|
|
50
67
|
*
|
|
51
68
|
* @category Utilities
|
|
52
69
|
*/
|
|
53
|
-
interface MinifyOptions
|
|
70
|
+
interface MinifyOptions extends MinifyOptions$1 {
|
|
54
71
|
inputMap?: SourceMap;
|
|
55
72
|
}
|
|
56
73
|
/**
|
|
@@ -58,7 +75,7 @@ interface MinifyOptions$1 extends MinifyOptions {
|
|
|
58
75
|
*
|
|
59
76
|
* @category Utilities
|
|
60
77
|
*/
|
|
61
|
-
interface MinifyResult
|
|
78
|
+
interface MinifyResult extends MinifyResult$1 {}
|
|
62
79
|
/**
|
|
63
80
|
* Minify asynchronously.
|
|
64
81
|
*
|
|
@@ -67,14 +84,14 @@ interface MinifyResult$1 extends MinifyResult {}
|
|
|
67
84
|
* @category Utilities
|
|
68
85
|
* @experimental
|
|
69
86
|
*/
|
|
70
|
-
declare function minify(filename: string, sourceText: string, options?: MinifyOptions
|
|
87
|
+
declare function minify(filename: string, sourceText: string, options?: MinifyOptions | null): Promise<MinifyResult>;
|
|
71
88
|
/**
|
|
72
89
|
* Minify synchronously.
|
|
73
90
|
*
|
|
74
91
|
* @category Utilities
|
|
75
92
|
* @experimental
|
|
76
93
|
*/
|
|
77
|
-
declare function minifySync(filename: string, sourceText: string, options?: MinifyOptions
|
|
94
|
+
declare function minifySync(filename: string, sourceText: string, options?: MinifyOptions | null): MinifyResult;
|
|
78
95
|
//#endregion
|
|
79
96
|
//#region src/utils/transform.d.ts
|
|
80
97
|
/**
|
|
@@ -82,7 +99,7 @@ declare function minifySync(filename: string, sourceText: string, options?: Mini
|
|
|
82
99
|
*
|
|
83
100
|
* @category Utilities
|
|
84
101
|
*/
|
|
85
|
-
interface TransformOptions
|
|
102
|
+
interface TransformOptions extends BindingEnhancedTransformOptions {}
|
|
86
103
|
/**
|
|
87
104
|
* Result of transforming a code.
|
|
88
105
|
*
|
|
@@ -110,7 +127,7 @@ type TransformResult = Omit<BindingEnhancedTransformResult, "errors" | "warnings
|
|
|
110
127
|
* @category Utilities
|
|
111
128
|
* @experimental
|
|
112
129
|
*/
|
|
113
|
-
declare function transform(filename: string, sourceText: string, options?: TransformOptions
|
|
130
|
+
declare function transform(filename: string, sourceText: string, options?: TransformOptions | null, cache?: TsconfigCache | null): Promise<TransformResult>;
|
|
114
131
|
/**
|
|
115
132
|
* Transpile a JavaScript or TypeScript into a target ECMAScript version.
|
|
116
133
|
*
|
|
@@ -127,6 +144,6 @@ declare function transform(filename: string, sourceText: string, options?: Trans
|
|
|
127
144
|
* @category Utilities
|
|
128
145
|
* @experimental
|
|
129
146
|
*/
|
|
130
|
-
declare function transformSync(filename: string, sourceText: string, options?: TransformOptions
|
|
147
|
+
declare function transformSync(filename: string, sourceText: string, options?: TransformOptions | null, cache?: TsconfigCache | null): TransformResult;
|
|
131
148
|
//#endregion
|
|
132
|
-
export {
|
|
149
|
+
export { MinifyOptions as a, minifySync as c, parse as d, parseSync as f, transformSync as i, ParseResult as l, resolveTsconfig as m, TransformResult as n, MinifyResult as o, TsconfigCache as p, transform as r, minify as s, TransformOptions as t, ParserOptions as u };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { o as logMultipleWatcherOption } from "./logs-D80CXhvg.mjs";
|
|
2
|
-
import { v as LOG_LEVEL_WARN } from "./bindingify-input-options-
|
|
2
|
+
import { v as LOG_LEVEL_WARN } from "./bindingify-input-options-CboGFdC4.mjs";
|
|
3
3
|
import { h as arraify } from "./composable-filters-B2ByPP8y.mjs";
|
|
4
|
-
import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-
|
|
4
|
+
import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-DIb-iqkO.mjs";
|
|
5
5
|
import { t as aggregateBindingErrorsIntoJsError } from "./error-CQ6njWsV.mjs";
|
|
6
6
|
import { BindingWatcher, shutdownAsyncRuntime } from "../rolldown-binding.wasi.cjs";
|
|
7
7
|
//#region ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as parse, o as parseSync } from "./error-
|
|
2
|
-
import { a as
|
|
3
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
1
|
+
import { a as parse, o as parseSync } from "./error-DMfKBGWU.js";
|
|
2
|
+
import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./resolve-tsconfig-eqfrsvjc.js";
|
|
3
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.129.0/node_modules/oxc-parser/src-js/generated/visit/walk.js
|
|
4
4
|
function walkNode(node, visitors) {
|
|
5
5
|
if (node == null) return;
|
|
6
6
|
if (Array.isArray(node)) {
|
|
@@ -2010,7 +2010,7 @@ function walkTSUnionType(node, visitors) {
|
|
|
2010
2010
|
exit !== null && exit(node);
|
|
2011
2011
|
}
|
|
2012
2012
|
//#endregion
|
|
2013
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
2013
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.129.0/node_modules/oxc-parser/src-js/generated/visit/type_ids.js
|
|
2014
2014
|
/** Mapping from node type name to node type ID */
|
|
2015
2015
|
const NODE_TYPE_IDS_MAP = new Map([
|
|
2016
2016
|
["DebuggerStatement", 0],
|
|
@@ -2180,7 +2180,7 @@ const NODE_TYPE_IDS_MAP = new Map([
|
|
|
2180
2180
|
["TSUnionType", 164]
|
|
2181
2181
|
]);
|
|
2182
2182
|
//#endregion
|
|
2183
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
2183
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.129.0/node_modules/oxc-parser/src-js/visit/visitor.js
|
|
2184
2184
|
let compiledVisitor;
|
|
2185
2185
|
function createCompiledVisitor() {
|
|
2186
2186
|
compiledVisitor = [];
|