rolldown 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.
Files changed (34) hide show
  1. package/dist/cli.mjs +207 -73
  2. package/dist/config.d.mts +1 -2
  3. package/dist/config.mjs +2 -8
  4. package/dist/experimental-index.d.mts +7 -7
  5. package/dist/experimental-index.mjs +12 -13
  6. package/dist/experimental-runtime-types.d.ts +14 -5
  7. package/dist/filter-index.d.mts +1 -2
  8. package/dist/index.d.mts +3 -3
  9. package/dist/index.mjs +5 -9
  10. package/dist/parallel-plugin-worker.mjs +2 -5
  11. package/dist/parallel-plugin.d.mts +1 -2
  12. package/dist/parse-ast-index.d.mts +1 -1
  13. package/dist/parse-ast-index.mjs +1 -2
  14. package/dist/plugins-index.d.mts +3 -3
  15. package/dist/plugins-index.mjs +2 -3
  16. package/dist/shared/{binding-C5G6_6ql.mjs → binding-ESkOU1xr.mjs} +27 -27
  17. package/dist/shared/{binding-BohGL_65.d.mts → binding-zH1vcmbM.d.mts} +66 -21
  18. package/dist/shared/{bindingify-input-options-Cu7pt6SZ.mjs → bindingify-input-options-zrVFGksD.mjs} +127 -59
  19. package/dist/shared/{constructors-DNuo4d0H.d.mts → constructors-D0W3rNfA.d.mts} +7 -3
  20. package/dist/shared/{constructors-Ctal_Rbv.mjs → constructors-D6i2Tbyl.mjs} +8 -2
  21. package/dist/shared/{define-config-cG45vHwf.d.mts → define-config-5HJ1b9vG.d.mts} +70 -15
  22. package/dist/shared/{error-CP8smW_P.mjs → error-BrnLyQ-g.mjs} +1 -1
  23. package/dist/shared/{load-config-B3CpyLPv.mjs → load-config-xUNmcCRn.mjs} +1 -1
  24. package/dist/shared/{normalize-string-or-regex-C5RWbu3O.mjs → normalize-string-or-regex-dAjLOSbp.mjs} +22 -12
  25. package/dist/shared/{parse-B3SIKejW.mjs → parse-_9Vwp6y3.mjs} +3 -3
  26. package/dist/shared/{prompt-BYQIwEjg.mjs → prompt-U5ajztzG.mjs} +4 -2
  27. package/dist/shared/{transform-BfdLLNnY.mjs → resolve-tsconfig-DCdBlPeK.mjs} +28 -5
  28. package/dist/shared/{rolldown-build-4YnQkA76.mjs → rolldown-build-D_ShytiL.mjs} +92 -146
  29. package/dist/shared/{rolldown-Lc4TvZmS.mjs → rolldown-hwU2j9UL.mjs} +1 -1
  30. package/dist/shared/{transform-BoJxrM-e.d.mts → transform-DgZ3paSD.d.mts} +19 -2
  31. package/dist/shared/{watch-B91pWiEX.mjs → watch-Bak_bDNe.mjs} +4 -4
  32. package/dist/utils-index.d.mts +3 -3
  33. package/dist/utils-index.mjs +5 -8
  34. package/package.json +29 -28
@@ -1,9 +1,9 @@
1
- import { n as __toESM, t as require_binding } from "./binding-C5G6_6ql.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-ESkOU1xr.mjs";
2
2
  import { i as logInputHookInOutputPlugin, n as error } from "./logs-D80CXhvg.mjs";
3
- import { n as BuiltinPlugin } from "./normalize-string-or-regex-C5RWbu3O.mjs";
4
- 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-Cu7pt6SZ.mjs";
3
+ import { n as BuiltinPlugin } from "./normalize-string-or-regex-dAjLOSbp.mjs";
4
+ 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-zrVFGksD.mjs";
5
5
  import { i as unimplemented } from "./misc-DJYbNKZX.mjs";
6
- import { i as unwrapBindingResult } from "./error-CP8smW_P.mjs";
6
+ import { i as unwrapBindingResult } from "./error-BrnLyQ-g.mjs";
7
7
  import { Worker } from "node:worker_threads";
