@rolldown/browser 1.0.0-rc.8 → 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.
Files changed (46) hide show
  1. package/dist/cli.mjs +225 -74
  2. package/dist/config.d.mts +1 -1
  3. package/dist/config.mjs +2 -7
  4. package/dist/{constructors-BgL_dmUe.js → constructors-BXVEHwHm.js} +8 -2
  5. package/dist/{error-DkAP_6fk.js → error-DMfKBGWU.js} +1 -1
  6. package/dist/experimental-index.browser.mjs +10 -10
  7. package/dist/experimental-index.d.mts +17 -19
  8. package/dist/experimental-index.mjs +11 -11
  9. package/dist/experimental-runtime-types.d.ts +14 -5
  10. package/dist/filter-index.d.mts +1 -1
  11. package/dist/index.browser.mjs +5 -5
  12. package/dist/index.d.mts +4 -3
  13. package/dist/index.mjs +5 -9
  14. package/dist/{normalize-string-or-regex-TtAGUp42.js → normalize-string-or-regex-CBPw_c5O.js} +21 -11
  15. package/dist/parallel-plugin-worker.mjs +1 -4
  16. package/dist/parallel-plugin.d.mts +2 -2
  17. package/dist/parse-ast-index.d.mts +1 -2
  18. package/dist/parse-ast-index.mjs +1 -1
  19. package/dist/plugins-index.browser.mjs +2 -2
  20. package/dist/plugins-index.d.mts +3 -3
  21. package/dist/plugins-index.mjs +2 -2
  22. package/dist/{transform-UkHb5h4g.js → resolve-tsconfig-eqfrsvjc.js} +28 -5
  23. package/dist/rolldown-binding.wasi-browser.js +6 -0
  24. package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
  25. package/dist/{rolldown-build-Clh1p2eh.js → rolldown-build-CKS7EawU.js} +221 -199
  26. package/dist/shared/binding-CaVxb0SV.d.mts +3198 -0
  27. package/dist/shared/{bindingify-input-options-CxjTlvCV.mjs → bindingify-input-options-CboGFdC4.mjs} +132 -56
  28. package/dist/shared/{constructors-C1tQjDsj.d.mts → constructors-B1JYJxhf.d.mts} +7 -3
  29. package/dist/shared/{constructors-C7Kkidxk.mjs → constructors-DO36gIcC.mjs} +8 -2
  30. package/dist/shared/{define-config-TEoV5q6D.d.mts → define-config-Bah0mfyR.d.mts} +88 -26
  31. package/dist/shared/{load-config-Cs9h9aXF.mjs → load-config-BwBgui4p.mjs} +1 -1
  32. package/dist/shared/{normalize-string-or-regex-CF3Uz6aU.mjs → normalize-string-or-regex-Dq6w-2tU.mjs} +21 -11
  33. package/dist/shared/{parse-DDUnGYGU.mjs → parse-Lc1YQk0q.mjs} +1 -1
  34. package/dist/shared/{prompt-BYQIwEjg.mjs → prompt-U5ajztzG.mjs} +4 -2
  35. package/dist/shared/{transform-B_n5An0U.mjs → resolve-tsconfig-Cwoo4h_o.mjs} +27 -4
  36. package/dist/shared/{rolldown-D2p2QuF1.mjs → rolldown-WowDTCZP.mjs} +1 -1
  37. package/dist/shared/{rolldown-build-D_FXM8pA.mjs → rolldown-build-DIb-iqkO.mjs} +92 -146
  38. package/dist/shared/{transform-BSAGL1b_.d.mts → transform-kP3ISMFT.d.mts} +30 -13
  39. package/dist/shared/{utils-6wxe_LMG.d.mts → utils-KRVeJqya.d.mts} +1 -1
  40. package/dist/shared/{watch-BMFUc4Au.mjs → watch-B81_EvN-.mjs} +2 -2
  41. package/dist/utils-index.browser.mjs +5 -5
  42. package/dist/utils-index.d.mts +4 -4
  43. package/dist/utils-index.mjs +5 -6
  44. package/dist/wasi-worker-browser.mjs +8 -0
  45. package/package.json +4 -2
  46. 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-CF3Uz6aU.mjs";