8
8
  import path, { sep } from "node:path";
9
9
  import { formatWithOptions, styleText } from "node:util";
@@ -11,6 +11,7 @@ import process$1 from "node:process";
11
11
  import * as tty from "node:tty";
12
12
  import os from "node:os";
13
13
  //#region src/log/logger.ts
14
+ var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
14
15
  function getLogger(plugins, onLog, logLevel, watchMode) {
15
16
  const minimalPriority = logLevelPriority[logLevel];
16
17
  const logger = (level, log, skipped = /* @__PURE__ */ new Set()) => {
@@ -211,7 +212,7 @@ function getSortedPlugins(hookName, plugins) {
211
212
  ];
212
213
  }
213
214
  //#endregion
214
- //#region ../../node_modules/.pnpm/valibot@1.2.0_typescript@5.9.3/node_modules/valibot/dist/index.mjs
215
+ //#region ../../node_modules/.pnpm/valibot@1.3.1_typescript@6.0.3/node_modules/valibot/dist/index.mjs
215
216
  let store$4;
216
217
  /**
217
218
  * Returns the global configuration.
@@ -1396,9 +1397,7 @@ function styleText$1(...args) {
1396
1397
  }
1397
1398
  //#endregion
1398
1399
  //#region src/utils/validator.ts
1399
- function isTypeTrue() {}
1400
1400
  const StringOrRegExpSchema = /* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ instance(RegExp)]);
1401
- isTypeTrue();
1402
1401
  function vFunction() {
1403
1402
  return /* @__PURE__ */ function_();
1404
1403
  }
@@ -1407,32 +1406,25 @@ const LogLevelSchema = /* @__PURE__ */ union([
1407
1406
  /* @__PURE__ */ literal("info"),
1408
1407
  /* @__PURE__ */ literal("warn")
1409
1408
  ]);
1410
- isTypeTrue();
1411
1409
  const LogLevelOptionSchema = /* @__PURE__ */ union([LogLevelSchema, /* @__PURE__ */ literal("silent")]);
1412
- isTypeTrue();
1413
1410
  const LogLevelWithErrorSchema = /* @__PURE__ */ union([LogLevelSchema, /* @__PURE__ */ literal("error")]);
1414
- isTypeTrue();
1415
1411
  const RollupLogSchema = /* @__PURE__ */ any();
1416
1412
  const RollupLogWithStringSchema = /* @__PURE__ */ union([RollupLogSchema, /* @__PURE__ */ string()]);
1417
- isTypeTrue();
1418
1413
  const InputOptionSchema = /* @__PURE__ */ union([
1419
1414
  /* @__PURE__ */ string(),
1420
1415
  /* @__PURE__ */ array(/* @__PURE__ */ string()),
1421
1416
  /* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string())
1422
1417
  ]);
1423
- isTypeTrue();
1424
1418
  const ExternalOptionFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([
1425
1419
  /* @__PURE__ */ string(),
1426
1420
  /* @__PURE__ */ optional(/* @__PURE__ */ string()),
1427
1421
  /* @__PURE__ */ boolean()
1428
1422
  ])), /* @__PURE__ */ returns(/* @__PURE__ */ nullish(/* @__PURE__ */ boolean())));
1429
- isTypeTrue();
1430
1423
  const ExternalOptionSchema = /* @__PURE__ */ union([
1431
1424
  StringOrRegExpSchema,
1432
1425
  /* @__PURE__ */ array(StringOrRegExpSchema),
1433
1426
  ExternalOptionFunctionSchema
1434
1427
  ]);
1435
- isTypeTrue();
1436
1428
  const ModuleTypesSchema = /* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ union([
1437
1429
  /* @__PURE__ */ literal("asset"),
1438
1430
  /* @__PURE__ */ literal("base64"),
@@ -1448,76 +1440,63 @@ const ModuleTypesSchema = /* @__PURE__ */ record(/* @__PURE__ */ string(), /* @_
1448
1440
  /* @__PURE__ */ literal("ts"),
1449
1441
  /* @__PURE__ */ literal("tsx")
1450
1442
  ]));
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
1443
  const TransformOptionsSchema = /* @__PURE__ */ object({
1503
- assumptions: /* @__PURE__ */ optional(AssumptionsSchema),
1504
- typescript: /* @__PURE__ */ optional(TypescriptSchema),
1505
- helpers: /* @__PURE__ */ optional(HelpersSchema),
1506
- decorator: /* @__PURE__ */ optional(DecoratorOptionSchema),
1444
+ assumptions: /* @__PURE__ */ optional(/* @__PURE__ */ object({
1445
+ ignoreFunctionLength: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1446
+ noDocumentAll: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1447
+ objectRestNoSymbols: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1448
+ pureGetters: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1449
+ setPublicClassFields: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1450
+ })),
1451
+ typescript: /* @__PURE__ */ optional(/* @__PURE__ */ object({
1452
+ jsxPragma: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
1453
+ jsxPragmaFrag: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
1454
+ onlyRemoveTypeImports: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1455
+ allowNamespaces: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1456
+ allowDeclareFields: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1457
+ removeClassFieldsWithoutInitializer: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1458
+ optimizeConstEnums: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1459
+ optimizeEnums: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1460
+ declaration: /* @__PURE__ */ optional(/* @__PURE__ */ object({
1461
+ stripInternal: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1462
+ sourcemap: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1463
+ })),
1464
+ rewriteImportExtensions: /* @__PURE__ */ optional(/* @__PURE__ */ union([
1465
+ /* @__PURE__ */ literal("rewrite"),
1466
+ /* @__PURE__ */ literal("remove"),
1467
+ /* @__PURE__ */ boolean()
1468
+ ]))
1469
+ })),
1470
+ helpers: /* @__PURE__ */ optional(/* @__PURE__ */ object({ mode: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("Runtime"), /* @__PURE__ */ literal("External")])) })),
1471
+ decorator: /* @__PURE__ */ optional(/* @__PURE__ */ object({
1472
+ legacy: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1473
+ emitDecoratorMetadata: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1474
+ })),
1507
1475
  jsx: /* @__PURE__ */ optional(/* @__PURE__ */ union([
1508
1476
  /* @__PURE__ */ literal(false),
1509
1477
  /* @__PURE__ */ literal("preserve"),
1510
1478
  /* @__PURE__ */ literal("react"),
1511
1479
  /* @__PURE__ */ literal("react-jsx"),
1512
- JsxOptionsSchema
1480
+ /* @__PURE__ */ strictObject({
1481
+ runtime: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("classic"), /* @__PURE__ */ literal("automatic")])), /* @__PURE__ */ description("Which runtime to use")),
1482
+ development: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Development specific information")),
1483
+ throwIfNamespace: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Toggles whether to throw an error when a tag name uses an XML namespace")),
1484
+ pure: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Mark JSX elements and top-level React method calls as pure for tree shaking.")),
1485
+ importSource: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Import the factory of element and fragment if mode is classic")),
1486
+ pragma: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Jsx element transformation")),
1487
+ pragmaFrag: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Jsx fragment transformation")),
1488
+ refresh: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ any()])), /* @__PURE__ */ description("Enable react fast refresh"))
1489
+ })
1513
1490
  ])),
1514
1491
  target: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ array(/* @__PURE__ */ string())])), /* @__PURE__ */ description("The JavaScript target environment")),
1515
1492
  define: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string())), /* @__PURE__ */ description("Define global variables (syntax: key:value,key2:value2)")),
1516
1493
  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
1494
  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"))
1495
+ plugins: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ object({
1496
+ styledComponents: /* @__PURE__ */ optional(/* @__PURE__ */ any()),
1497
+ taggedTemplateEscape: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1498
+ })), /* @__PURE__ */ description("Third-party plugins to use"))
1519
1499
  });
1520
- isTypeTrue();
1521
1500
  const WatcherFileWatcherOptionsSchema = /* @__PURE__ */ strictObject({
1522
1501
  usePolling: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Use polling-based file watching instead of native OS events")),
1523
1502
  pollInterval: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ number()), /* @__PURE__ */ description("Poll interval in milliseconds (only used when usePolling is true)")),