3
- import { _ as LOG_LEVEL_WARN, a as transformToRollupOutput, b as VERSION, c as transformAssetSource, d as MinimalPluginContextImpl, f as normalizeHook, i as transformModuleInfo, l as lazyProp, m as LOG_LEVEL_DEBUG, o as transformRenderedChunk, p as normalizeLog, s as __decorate, t as bindingifyInputOptions, u as PlainObjectLike, v as logLevelPriority } from "./bindingify-input-options-CxjTlvCV.mjs";
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.2.0_typescript@5.9.3/node_modules/valibot/dist/index.mjs
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(AssumptionsSchema),
1504
- typescript: /* @__PURE__ */ optional(TypescriptSchema),
1505
- helpers: /* @__PURE__ */ optional(HelpersSchema),
1506
- decorator: /* @__PURE__ */ optional(DecoratorOptionSchema),
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
- JsxOptionsSchema
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
- define: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string())), /* @__PURE__ */ description("Define global variables (syntax: key=value,key2=value2)")),
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(TransformPluginsSchema), /* @__PURE__ */ description("Third-party plugins to use"))
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(), CompressOptionsSchema])),
1605
- mangle: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), MangleOptionsSchema])),
1606
- codegen: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), CodegenOptionsSchema]))
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(GeneratedCodePresetSchema),
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),
@@ -1842,7 +1786,7 @@ const OutputOptionsSchema = /* @__PURE__ */ strictObject({
1842
1786
  MinifyOptionsSchema
1843
1787
  ])), /* @__PURE__ */ description("Minify the bundled file")),
1844
1788
  name: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Name for UMD / IIFE format outputs")),
1845
- globals: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string()), GlobalsFunctionSchema])), /* @__PURE__ */ description("Global variable of UMD / IIFE dependencies (syntax: `key=value`)")),
1789
+ globals: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string()), GlobalsFunctionSchema])), /* @__PURE__ */ description("Global variable of UMD / IIFE dependencies (syntax: `key:value`)")),
1846
1790
  paths: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string()), PathsFunctionSchema])), /* @__PURE__ */ description("Maps external module IDs to paths")),
1847
1791
  generatedCode: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ partial(GeneratedCodeOptionsSchema)), /* @__PURE__ */ description("Generated code options")),
1848
1792
  externalLiveBindings: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("external live bindings")),
@@ -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
  };
@@ -1886,7 +1829,7 @@ const OutputCliOverrideSchema = /* @__PURE__ */ strictObject({
1886
1829
  intro: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description(getAddonDescription("top", "inside"))),
1887
1830
  outro: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description(getAddonDescription("bottom", "inside"))),
1888
1831
  esModule: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Always generate `__esModule` marks in non-ESM formats, defaults to `if-default-prop` (use `--no-esModule` to always disable)")),
1889
- globals: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string())), /* @__PURE__ */ description("Global variable of UMD / IIFE dependencies (syntax: `key=value`)")),
1832
+ globals: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string())), /* @__PURE__ */ description("Global variable of UMD / IIFE dependencies (syntax: `key:value`)")),
1890
1833
  codeSplitting: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
1891
1834
  minSize: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ number()), /* @__PURE__ */ description("Minimum size of the chunk")),
1892
1835
  minShareCount: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ number()), /* @__PURE__ */ description("Minimum share count of the chunk"))
@@ -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
- n(o.MINIMAL);
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-BYQIwEjg.mjs").then((m) => m.prompt(...args)),
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$1 extends 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$1 extends 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$1 | null): Promise<ParseResult$1>;
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$1 | null): ParseResult$1;
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$1 extends 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$1 extends 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$1 | null): Promise<MinifyResult$1>;
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$1 | null): MinifyResult$1;
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$1 extends BindingEnhancedTransformOptions {}
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$1 | null, cache?: TsconfigCache | null): Promise<TransformResult>;
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$1 | null, cache?: TsconfigCache | null): TransformResult;
147
+ declare function transformSync(filename: string, sourceText: string, options?: TransformOptions | null, cache?: TsconfigCache | null): TransformResult;
131
148
  //#endregion
132
- export { TsconfigRawOptions as a, MinifyOptions$1 as c, minifySync as d, ParseResult$1 as f, parseSync as h, TsconfigCompilerOptions as i, MinifyResult$1 as l, parse as m, TransformResult as n, transform as o, ParserOptions$1 as p, TsconfigCache as r, transformSync as s, TransformOptions$1 as t, minify as u };
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,4 +1,4 @@
1
- import { BindingBuiltinPluginName } from "../binding.cjs";
1
+ import { t as BindingBuiltinPluginName } from "./binding-CaVxb0SV.mjs";
2
2
 
3
3
  //#region src/types/utils.d.ts
4
4
  type MaybePromise<T> = T | Promise<T>;
@@ -1,7 +1,7 @@
1
1
  import { o as logMultipleWatcherOption } from "./logs-D80CXhvg.mjs";
2
- import { _ as LOG_LEVEL_WARN } from "./bindingify-input-options-CxjTlvCV.mjs";
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-D_FXM8pA.mjs";
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