@@ -1537,7 +1516,6 @@ const WatcherOptionsSchema = /* @__PURE__ */ strictObject({
1537
1516
  clearScreen: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to clear the screen when a rebuild is triggered")),
1538
1517
  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
1518
  });
1540
- isTypeTrue();
1541
1519
  const ChecksOptionsSchema = /* @__PURE__ */ strictObject({
1542
1520
  circularDependency: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when detecting circular dependency")),
1543
1521
  eval: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when detecting uses of direct `eval`s")),
@@ -1560,52 +1538,39 @@ const ChecksOptionsSchema = /* @__PURE__ */ strictObject({
1560
1538
  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
1539
  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
1540
  });
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
1541
  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]))
1542
+ compress: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
1543
+ target: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ array(/* @__PURE__ */ string())])),
1544
+ dropConsole: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1545
+ dropDebugger: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1546
+ keepNames: /* @__PURE__ */ optional(/* @__PURE__ */ strictObject({
1547
+ function: /* @__PURE__ */ boolean(),
1548
+ class: /* @__PURE__ */ boolean()
1549
+ })),
1550
+ unused: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ literal("keep_assign")])),
1551
+ joinVars: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1552
+ sequences: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1553
+ dropLabels: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())),
1554
+ maxIterations: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
1555
+ treeshake: /* @__PURE__ */ optional(/* @__PURE__ */ strictObject({
1556
+ annotations: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1557
+ manualPureFunctions: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())),
1558
+ propertyReadSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ literal("always")])),
1559
+ propertyWriteSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1560
+ unknownGlobalSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1561
+ invalidImportSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1562
+ }))
1563
+ })])),
1564
+ mangle: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
1565
+ toplevel: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1566
+ keepNames: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
1567
+ function: /* @__PURE__ */ boolean(),
1568
+ class: /* @__PURE__ */ boolean()
1569
+ })])),
1570
+ debug: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1571
+ })])),
1572
+ codegen: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({ removeWhitespace: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()) })]))
1607
1573
  });
1608
- isTypeTrue();
1609
1574
  const ResolveOptionsSchema = /* @__PURE__ */ strictObject({
1610
1575
  alias: /* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ union([
1611
1576
  /* @__PURE__ */ literal(false),
@@ -1623,7 +1588,6 @@ const ResolveOptionsSchema = /* @__PURE__ */ strictObject({
1623
1588
  symlinks: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1624
1589
  tsconfigFilename: /* @__PURE__ */ optional(/* @__PURE__ */ string())
1625
1590
  });
1626
- isTypeTrue();
1627
1591
  const TreeshakingOptionsSchema = /* @__PURE__ */ strictObject({
1628
1592
  moduleSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ any()),
1629
1593
  annotations: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
@@ -1634,7 +1598,6 @@ const TreeshakingOptionsSchema = /* @__PURE__ */ strictObject({
1634
1598
  propertyReadSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal(false), /* @__PURE__ */ literal("always")])),
1635
1599
  propertyWriteSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal(false), /* @__PURE__ */ literal("always")]))
1636
1600
  });
1637
- isTypeTrue();
1638
1601
  const OptimizationOptionsSchema = /* @__PURE__ */ strictObject({
1639
1602
  inlineConst: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
1640
1603
  mode: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("all"), /* @__PURE__ */ literal("smart")])),
@@ -1642,24 +1605,19 @@ const OptimizationOptionsSchema = /* @__PURE__ */ strictObject({
1642
1605
  })])), /* @__PURE__ */ description("Enable crossmodule constant inlining")),
1643
1606
  pifeForModuleWrappers: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Use PIFE pattern for module wrappers"))
1644
1607
  });
1645
- isTypeTrue();
1646
1608
  const LogOrStringHandlerSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([LogLevelWithErrorSchema, RollupLogWithStringSchema])));
1647
- isTypeTrue();
1648
1609
  const OnLogSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([
1649
1610
  LogLevelSchema,
1650
1611
  RollupLogSchema,
1651
1612
  LogOrStringHandlerSchema
1652
1613
  ])));
1653
- isTypeTrue();
1654
1614
  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
1615
  const DevModeSchema = /* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
1657
1616
  port: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
1658
1617
  host: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
1659
1618
  implement: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
1660
1619
  lazy: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1661
1620
  })]);
1662
- isTypeTrue();
1663
1621
  const InputOptionsSchema = /* @__PURE__ */ strictObject({
1664
1622
  input: /* @__PURE__ */ optional(InputOptionSchema),
1665
1623
  plugins: /* @__PURE__ */ optional(/* @__PURE__ */ custom(() => true)),
@@ -1712,7 +1670,6 @@ const InputOptionsSchema = /* @__PURE__ */ strictObject({
1712
1670
  context: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("The value of `this` at the top level of each module.")),
1713
1671
  tsconfig: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ string()])), /* @__PURE__ */ description("Path to the tsconfig.json file."))
1714
1672
  });
1715
- isTypeTrue();
1716
1673
  const InputCliOverrideSchema = /* @__PURE__ */ strictObject({
1717
1674
  input: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())), /* @__PURE__ */ description("Entry file")),
1718
1675
  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 +1698,22 @@ const ModuleFormatSchema = /* @__PURE__ */ union([
1741
1698
  /* @__PURE__ */ literal("iife"),
1742
1699
  /* @__PURE__ */ literal("umd")
1743
1700
  ]);
1744
- isTypeTrue();
1745
1701
  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
1702
  const ChunkFileNamesFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ custom(() => true)])), /* @__PURE__ */ returns(/* @__PURE__ */ string()));
1748
- isTypeTrue();
1749
1703
  const ChunkFileNamesSchema = /* @__PURE__ */ union([/* @__PURE__ */ string(), ChunkFileNamesFunctionSchema]);
1750
1704
  const AssetFileNamesFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ custom(() => true)])), /* @__PURE__ */ returns(/* @__PURE__ */ string()));
1751
- isTypeTrue();
1752
1705
  const AssetFileNamesSchema = /* @__PURE__ */ union([/* @__PURE__ */ string(), AssetFileNamesFunctionSchema]);
1753
1706
  const SanitizeFileNameFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string()])), /* @__PURE__ */ returns(/* @__PURE__ */ string()));
1754
- isTypeTrue();
1755
1707
  const SanitizeFileNameSchema = /* @__PURE__ */ union([/* @__PURE__ */ boolean(), SanitizeFileNameFunctionSchema]);
1756
1708
  const GlobalsFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string()])), /* @__PURE__ */ returns(/* @__PURE__ */ string()));
1757
- isTypeTrue();
1758
1709
  const PathsFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string()])), /* @__PURE__ */ returns(/* @__PURE__ */ string()));
1759
- isTypeTrue();
1760
1710
  const ManualChunksFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string(), /* @__PURE__ */ object({})])), /* @__PURE__ */ returns(/* @__PURE__ */ nullish(/* @__PURE__ */ string())));
1761
- isTypeTrue();
1762
1711
  const AdvancedChunksNameFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string(), /* @__PURE__ */ object({})])), /* @__PURE__ */ returns(/* @__PURE__ */ nullish(/* @__PURE__ */ string())));
1763
- isTypeTrue();
1764
1712
  const AdvancedChunksTestFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string()])), /* @__PURE__ */ returns(/* @__PURE__ */ union([
1765
1713
  /* @__PURE__ */ boolean(),
1766
1714
  /* @__PURE__ */ void_(),
1767
1715
  /* @__PURE__ */ undefined_()
1768
1716
  ])));
1769
- isTypeTrue();
1770
1717
  const AdvancedChunksSchema = /* @__PURE__ */ strictObject({
1771
1718
  includeDependenciesRecursively: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1772
1719
  minSize: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
@@ -1784,18 +1731,15 @@ const AdvancedChunksSchema = /* @__PURE__ */ strictObject({
1784
1731
  minModuleSize: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
1785
1732
  maxModuleSize: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
1786
1733
  entriesAware: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1787
- entriesAwareMergeThreshold: /* @__PURE__ */ optional(/* @__PURE__ */ number())
1734
+ entriesAwareMergeThreshold: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
1735
+ tags: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string()))
1788
1736
  })))
1789
1737
  });
1790
- isTypeTrue();
1791
- const GeneratedCodePresetSchema = /* @__PURE__ */ union([/* @__PURE__ */ literal("es5"), /* @__PURE__ */ literal("es2015")]);
1792
- isTypeTrue();
1793
1738
  const GeneratedCodeOptionsSchema = /* @__PURE__ */ strictObject({
1794
1739
  symbols: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to use Symbol.toStringTag for namespace objects")),
1795
- preset: /* @__PURE__ */ optional(GeneratedCodePresetSchema),
1740
+ preset: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("es5"), /* @__PURE__ */ literal("es2015")])),
1796
1741
  profilerNames: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to add readable names to internal variables for profiling purposes"))
1797
1742
  });
1798
- isTypeTrue();
1799
1743
  const OutputOptionsSchema = /* @__PURE__ */ strictObject({
1800
1744
  dir: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Output directory, defaults to `dist` if `file` is not set")),
1801
1745
  file: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Single output file")),
@@ -1818,6 +1762,7 @@ const OutputOptionsSchema = /* @__PURE__ */ strictObject({
1818
1762
  ])), /* @__PURE__ */ description(`Generate sourcemap (\`-s inline\` for inline, or \`-s\` for \`.map\` file)`)),
1819
1763
  sourcemapBaseUrl: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Base URL used to prefix sourcemap paths")),
1820
1764
  sourcemapDebugIds: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Inject sourcemap debug IDs")),
1765
+ sourcemapExcludeSources: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Exclude source content from sourcemaps")),
1821
1766
  sourcemapIgnoreList: /* @__PURE__ */ optional(/* @__PURE__ */ union([
1822
1767
  /* @__PURE__ */ boolean(),
1823
1768
  /* @__PURE__ */ custom(() => true),
@@ -1870,7 +1815,6 @@ const OutputOptionsSchema = /* @__PURE__ */ strictObject({
1870
1815
  strictExecutionOrder: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Lets modules be executed in the order they are declared.")),
1871
1816
  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
1817
  });
1873
- isTypeTrue();
1874
1818
  const getAddonDescription = (placement, wrapper) => {
1875
1819
  return `Code to insert the ${styleText$1("bold", placement)} of the bundled file (${styleText$1("bold", wrapper)} the wrapper function)`;
1876
1820
  };
@@ -1961,6 +1905,7 @@ function getCliSchemaInfo() {
1961
1905
  //#endregion
1962
1906
  //#region src/types/rolldown-output-impl.ts
1963
1907
  var RolldownOutputImpl = class extends PlainObjectLike {
1908
+ bindingOutputs;
1964
1909
  constructor(bindingOutputs) {
1965
1910
  super();
1966
1911
  this.bindingOutputs = bindingOutputs;
@@ -1984,6 +1929,7 @@ __decorate([lazyProp], RolldownOutputImpl.prototype, "output", null);
1984
1929
  //#endregion
1985
1930
  //#region src/types/chunking-context.ts
1986
1931
  var ChunkingContextImpl = class {
1932
+ context;
1987
1933
  constructor(context) {
1988
1934
  this.context = context;
1989
1935
  }
@@ -2763,7 +2709,7 @@ function n(e) {
2763
2709
  return e ? e !== "false" : false;
2764
2710
  }
2765
2711
  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);
2712
+ o.MINIMAL;
2767
2713
  const A = /^win/i.test(I);
2768
2714
  !n(o.NO_COLOR) && (n(o.FORCE_COLOR) || (a || A) && o.TERM);
2769
2715
  const C = (globalThis.process?.versions?.node || "").replace(/^v/, "") || null;
@@ -2932,7 +2878,7 @@ function createConsola(options = {}) {
2932
2878
  defaults: { level },
2933
2879
  stdout: process.stdout,
2934
2880
  stderr: process.stderr,
2935
- prompt: (...args) => import("./prompt-BYQIwEjg.mjs").then((m) => m.prompt(...args)),
2881
+ prompt: (...args) => import("./prompt-U5ajztzG.mjs").then((m) => m.prompt(...args)),
2936
2882
  reporters: options.reporters || [options.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()],
2937
2883
  ...options
2938
2884
  });
@@ -2973,7 +2919,7 @@ function createTestingLogger() {
2973
2919
  //#endregion
2974
2920
  //#region src/utils/bindingify-output-options.ts
2975
2921
  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;
2922
+ 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
2923
  if (legalComments != null) logger.warn("`legalComments` option is deprecated, please use `comments.legal` instead.");
2978
2924
  const { inlineDynamicImports, advancedChunks } = bindingifyCodeSplitting(outputOptions.codeSplitting, outputOptions.inlineDynamicImports, outputOptions.advancedChunks, manualChunks);
2979
2925
  return {
@@ -2985,6 +2931,7 @@ function bindingifyOutputOptions(outputOptions) {
2985
2931
  sourcemap: bindingifySourcemap(sourcemap),
2986
2932
  sourcemapBaseUrl,
2987
2933
  sourcemapDebugIds,
2934
+ sourcemapExcludeSources,
2988
2935
  sourcemapIgnoreList: sourcemapIgnoreList ?? /node_modules/,
2989
2936
  sourcemapPathTransform,
2990
2937
  banner: bindingifyAddon(banner),
@@ -3122,7 +3069,6 @@ function bindingifyCodeSplitting(codeSplitting, inlineDynamicImportsOption, adva
3122
3069
  }
3123
3070
  //#endregion
3124
3071
  //#region src/utils/initialize-parallel-plugins.ts
3125
- var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
3126
3072
  async function initializeParallelPlugins(plugins) {
3127
3073
  const pluginInfos = [];
3128
3074
  for (const [index, plugin] of plugins.entries()) if ("_parallel" in plugin) {
@@ -1,4 +1,4 @@
1
- import { c as validateOption, t as RolldownBuild, u as PluginDriver } from "./rolldown-build-4YnQkA76.mjs";
1
+ import { c as validateOption, t as RolldownBuild, u as PluginDriver } from "./rolldown-build-D_ShytiL.mjs";
2
2
  //#region src/api/rolldown/index.ts
3
3
  /**
4
4
  * The API compatible with Rollup's `rollup` function.
@@ -1,6 +1,23 @@
1
1
  import { a as RolldownLog } from "./logging-C6h4g8dA.mjs";
2
- import { I as ParseResult$1, L as ParserOptions$1, N as MinifyOptions$1, P as MinifyResult$1, U as TsconfigCache, V as SourceMap, a as BindingEnhancedTransformOptions, o as BindingEnhancedTransformResult } from "./binding-BohGL_65.mjs";
2
+ 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-zH1vcmbM.mjs";
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
@@ -129,4 +146,4 @@ declare function transform(filename: string, sourceText: string, options?: Trans
129
146
  */
130
147
  declare function transformSync(filename: string, sourceText: string, options?: TransformOptions | null, cache?: TsconfigCache | null): TransformResult;
131
148
  //#endregion
132
- export { MinifyOptions as a, minifySync as c, parse as d, parseSync as f, transformSync as i, ParseResult as l, TransformResult as n, MinifyResult as o, transform as r, minify as s, TransformOptions as t, ParserOptions 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,9 +1,9 @@
1
- import { n as __toESM, t as require_binding } from "./binding-C5G6_6ql.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-ESkOU1xr.mjs";
2
2
  import { o as logMultipleWatcherOption } from "./logs-D80CXhvg.mjs";
3
- import { v as LOG_LEVEL_WARN } from "./bindingify-input-options-Cu7pt6SZ.mjs";
3
+ import { v as LOG_LEVEL_WARN } from "./bindingify-input-options-zrVFGksD.mjs";
4
4
  import { t as arraify } from "./misc-DJYbNKZX.mjs";
5
- import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-4YnQkA76.mjs";
6
- import { t as aggregateBindingErrorsIntoJsError } from "./error-CP8smW_P.mjs";
5
+ import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-D_ShytiL.mjs";
6
+ import { t as aggregateBindingErrorsIntoJsError } from "./error-BrnLyQ-g.mjs";
7
7
  //#region ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
8
8
  /**
9
9
  * This is not the set of all possible signals.
@@ -1,9 +1,9 @@
1
- import { U as TsconfigCache, _ as BindingTsconfigRawOptions, g as BindingTsconfigCompilerOptions } from "./shared/binding-BohGL_65.mjs";
2
- import { a as MinifyOptions, c as minifySync, d as parse, f as parseSync, i as transformSync, l as ParseResult, n as TransformResult, o as MinifyResult, r as transform, s as minify, t as TransformOptions, u as ParserOptions } from "./shared/transform-BoJxrM-e.mjs";
1
+ import { _ as BindingTsconfigRawOptions, g as BindingTsconfigCompilerOptions } from "./shared/binding-zH1vcmbM.mjs";
2
+ import { a as MinifyOptions, c as minifySync, d as parse, f as parseSync, i as transformSync, l as ParseResult, n as TransformResult, o as MinifyResult, p as TsconfigCache, r as transform, s as minify, t as TransformOptions, u as ParserOptions } from "./shared/transform-DgZ3paSD.mjs";
3
3
  import * as ESTree from "@oxc-project/types";
4
4
  import { Program } from "@oxc-project/types";
5
5
 
6
- //#region ../../node_modules/.pnpm/oxc-parser@0.115.0/node_modules/oxc-parser/src-js/generated/visit/visitor.d.ts
6
+ //#region ../../node_modules/.pnpm/oxc-parser@0.129.0/node_modules/oxc-parser/src-js/generated/visit/visitor.d.ts
7
7
  interface VisitorObject$1 {
8
8
  DebuggerStatement?: (node: ESTree.DebuggerStatement) => void;
9
9
  "DebuggerStatement:exit"?: (node: ESTree.DebuggerStatement) => void;
@@ -1,8 +1,6 @@
1
- import "./shared/binding-C5G6_6ql.mjs";
2
- import "./shared/error-CP8smW_P.mjs";
3
- import { n as parseSync, t as parse } from "./shared/parse-B3SIKejW.mjs";
4
- import { a as minifySync, i as minify, n as transform, r as transformSync, t as import_binding } from "./shared/transform-BfdLLNnY.mjs";
5
- //#region ../../node_modules/.pnpm/oxc-parser@0.115.0/node_modules/oxc-parser/src-js/generated/visit/walk.js
1
+ import { n as parseSync, t as parse } from "./shared/parse-_9Vwp6y3.mjs";
2
+ import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-DCdBlPeK.mjs";
3
+ //#region ../../node_modules/.pnpm/oxc-parser@0.129.0/node_modules/oxc-parser/src-js/generated/visit/walk.js
6
4
  function walkNode(node, visitors) {
7
5
  if (node == null) return;
8
6
  if (Array.isArray(node)) {
@@ -2012,7 +2010,7 @@ function walkTSUnionType(node, visitors) {
2012
2010
  exit !== null && exit(node);
2013
2011
  }
2014
2012
  //#endregion
2015
- //#region ../../node_modules/.pnpm/oxc-parser@0.115.0/node_modules/oxc-parser/src-js/generated/visit/type_ids.js
2013
+ //#region ../../node_modules/.pnpm/oxc-parser@0.129.0/node_modules/oxc-parser/src-js/generated/visit/type_ids.js
2016
2014
  /** Mapping from node type name to node type ID */
2017
2015
  const NODE_TYPE_IDS_MAP = new Map([
2018
2016
  ["DebuggerStatement", 0],
@@ -2182,7 +2180,7 @@ const NODE_TYPE_IDS_MAP = new Map([
2182
2180
  ["TSUnionType", 164]
2183
2181
  ]);
2184
2182
  //#endregion
2185
- //#region ../../node_modules/.pnpm/oxc-parser@0.115.0/node_modules/oxc-parser/src-js/visit/visitor.js
2183
+ //#region ../../node_modules/.pnpm/oxc-parser@0.129.0/node_modules/oxc-parser/src-js/visit/visitor.js
2186
2184
  let compiledVisitor;
2187
2185
  function createCompiledVisitor() {
2188
2186
  compiledVisitor = [];
@@ -2413,5 +2411,4 @@ var Visitor = class {
2413
2411
  }
2414
2412
  };
2415
2413
  //#endregion
2416
- var TsconfigCache = import_binding.TsconfigCache;
2417
2414
  export { TsconfigCache, Visitor, minify, minifySync, parse, parseSync, transform, transformSync };