@voidzero-dev/vite-plus-core 0.1.2 → 0.1.4

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 (92) hide show
  1. package/dist/rolldown/cli.mjs +619 -197
  2. package/dist/rolldown/config.d.mts +1 -1
  3. package/dist/rolldown/config.mjs +10 -11
  4. package/dist/rolldown/experimental-index.d.mts +20 -6
  5. package/dist/rolldown/experimental-index.mjs +24 -22
  6. package/dist/rolldown/filter-index.d.mts +1 -1
  7. package/dist/rolldown/filter-index.mjs +2 -8
  8. package/dist/rolldown/get-log-filter.mjs +1 -2
  9. package/dist/rolldown/index.d.mts +3 -3
  10. package/dist/rolldown/index.mjs +10 -13
  11. package/dist/rolldown/parallel-plugin-worker.mjs +7 -9
  12. package/dist/rolldown/parallel-plugin.d.mts +1 -1
  13. package/dist/rolldown/parallel-plugin.mjs +1 -2
  14. package/dist/rolldown/parse-ast-index.d.mts +1 -1
  15. package/dist/rolldown/parse-ast-index.mjs +4 -6
  16. package/dist/rolldown/plugins-index.d.mts +3 -3
  17. package/dist/rolldown/plugins-index.mjs +4 -6
  18. package/dist/rolldown/shared/{binding-Bd04_f8P.mjs → binding-BSVL02lq.mjs} +7 -16
  19. package/dist/rolldown/shared/{binding-C4ZlFAt6.d.mts → binding-BohGL_65.d.mts} +10 -5
  20. package/dist/rolldown/shared/{bindingify-input-options-ffqkmT9z.mjs → bindingify-input-options-DkwIzK4F.mjs} +36 -56
  21. package/dist/rolldown/shared/{constructors-cPsD1J5w.d.mts → constructors-Bnr_ApVf.d.mts} +2 -2
  22. package/dist/rolldown/shared/{constructors-C5a55nbY.mjs → constructors-D91FHkmz.mjs} +2 -4
  23. package/dist/rolldown/shared/{define-config-DX_4SBzo.d.mts → define-config-B1jccsL9.d.mts} +84 -30
  24. package/dist/rolldown/shared/{define-config-BMj_QknW.mjs → define-config-DJOr6Iwt.mjs} +1 -2
  25. package/dist/rolldown/shared/{error-BYPsvVEN.mjs → error-tpgdcGrK.mjs} +3 -8
  26. package/dist/rolldown/shared/{load-config-Oj1-3DPg.mjs → load-config-Dapgaecf.mjs} +2 -4
  27. package/dist/rolldown/shared/{logs-CCc_0vhs.mjs → logs-D80CXhvg.mjs} +5 -8
  28. package/dist/rolldown/shared/{misc-Xty885dB.mjs → misc-DJYbNKZX.mjs} +1 -2
  29. package/dist/rolldown/shared/{normalize-string-or-regex-DoNa0azR.mjs → normalize-string-or-regex-BCllTl21.mjs} +3 -6
  30. package/dist/rolldown/shared/{parse-Wj8OTS4w.mjs → parse-DFYpKkKl.mjs} +2 -5
  31. package/dist/rolldown/shared/{prompt-CmNr0AI-.mjs → prompt-DZIXsnf9.mjs} +1 -3
  32. package/dist/rolldown/shared/{rolldown-y9H0nYAD.mjs → rolldown-DK6iIJl8.mjs} +2 -4
  33. package/dist/rolldown/shared/{rolldown-build-DkOWV5Vu.mjs → rolldown-build-rw0HCMhn.mjs} +427 -473
  34. package/dist/rolldown/shared/{transform-D55YcCvB.mjs → transform-BSCulZAO.mjs} +3 -6
  35. package/dist/rolldown/shared/{transform-DoG7c5_r.d.mts → transform-BoJxrM-e.d.mts} +1 -1
  36. package/dist/rolldown/shared/{watch-CVufTfok.mjs → watch-D8uEZyLj.mjs} +71 -77
  37. package/dist/rolldown/utils-index.d.mts +2 -2
  38. package/dist/rolldown/utils-index.mjs +9 -18
  39. package/dist/tsdown/{build-TmLngPCw-I7MHSf0I.js → build-BG-XbM6V-hoyhQqI3.js} +87 -292
  40. package/dist/tsdown/build-DHPfiKA--CvTonTfC.js +5 -0
  41. package/dist/tsdown/{chunk-CdeBBKNj.js → chunk-CSNpwdVU.js} +13 -23
  42. package/dist/tsdown/{debug-tOJ_PtrM-DITcI9An.js → debug-C4FmgzkJ-B6m_gRpz.js} +4 -6
  43. package/dist/tsdown/{detect-DK-FDZQ9-CALXiuJa.js → detect-J1_Vd1yf-BWDiPZkP.js} +2 -4
  44. package/dist/tsdown/{dist-uzMTIu3J.js → dist-C9Oecl0H.js} +24 -56
  45. package/dist/tsdown/{dist-DVPyDO-_.js → dist-Dx-jtFHM.js} +5 -10
  46. package/dist/tsdown/{dist-kuoe97DJ.js → dist-_l70jCqI.js} +1 -2
  47. package/dist/tsdown/{filename-C2azOotK.js → filename-tIvGuRvQ.js} +1 -3
  48. package/dist/tsdown/{index-node-Djp92Gzb-fgHTblzo.js → index-node-Bpsmc0eX-jMz9gD3P.js} +2 -4
  49. package/dist/tsdown/index-types.d.ts +8561 -180
  50. package/dist/tsdown/index.js +7 -9
  51. package/dist/tsdown/{main-BWoReXjl.js → main-DN-_H9u2.js} +8 -23
  52. package/dist/tsdown/{node-Ba_UB_xO.js → node-B3Gdtau1.js} +1 -4
  53. package/dist/tsdown/npm_cjs_chunk_chunk.cjs +6 -8
  54. package/dist/tsdown/npm_cjs_chunk_lt.cjs +13 -16
  55. package/dist/tsdown/npm_cjs_chunk_range.cjs +16 -28
  56. package/dist/tsdown/npm_cjs_chunk_semver.cjs +40 -52
  57. package/dist/tsdown/npm_entry_picomatch.cjs +18 -30
  58. package/dist/tsdown/npm_entry_semver_functions_coerce.cjs +3 -7
  59. package/dist/tsdown/npm_entry_semver_functions_lt.cjs +3 -5
  60. package/dist/tsdown/npm_entry_semver_functions_satisfies.cjs +5 -8
  61. package/dist/tsdown/npm_entry_semver_ranges_min-version.cjs +5 -8
  62. package/dist/tsdown/npm_entry_tree-kill.cjs +2 -6
  63. package/dist/tsdown/{resolver-CdD-yT15-OWjlgV0D.js → resolver-CdD-yT15-3eaymYLw.js} +2 -4
  64. package/dist/tsdown/run.js +6 -12
  65. package/dist/tsdown/{tsc-D6YfZJBZ.js → tsc-OwK9UHsV.js} +4 -6
  66. package/dist/tsdown/{tsc-context-CGmk4Cps.js → tsc-context-DiIjfXAG.js} +2 -4
  67. package/dist/vite/client/client.mjs +116 -19
  68. package/dist/vite/client/env.mjs +1 -2
  69. package/dist/vite/node/chunks/build.js +2 -3
  70. package/dist/vite/node/chunks/build2.js +91 -243
  71. package/dist/vite/node/chunks/chunk.js +7 -13
  72. package/dist/vite/node/chunks/config.js +2 -3
  73. package/dist/vite/node/chunks/dist.js +27 -61
  74. package/dist/vite/node/chunks/dist2.js +11 -95
  75. package/dist/vite/node/chunks/lib.js +1 -7
  76. package/dist/vite/node/chunks/logger.js +4 -9
  77. package/dist/vite/node/chunks/node.js +956 -918
  78. package/dist/vite/node/chunks/optimizer.js +2 -3
  79. package/dist/vite/node/chunks/postcss-import.js +1 -13
  80. package/dist/vite/node/chunks/preview.js +2 -3
  81. package/dist/vite/node/chunks/server.js +2 -3
  82. package/dist/vite/node/cli.js +202 -67
  83. package/dist/vite/node/index.d.ts +17 -14
  84. package/dist/vite/node/index.js +2 -3
  85. package/dist/vite/node/internal.js +1 -2
  86. package/dist/vite/node/module-runner.d.ts +5 -1
  87. package/dist/vite/node/module-runner.js +44 -3
  88. package/dist/vite/types/customEvent.d.ts +27 -0
  89. package/package.json +10 -10
  90. package/dist/rolldown/cli-setup.d.mts +0 -1
  91. package/dist/rolldown/cli-setup.mjs +0 -17
  92. package/dist/tsdown/build-gOkJM1H9-BRI3DQle.js +0 -6
@@ -1,16 +1,15 @@
1
- import { n as __toESM, t as require_binding } from "./binding-Bd04_f8P.mjs";
2
- import { i as logInputHookInOutputPlugin, n as error } from "./logs-CCc_0vhs.mjs";
3
- import { n as BuiltinPlugin } from "./normalize-string-or-regex-DoNa0azR.mjs";
4
- import { _ as LOG_LEVEL_WARN, a as transformToRollupOutput, b as VERSION, c as transformAssetSource, d as MinimalPluginContextImpl, f as normalizeHook, g as LOG_LEVEL_INFO, h as LOG_LEVEL_ERROR, 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-ffqkmT9z.mjs";
5
- import { i as unimplemented } from "./misc-Xty885dB.mjs";
6
- import { i as unwrapBindingResult } from "./error-BYPsvVEN.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-BSVL02lq.mjs";
2
+ import { i as logInputHookInOutputPlugin, n as error } from "./logs-D80CXhvg.mjs";
3
+ import { n as BuiltinPlugin } from "./normalize-string-or-regex-BCllTl21.mjs";
4
+ 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-DkwIzK4F.mjs";
5
+ import { i as unimplemented } from "./misc-DJYbNKZX.mjs";
6
+ import { i as unwrapBindingResult } from "./error-tpgdcGrK.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";
10
10
  import process$1 from "node:process";
11
11
  import * as tty from "node:tty";
12
12
  import os from "node:os";
13
-
14
13
  //#region src/log/logger.ts
15
14
  function getLogger(plugins, onLog, logLevel, watchMode) {
16
15
  const minimalPriority = logLevelPriority[logLevel];
@@ -25,15 +24,15 @@ function getLogger(plugins, onLog, logLevel, watchMode) {
25
24
  return (log) => logger(level, normalizeLog(log), new Set(skipped).add(plugin));
26
25
  };
27
26
  if (("handler" in pluginOnLog ? pluginOnLog.handler : pluginOnLog).call({
28
- debug: getLogHandler(LOG_LEVEL_DEBUG),
27
+ debug: getLogHandler("debug"),
29
28
  error: (log) => error(normalizeLog(log)),
30
- info: getLogHandler(LOG_LEVEL_INFO),
29
+ info: getLogHandler("info"),
31
30
  meta: {
32
31
  rollupVersion: "4.23.0",
33
32
  rolldownVersion: VERSION,
34
33
  watchMode
35
34
  },
36
- warn: getLogHandler(LOG_LEVEL_WARN),
35
+ warn: getLogHandler("warn"),
37
36
  pluginName: plugin.name || "unknown"
38
37
  }, level, log) === false) return;
39
38
  }
@@ -48,14 +47,14 @@ const getOnLog = (config, logLevel, printLog = defaultPrintLog) => {
48
47
  if (onLog) {
49
48
  const minimalPriority = logLevelPriority[logLevel];
50
49
  return (level, log) => onLog(level, addLogToString(log), (level, handledLog) => {
51
- if (level === LOG_LEVEL_ERROR) return error(normalizeLog(handledLog));
50
+ if (level === "error") return error(normalizeLog(handledLog));
52
51
  if (logLevelPriority[level] >= minimalPriority) defaultOnLog(level, normalizeLog(handledLog));
53
52
  });
54
53
  }
55
54
  return defaultOnLog;
56
55
  };
57
56
  const getDefaultOnLog = (printLog, onwarn) => onwarn ? (level, log) => {
58
- if (level === LOG_LEVEL_WARN) onwarn(addLogToString(log), (warning) => printLog(LOG_LEVEL_WARN, normalizeLog(warning)));
57
+ if (level === "warn") onwarn(addLogToString(log), (warning) => printLog(LOG_LEVEL_WARN, normalizeLog(warning)));
59
58
  else printLog(level, log);
60
59
  } : printLog;
61
60
  const addLogToString = (log) => {
@@ -83,7 +82,6 @@ function relativeId(id) {
83
82
  if (!path.isAbsolute(id)) return id;
84
83
  return path.relative(path.resolve(), id);
85
84
  }
86
-
87
85
  //#endregion
88
86
  //#region src/constants/plugin.ts
89
87
  const ENUMERATED_INPUT_PLUGIN_HOOK_NAMES = [
@@ -117,42 +115,7 @@ const ENUMERATED_PLUGIN_HOOK_NAMES = [
117
115
  "intro",
118
116
  "outro"
119
117
  ];
120
- /**
121
- * Names of all defined hooks. It's like
122
- * ```js
123
- * const DEFINED_HOOK_NAMES ={
124
- * options: 'options',
125
- * buildStart: 'buildStart',
126
- * ...
127
- * }
128
- * ```
129
- */
130
- const DEFINED_HOOK_NAMES = {
131
- [ENUMERATED_PLUGIN_HOOK_NAMES[0]]: ENUMERATED_PLUGIN_HOOK_NAMES[0],
132
- [ENUMERATED_PLUGIN_HOOK_NAMES[1]]: ENUMERATED_PLUGIN_HOOK_NAMES[1],
133
- [ENUMERATED_PLUGIN_HOOK_NAMES[2]]: ENUMERATED_PLUGIN_HOOK_NAMES[2],
134
- [ENUMERATED_PLUGIN_HOOK_NAMES[3]]: ENUMERATED_PLUGIN_HOOK_NAMES[3],
135
- [ENUMERATED_PLUGIN_HOOK_NAMES[4]]: ENUMERATED_PLUGIN_HOOK_NAMES[4],
136
- [ENUMERATED_PLUGIN_HOOK_NAMES[5]]: ENUMERATED_PLUGIN_HOOK_NAMES[5],
137
- [ENUMERATED_PLUGIN_HOOK_NAMES[6]]: ENUMERATED_PLUGIN_HOOK_NAMES[6],
138
- [ENUMERATED_PLUGIN_HOOK_NAMES[7]]: ENUMERATED_PLUGIN_HOOK_NAMES[7],
139
- [ENUMERATED_PLUGIN_HOOK_NAMES[8]]: ENUMERATED_PLUGIN_HOOK_NAMES[8],
140
- [ENUMERATED_PLUGIN_HOOK_NAMES[9]]: ENUMERATED_PLUGIN_HOOK_NAMES[9],
141
- [ENUMERATED_PLUGIN_HOOK_NAMES[10]]: ENUMERATED_PLUGIN_HOOK_NAMES[10],
142
- [ENUMERATED_PLUGIN_HOOK_NAMES[11]]: ENUMERATED_PLUGIN_HOOK_NAMES[11],
143
- [ENUMERATED_PLUGIN_HOOK_NAMES[12]]: ENUMERATED_PLUGIN_HOOK_NAMES[12],
144
- [ENUMERATED_PLUGIN_HOOK_NAMES[13]]: ENUMERATED_PLUGIN_HOOK_NAMES[13],
145
- [ENUMERATED_PLUGIN_HOOK_NAMES[14]]: ENUMERATED_PLUGIN_HOOK_NAMES[14],
146
- [ENUMERATED_PLUGIN_HOOK_NAMES[15]]: ENUMERATED_PLUGIN_HOOK_NAMES[15],
147
- [ENUMERATED_PLUGIN_HOOK_NAMES[16]]: ENUMERATED_PLUGIN_HOOK_NAMES[16],
148
- [ENUMERATED_PLUGIN_HOOK_NAMES[17]]: ENUMERATED_PLUGIN_HOOK_NAMES[17],
149
- [ENUMERATED_PLUGIN_HOOK_NAMES[18]]: ENUMERATED_PLUGIN_HOOK_NAMES[18],
150
- [ENUMERATED_PLUGIN_HOOK_NAMES[19]]: ENUMERATED_PLUGIN_HOOK_NAMES[19],
151
- [ENUMERATED_PLUGIN_HOOK_NAMES[20]]: ENUMERATED_PLUGIN_HOOK_NAMES[20],
152
- [ENUMERATED_PLUGIN_HOOK_NAMES[21]]: ENUMERATED_PLUGIN_HOOK_NAMES[21],
153
- [ENUMERATED_PLUGIN_HOOK_NAMES[22]]: ENUMERATED_PLUGIN_HOOK_NAMES[22]
154
- };
155
-
118
+ ENUMERATED_PLUGIN_HOOK_NAMES[0], ENUMERATED_PLUGIN_HOOK_NAMES[0], ENUMERATED_PLUGIN_HOOK_NAMES[1], ENUMERATED_PLUGIN_HOOK_NAMES[1], ENUMERATED_PLUGIN_HOOK_NAMES[2], ENUMERATED_PLUGIN_HOOK_NAMES[2], ENUMERATED_PLUGIN_HOOK_NAMES[3], ENUMERATED_PLUGIN_HOOK_NAMES[3], ENUMERATED_PLUGIN_HOOK_NAMES[4], ENUMERATED_PLUGIN_HOOK_NAMES[4], ENUMERATED_PLUGIN_HOOK_NAMES[5], ENUMERATED_PLUGIN_HOOK_NAMES[5], ENUMERATED_PLUGIN_HOOK_NAMES[6], ENUMERATED_PLUGIN_HOOK_NAMES[6], ENUMERATED_PLUGIN_HOOK_NAMES[7], ENUMERATED_PLUGIN_HOOK_NAMES[7], ENUMERATED_PLUGIN_HOOK_NAMES[8], ENUMERATED_PLUGIN_HOOK_NAMES[8], ENUMERATED_PLUGIN_HOOK_NAMES[9], ENUMERATED_PLUGIN_HOOK_NAMES[9], ENUMERATED_PLUGIN_HOOK_NAMES[10], ENUMERATED_PLUGIN_HOOK_NAMES[10], ENUMERATED_PLUGIN_HOOK_NAMES[11], ENUMERATED_PLUGIN_HOOK_NAMES[11], ENUMERATED_PLUGIN_HOOK_NAMES[12], ENUMERATED_PLUGIN_HOOK_NAMES[12], ENUMERATED_PLUGIN_HOOK_NAMES[13], ENUMERATED_PLUGIN_HOOK_NAMES[13], ENUMERATED_PLUGIN_HOOK_NAMES[14], ENUMERATED_PLUGIN_HOOK_NAMES[14], ENUMERATED_PLUGIN_HOOK_NAMES[15], ENUMERATED_PLUGIN_HOOK_NAMES[15], ENUMERATED_PLUGIN_HOOK_NAMES[16], ENUMERATED_PLUGIN_HOOK_NAMES[16], ENUMERATED_PLUGIN_HOOK_NAMES[17], ENUMERATED_PLUGIN_HOOK_NAMES[17], ENUMERATED_PLUGIN_HOOK_NAMES[18], ENUMERATED_PLUGIN_HOOK_NAMES[18], ENUMERATED_PLUGIN_HOOK_NAMES[19], ENUMERATED_PLUGIN_HOOK_NAMES[19], ENUMERATED_PLUGIN_HOOK_NAMES[20], ENUMERATED_PLUGIN_HOOK_NAMES[20], ENUMERATED_PLUGIN_HOOK_NAMES[21], ENUMERATED_PLUGIN_HOOK_NAMES[21], ENUMERATED_PLUGIN_HOOK_NAMES[22], ENUMERATED_PLUGIN_HOOK_NAMES[22];
156
119
  //#endregion
157
120
  //#region src/utils/async-flatten.ts
158
121
  async function asyncFlatten(array) {
@@ -161,7 +124,6 @@ async function asyncFlatten(array) {
161
124
  while (array.some((v) => v?.then));
162
125
  return array;
163
126
  }
164
-
165
127
  //#endregion
166
128
  //#region src/utils/normalize-plugin-option.ts
167
129
  const normalizePluginOption = async (plugins) => (await asyncFlatten([plugins])).filter(Boolean);
@@ -182,12 +144,11 @@ function normalizePlugins(plugins, anonymousPrefix) {
182
144
  }
183
145
  const ANONYMOUS_PLUGIN_PREFIX = "at position ";
184
146
  const ANONYMOUS_OUTPUT_PLUGIN_PREFIX = "at output position ";
185
-
186
147
  //#endregion
187
148
  //#region src/plugin/plugin-driver.ts
188
149
  var PluginDriver = class {
189
150
  static async callOptionsHook(inputOptions, watchMode = false) {
190
- const logLevel = inputOptions.logLevel || LOG_LEVEL_INFO;
151
+ const logLevel = inputOptions.logLevel || "info";
191
152
  const plugins = getSortedPlugins("options", getObjectPlugins(await normalizePluginOption(inputOptions.plugins)));
192
153
  const logger = getLogger(plugins, getOnLog(inputOptions, logLevel), logLevel, watchMode);
193
154
  for (const plugin of plugins) {
@@ -249,7 +210,6 @@ function getSortedPlugins(hookName, plugins) {
249
210
  ...post
250
211
  ];
251
212
  }
252
-
253
213
  //#endregion
254
214
  //#region ../../../node_modules/.pnpm/valibot@1.2.0_typescript@5.9.3/node_modules/valibot/dist/index.mjs
255
215
  let store$4;
@@ -1360,7 +1320,6 @@ function safeParse(schema, input, config$1) {
1360
1320
  issues: dataset.issues
1361
1321
  };
1362
1322
  }
1363
-
1364
1323
  //#endregion
1365
1324
  //#region src/utils/flatten-valibot-schema.ts
1366
1325
  function unwrapSchema(schema) {
@@ -1425,7 +1384,6 @@ function flattenValibotSchema(schema, result = {}, prefix = "") {
1425
1384
  }
1426
1385
  return result;
1427
1386
  }
1428
-
1429
1387
  //#endregion
1430
1388
  //#region src/utils/style-text.ts
1431
1389
  /**
@@ -1436,330 +1394,334 @@ function flattenValibotSchema(schema, result = {}, prefix = "") {
1436
1394
  function styleText$1(...args) {
1437
1395
  return styleText(...args);
1438
1396
  }
1439
-
1440
1397
  //#endregion
1441
1398
  //#region src/utils/validator.ts
1442
1399
  function isTypeTrue() {}
1443
- const StringOrRegExpSchema = union([string(), instance(RegExp)]);
1400
+ const StringOrRegExpSchema = /* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ instance(RegExp)]);
1444
1401
  isTypeTrue();
1445
1402
  function vFunction() {
1446
- return function_();
1403
+ return /* @__PURE__ */ function_();
1447
1404
  }
1448
- const LogLevelSchema = union([
1449
- literal("debug"),
1450
- literal("info"),
1451
- literal("warn")
1405
+ const LogLevelSchema = /* @__PURE__ */ union([
1406
+ /* @__PURE__ */ literal("debug"),
1407
+ /* @__PURE__ */ literal("info"),
1408
+ /* @__PURE__ */ literal("warn")
1452
1409
  ]);
1453
1410
  isTypeTrue();
1454
- const LogLevelOptionSchema = union([LogLevelSchema, literal("silent")]);
1411
+ const LogLevelOptionSchema = /* @__PURE__ */ union([LogLevelSchema, /* @__PURE__ */ literal("silent")]);
1455
1412
  isTypeTrue();
1456
- const LogLevelWithErrorSchema = union([LogLevelSchema, literal("error")]);
1413
+ const LogLevelWithErrorSchema = /* @__PURE__ */ union([LogLevelSchema, /* @__PURE__ */ literal("error")]);
1457
1414
  isTypeTrue();
1458
- const RollupLogSchema = any();
1459
- const RollupLogWithStringSchema = union([RollupLogSchema, string()]);
1415
+ const RollupLogSchema = /* @__PURE__ */ any();
1416
+ const RollupLogWithStringSchema = /* @__PURE__ */ union([RollupLogSchema, /* @__PURE__ */ string()]);
1460
1417
  isTypeTrue();
1461
- const InputOptionSchema = union([
1462
- string(),
1463
- array(string()),
1464
- record(string(), string())
1418
+ const InputOptionSchema = /* @__PURE__ */ union([
1419
+ /* @__PURE__ */ string(),
1420
+ /* @__PURE__ */ array(/* @__PURE__ */ string()),
1421
+ /* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string())
1465
1422
  ]);
1466
1423
  isTypeTrue();
1467
- const ExternalOptionFunctionSchema = pipe(vFunction(), args(tuple([
1468
- string(),
1469
- optional(string()),
1470
- boolean()
1471
- ])), returns(nullish(boolean())));
1424
+ const ExternalOptionFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([
1425
+ /* @__PURE__ */ string(),
1426
+ /* @__PURE__ */ optional(/* @__PURE__ */ string()),
1427
+ /* @__PURE__ */ boolean()
1428
+ ])), /* @__PURE__ */ returns(/* @__PURE__ */ nullish(/* @__PURE__ */ boolean())));
1472
1429
  isTypeTrue();
1473
- const ExternalOptionSchema = union([
1430
+ const ExternalOptionSchema = /* @__PURE__ */ union([
1474
1431
  StringOrRegExpSchema,
1475
- array(StringOrRegExpSchema),
1432
+ /* @__PURE__ */ array(StringOrRegExpSchema),
1476
1433
  ExternalOptionFunctionSchema
1477
1434
  ]);
1478
1435
  isTypeTrue();
1479
- const ModuleTypesSchema = record(string(), union([
1480
- literal("asset"),
1481
- literal("base64"),
1482
- literal("binary"),
1483
- literal("copy"),
1484
- literal("css"),
1485
- literal("dataurl"),
1486
- literal("empty"),
1487
- literal("js"),
1488
- literal("json"),
1489
- literal("jsx"),
1490
- literal("text"),
1491
- literal("ts"),
1492
- literal("tsx")
1436
+ const ModuleTypesSchema = /* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ union([
1437
+ /* @__PURE__ */ literal("asset"),
1438
+ /* @__PURE__ */ literal("base64"),
1439
+ /* @__PURE__ */ literal("binary"),
1440
+ /* @__PURE__ */ literal("copy"),
1441
+ /* @__PURE__ */ literal("css"),
1442
+ /* @__PURE__ */ literal("dataurl"),
1443
+ /* @__PURE__ */ literal("empty"),
1444
+ /* @__PURE__ */ literal("js"),
1445
+ /* @__PURE__ */ literal("json"),
1446
+ /* @__PURE__ */ literal("jsx"),
1447
+ /* @__PURE__ */ literal("text"),
1448
+ /* @__PURE__ */ literal("ts"),
1449
+ /* @__PURE__ */ literal("tsx")
1493
1450
  ]));
1494
1451
  isTypeTrue();
1495
- const JsxOptionsSchema = strictObject({
1496
- runtime: pipe(optional(union([literal("classic"), literal("automatic")])), description("Which runtime to use")),
1497
- development: pipe(optional(boolean()), description("Development specific information")),
1498
- throwIfNamespace: pipe(optional(boolean()), description("Toggles whether to throw an error when a tag name uses an XML namespace")),
1499
- pure: pipe(optional(boolean()), description("Mark JSX elements and top-level React method calls as pure for tree shaking.")),
1500
- importSource: pipe(optional(string()), description("Import the factory of element and fragment if mode is classic")),
1501
- pragma: pipe(optional(string()), description("Jsx element transformation")),
1502
- pragmaFrag: pipe(optional(string()), description("Jsx fragment transformation")),
1503
- refresh: pipe(optional(union([boolean(), any()])), description("Enable react fast refresh"))
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"))
1504
1461
  });
1505
1462
  isTypeTrue();
1506
- const HelperModeSchema = union([literal("Runtime"), literal("External")]);
1507
- const DecoratorOptionSchema = object({
1508
- legacy: optional(boolean()),
1509
- emitDecoratorMetadata: optional(boolean())
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())
1510
1467
  });
1511
1468
  isTypeTrue();
1512
- const HelpersSchema = object({ mode: optional(HelperModeSchema) });
1469
+ const HelpersSchema = /* @__PURE__ */ object({ mode: /* @__PURE__ */ optional(HelperModeSchema) });
1513
1470
  isTypeTrue();
1514
- const RewriteImportExtensionsSchema = union([
1515
- literal("rewrite"),
1516
- literal("remove"),
1517
- boolean()
1518
- ]);
1519
- const TypescriptSchema = object({
1520
- jsxPragma: optional(string()),
1521
- jsxPragmaFrag: optional(string()),
1522
- onlyRemoveTypeImports: optional(boolean()),
1523
- allowNamespaces: optional(boolean()),
1524
- allowDeclareFields: optional(boolean()),
1525
- removeClassFieldsWithoutInitializer: optional(boolean()),
1526
- declaration: optional(object({
1527
- stripInternal: optional(boolean()),
1528
- sourcemap: optional(boolean())
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())
1529
1481
  })),
1530
- rewriteImportExtensions: optional(RewriteImportExtensionsSchema)
1482
+ rewriteImportExtensions: /* @__PURE__ */ optional(/* @__PURE__ */ union([
1483
+ /* @__PURE__ */ literal("rewrite"),
1484
+ /* @__PURE__ */ literal("remove"),
1485
+ /* @__PURE__ */ boolean()
1486
+ ]))
1531
1487
  });
1532
1488
  isTypeTrue();
1533
- const AssumptionsSchema = object({
1534
- ignoreFunctionLength: optional(boolean()),
1535
- noDocumentAll: optional(boolean()),
1536
- objectRestNoSymbols: optional(boolean()),
1537
- pureGetters: optional(boolean()),
1538
- setPublicClassFields: optional(boolean())
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())
1539
1495
  });
1540
1496
  isTypeTrue();
1541
- const TransformPluginsSchema = object({
1542
- styledComponents: optional(any()),
1543
- taggedTemplateEscape: optional(boolean())
1497
+ const TransformPluginsSchema = /* @__PURE__ */ object({
1498
+ styledComponents: /* @__PURE__ */ optional(/* @__PURE__ */ any()),
1499
+ taggedTemplateEscape: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1544
1500
  });
1545
1501
  isTypeTrue();
1546
- const TransformOptionsSchema = object({
1547
- assumptions: optional(AssumptionsSchema),
1548
- typescript: optional(TypescriptSchema),
1549
- helpers: optional(HelpersSchema),
1550
- decorator: optional(DecoratorOptionSchema),
1551
- jsx: optional(union([
1552
- literal(false),
1553
- literal("preserve"),
1554
- literal("react"),
1555
- literal("react-jsx"),
1502
+ const TransformOptionsSchema = /* @__PURE__ */ object({
1503
+ assumptions: /* @__PURE__ */ optional(AssumptionsSchema),
1504
+ typescript: /* @__PURE__ */ optional(TypescriptSchema),
1505
+ helpers: /* @__PURE__ */ optional(HelpersSchema),
1506
+ decorator: /* @__PURE__ */ optional(DecoratorOptionSchema),
1507
+ jsx: /* @__PURE__ */ optional(/* @__PURE__ */ union([
1508
+ /* @__PURE__ */ literal(false),
1509
+ /* @__PURE__ */ literal("preserve"),
1510
+ /* @__PURE__ */ literal("react"),
1511
+ /* @__PURE__ */ literal("react-jsx"),
1556
1512
  JsxOptionsSchema
1557
1513
  ])),
1558
- target: pipe(optional(union([string(), array(string())])), description("The JavaScript target environment")),
1559
- define: pipe(optional(record(string(), string())), description("Define global variables (syntax: key=value,key2=value2)")),
1560
- inject: pipe(optional(record(string(), union([string(), tuple([string(), string()])]))), description("Inject import statements on demand")),
1561
- dropLabels: pipe(optional(array(string())), description("Remove labeled statements with these label names")),
1562
- plugins: pipe(optional(TransformPluginsSchema), description("Third-party plugins to use"))
1514
+ 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)")),
1516
+ 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
+ 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"))
1563
1519
  });
1564
1520
  isTypeTrue();
1565
- const WatcherOptionsSchema = strictObject({
1566
- chokidar: optional(never(`The "watch.chokidar" option is deprecated, please use "watch.notify" instead of it`)),
1567
- exclude: optional(union([StringOrRegExpSchema, array(StringOrRegExpSchema)])),
1568
- include: optional(union([StringOrRegExpSchema, array(StringOrRegExpSchema)])),
1569
- notify: pipe(optional(strictObject({
1570
- compareContents: optional(boolean()),
1571
- pollInterval: optional(number())
1572
- })), description("Notify options")),
1573
- skipWrite: pipe(optional(boolean()), description("Skip the bundle.write() step")),
1574
- buildDelay: pipe(optional(number()), description("Throttle watch rebuilds")),
1575
- clearScreen: pipe(optional(boolean()), description("Whether to clear the screen when a rebuild is triggered")),
1576
- onInvalidate: pipe(optional(vFunction()), description("An optional function that will be called immediately every time a module changes that is part of the build."))
1521
+ const WatcherFileWatcherOptionsSchema = /* @__PURE__ */ strictObject({
1522
+ usePolling: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Use polling-based file watching instead of native OS events")),
1523
+ pollInterval: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ number()), /* @__PURE__ */ description("Poll interval in milliseconds (only used when usePolling is true)")),
1524
+ compareContentsForPolling: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Compare file contents for poll-based watchers (only used when usePolling is true)")),
1525
+ useDebounce: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Use debounced event delivery at the filesystem level")),
1526
+ debounceDelay: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ number()), /* @__PURE__ */ description("Debounce delay in milliseconds (only used when useDebounce is true)")),
1527
+ debounceTickRate: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ number()), /* @__PURE__ */ description("Tick rate in milliseconds for debouncer (only used when useDebounce is true)"))
1528
+ });
1529
+ const WatcherOptionsSchema = /* @__PURE__ */ strictObject({
1530
+ chokidar: /* @__PURE__ */ optional(/* @__PURE__ */ never(`The "watch.chokidar" option is deprecated, please use "watch.watcher" instead of it`)),
1531
+ exclude: /* @__PURE__ */ optional(/* @__PURE__ */ union([StringOrRegExpSchema, /* @__PURE__ */ array(StringOrRegExpSchema)])),
1532
+ include: /* @__PURE__ */ optional(/* @__PURE__ */ union([StringOrRegExpSchema, /* @__PURE__ */ array(StringOrRegExpSchema)])),
1533
+ watcher: /* @__PURE__ */ optional(WatcherFileWatcherOptionsSchema),
1534
+ notify: /* @__PURE__ */ optional(WatcherFileWatcherOptionsSchema),
1535
+ skipWrite: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Skip the bundle.write() step")),
1536
+ buildDelay: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ number()), /* @__PURE__ */ description("Throttle watch rebuilds")),
1537
+ clearScreen: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to clear the screen when a rebuild is triggered")),
1538
+ 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."))
1577
1539
  });
1578
1540
  isTypeTrue();
1579
- const ChecksOptionsSchema = strictObject({
1580
- circularDependency: pipe(optional(boolean()), description("Whether to emit warnings when detecting circular dependency")),
1581
- eval: pipe(optional(boolean()), description("Whether to emit warnings when detecting uses of direct `eval`s")),
1582
- missingGlobalName: pipe(optional(boolean()), description("Whether to emit warnings when the `output.globals` option is missing when needed")),
1583
- missingNameOptionForIifeExport: pipe(optional(boolean()), description("Whether to emit warnings when the `output.name` option is missing when needed")),
1584
- mixedExports: pipe(optional(boolean()), description("Whether to emit warnings when the way to export values is ambiguous")),
1585
- unresolvedEntry: pipe(optional(boolean()), description("Whether to emit warnings when an entrypoint cannot be resolved")),
1586
- unresolvedImport: pipe(optional(boolean()), description("Whether to emit warnings when an import cannot be resolved")),
1587
- filenameConflict: pipe(optional(boolean()), description("Whether to emit warnings when files generated have the same name with different contents")),
1588
- commonJsVariableInEsm: pipe(optional(boolean()), description("Whether to emit warnings when a CommonJS variable is used in an ES module")),
1589
- importIsUndefined: pipe(optional(boolean()), description("Whether to emit warnings when an imported variable is not exported")),
1590
- emptyImportMeta: pipe(optional(boolean()), description("Whether to emit warnings when `import.meta` is not supported with the output format and is replaced with an empty object (`{}`)")),
1591
- toleratedTransform: pipe(optional(boolean()), description("Whether to emit warnings when detecting tolerated transform")),
1592
- cannotCallNamespace: pipe(optional(boolean()), description("Whether to emit warnings when a namespace is called as a function")),
1593
- configurationFieldConflict: pipe(optional(boolean()), description("Whether to emit warnings when a config value is overridden by another config value with a higher priority")),
1594
- preferBuiltinFeature: pipe(optional(boolean()), description("Whether to emit warnings when a plugin that is covered by a built-in feature is used")),
1595
- couldNotCleanDirectory: pipe(optional(boolean()), description("Whether to emit warnings when Rolldown could not clean the output directory")),
1596
- pluginTimings: pipe(optional(boolean()), description("Whether to emit warnings when plugins take significant time during the build process")),
1597
- duplicateShebang: pipe(optional(boolean()), description("Whether to emit warnings when both the code and postBanner contain shebang")),
1598
- unsupportedTsconfigOption: pipe(optional(boolean()), description("Whether to emit warnings when a tsconfig option or combination of options is not supported")),
1599
- ineffectiveDynamicImport: pipe(optional(boolean()), description("Whether to emit warnings when a module is dynamically imported but also statically imported, making the dynamic import ineffective for code splitting"))
1541
+ const ChecksOptionsSchema = /* @__PURE__ */ strictObject({
1542
+ circularDependency: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when detecting circular dependency")),
1543
+ eval: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when detecting uses of direct `eval`s")),
1544
+ missingGlobalName: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when the `output.globals` option is missing when needed")),
1545
+ missingNameOptionForIifeExport: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when the `output.name` option is missing when needed")),
1546
+ mixedExports: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when the way to export values is ambiguous")),
1547
+ unresolvedEntry: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when an entrypoint cannot be resolved")),
1548
+ unresolvedImport: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when an import cannot be resolved")),
1549
+ filenameConflict: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when files generated have the same name with different contents")),
1550
+ commonJsVariableInEsm: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a CommonJS variable is used in an ES module")),
1551
+ importIsUndefined: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when an imported variable is not exported")),
1552
+ emptyImportMeta: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when `import.meta` is not supported with the output format and is replaced with an empty object (`{}`)")),
1553
+ toleratedTransform: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when detecting tolerated transform")),
1554
+ cannotCallNamespace: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a namespace is called as a function")),
1555
+ configurationFieldConflict: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a config value is overridden by another config value with a higher priority")),
1556
+ preferBuiltinFeature: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a plugin that is covered by a built-in feature is used")),
1557
+ couldNotCleanDirectory: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when Rolldown could not clean the output directory")),
1558
+ pluginTimings: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when plugins take significant time during the build process")),
1559
+ duplicateShebang: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when both the code and postBanner contain shebang")),
1560
+ unsupportedTsconfigOption: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a tsconfig option or combination of options is not supported")),
1561
+ ineffectiveDynamicImport: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a module is dynamically imported but also statically imported, making the dynamic import ineffective for code splitting"))
1600
1562
  });
1601
1563
  isTypeTrue();
1602
- const CompressOptionsKeepNamesSchema = strictObject({
1603
- function: boolean(),
1604
- class: boolean()
1564
+ const CompressOptionsKeepNamesSchema = /* @__PURE__ */ strictObject({
1565
+ function: /* @__PURE__ */ boolean(),
1566
+ class: /* @__PURE__ */ boolean()
1605
1567
  });
1606
1568
  isTypeTrue();
1607
- const CompressTreeshakeOptionsSchema = strictObject({
1608
- annotations: optional(boolean()),
1609
- manualPureFunctions: optional(array(string())),
1610
- propertyReadSideEffects: optional(union([boolean(), literal("always")])),
1611
- unknownGlobalSideEffects: optional(boolean()),
1612
- invalidImportSideEffects: optional(boolean())
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())
1613
1575
  });
1614
1576
  isTypeTrue();
1615
- const CompressOptionsSchema = strictObject({
1616
- target: optional(union([string(), array(string())])),
1617
- dropConsole: optional(boolean()),
1618
- dropDebugger: optional(boolean()),
1619
- keepNames: optional(CompressOptionsKeepNamesSchema),
1620
- unused: optional(union([boolean(), literal("keep_assign")])),
1621
- joinVars: optional(boolean()),
1622
- sequences: optional(boolean()),
1623
- dropLabels: optional(array(string())),
1624
- maxIterations: optional(number()),
1625
- treeshake: optional(CompressTreeshakeOptionsSchema)
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)
1626
1588
  });
1627
1589
  isTypeTrue();
1628
- const MangleOptionsKeepNamesSchema = strictObject({
1629
- function: boolean(),
1630
- class: boolean()
1590
+ const MangleOptionsKeepNamesSchema = /* @__PURE__ */ strictObject({
1591
+ function: /* @__PURE__ */ boolean(),
1592
+ class: /* @__PURE__ */ boolean()
1631
1593
  });
1632
1594
  isTypeTrue();
1633
- const MangleOptionsSchema = strictObject({
1634
- toplevel: optional(boolean()),
1635
- keepNames: optional(union([boolean(), MangleOptionsKeepNamesSchema])),
1636
- debug: optional(boolean())
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())
1637
1599
  });
1638
1600
  isTypeTrue();
1639
- const CodegenOptionsSchema = strictObject({ removeWhitespace: optional(boolean()) });
1601
+ const CodegenOptionsSchema = /* @__PURE__ */ strictObject({ removeWhitespace: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()) });
1640
1602
  isTypeTrue();
1641
- const MinifyOptionsSchema = strictObject({
1642
- compress: optional(union([boolean(), CompressOptionsSchema])),
1643
- mangle: optional(union([boolean(), MangleOptionsSchema])),
1644
- codegen: optional(union([boolean(), CodegenOptionsSchema]))
1603
+ 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]))
1645
1607
  });
1646
1608
  isTypeTrue();
1647
- const ResolveOptionsSchema = strictObject({
1648
- alias: optional(record(string(), union([
1649
- literal(false),
1650
- string(),
1651
- array(string())
1609
+ const ResolveOptionsSchema = /* @__PURE__ */ strictObject({
1610
+ alias: /* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ union([
1611
+ /* @__PURE__ */ literal(false),
1612
+ /* @__PURE__ */ string(),
1613
+ /* @__PURE__ */ array(/* @__PURE__ */ string())
1652
1614
  ]))),
1653
- aliasFields: optional(array(array(string()))),
1654
- conditionNames: optional(array(string())),
1655
- extensionAlias: optional(record(string(), array(string()))),
1656
- exportsFields: optional(array(array(string()))),
1657
- extensions: optional(array(string())),
1658
- mainFields: optional(array(string())),
1659
- mainFiles: optional(array(string())),
1660
- modules: optional(array(string())),
1661
- symlinks: optional(boolean()),
1662
- tsconfigFilename: optional(string())
1615
+ aliasFields: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ array(/* @__PURE__ */ string()))),
1616
+ conditionNames: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())),
1617
+ extensionAlias: /* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ array(/* @__PURE__ */ string()))),
1618
+ exportsFields: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ array(/* @__PURE__ */ string()))),
1619
+ extensions: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())),
1620
+ mainFields: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())),
1621
+ mainFiles: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())),
1622
+ modules: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())),
1623
+ symlinks: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1624
+ tsconfigFilename: /* @__PURE__ */ optional(/* @__PURE__ */ string())
1663
1625
  });
1664
1626
  isTypeTrue();
1665
- const TreeshakingOptionsSchema = strictObject({
1666
- moduleSideEffects: optional(any()),
1667
- annotations: optional(boolean()),
1668
- manualPureFunctions: optional(custom((input) => is(array(string()), input), "string array")),
1669
- unknownGlobalSideEffects: optional(boolean()),
1670
- invalidImportSideEffects: optional(boolean()),
1671
- commonjs: optional(boolean()),
1672
- propertyReadSideEffects: optional(union([literal(false), literal("always")])),
1673
- propertyWriteSideEffects: optional(union([literal(false), literal("always")]))
1627
+ const TreeshakingOptionsSchema = /* @__PURE__ */ strictObject({
1628
+ moduleSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ any()),
1629
+ annotations: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1630
+ manualPureFunctions: /* @__PURE__ */ optional(/* @__PURE__ */ custom((input) => /* @__PURE__ */ is(/* @__PURE__ */ array(/* @__PURE__ */ string()), input), "string array")),
1631
+ unknownGlobalSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1632
+ invalidImportSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1633
+ commonjs: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1634
+ propertyReadSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal(false), /* @__PURE__ */ literal("always")])),
1635
+ propertyWriteSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal(false), /* @__PURE__ */ literal("always")]))
1674
1636
  });
1675
1637
  isTypeTrue();
1676
- const OptimizationOptionsSchema = strictObject({
1677
- inlineConst: pipe(optional(union([boolean(), strictObject({
1678
- mode: optional(union([literal("all"), literal("smart")])),
1679
- pass: optional(number())
1680
- })])), description("Enable crossmodule constant inlining")),
1681
- pifeForModuleWrappers: pipe(optional(boolean()), description("Use PIFE pattern for module wrappers"))
1638
+ const OptimizationOptionsSchema = /* @__PURE__ */ strictObject({
1639
+ inlineConst: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
1640
+ mode: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("all"), /* @__PURE__ */ literal("smart")])),
1641
+ pass: /* @__PURE__ */ optional(/* @__PURE__ */ number())
1642
+ })])), /* @__PURE__ */ description("Enable crossmodule constant inlining")),
1643
+ pifeForModuleWrappers: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Use PIFE pattern for module wrappers"))
1682
1644
  });
1683
1645
  isTypeTrue();
1684
- const LogOrStringHandlerSchema = pipe(vFunction(), args(tuple([LogLevelWithErrorSchema, RollupLogWithStringSchema])));
1646
+ const LogOrStringHandlerSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([LogLevelWithErrorSchema, RollupLogWithStringSchema])));
1685
1647
  isTypeTrue();
1686
- const OnLogSchema = pipe(vFunction(), args(tuple([
1648
+ const OnLogSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([
1687
1649
  LogLevelSchema,
1688
1650
  RollupLogSchema,
1689
1651
  LogOrStringHandlerSchema
1690
1652
  ])));
1691
1653
  isTypeTrue();
1692
- const OnwarnSchema = pipe(vFunction(), args(tuple([RollupLogSchema, pipe(vFunction(), args(tuple([union([RollupLogWithStringSchema, pipe(vFunction(), returns(RollupLogWithStringSchema))])])))])));
1654
+ 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))])])))])));
1693
1655
  isTypeTrue();
1694
- const DevModeSchema = union([boolean(), strictObject({
1695
- port: optional(number()),
1696
- host: optional(string()),
1697
- implement: optional(string()),
1698
- lazy: optional(boolean())
1656
+ const DevModeSchema = /* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
1657
+ port: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
1658
+ host: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
1659
+ implement: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
1660
+ lazy: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1699
1661
  })]);
1700
1662
  isTypeTrue();
1701
- const InputOptionsSchema = strictObject({
1702
- input: optional(InputOptionSchema),
1703
- plugins: optional(custom(() => true)),
1704
- external: optional(ExternalOptionSchema),
1705
- makeAbsoluteExternalsRelative: optional(union([boolean(), literal("ifRelativeSource")])),
1706
- resolve: optional(ResolveOptionsSchema),
1707
- cwd: pipe(optional(string()), description("Current working directory")),
1708
- platform: pipe(optional(union([
1709
- literal("browser"),
1710
- literal("neutral"),
1711
- literal("node")
1712
- ])), description(`Platform for which the code should be generated (node, ${styleText$1("underline", "browser")}, neutral)`)),
1713
- shimMissingExports: pipe(optional(boolean()), description("Create shim variables for missing exports")),
1714
- treeshake: optional(union([boolean(), TreeshakingOptionsSchema])),
1715
- optimization: optional(OptimizationOptionsSchema),
1716
- logLevel: pipe(optional(LogLevelOptionSchema), description(`Log level (${styleText$1("dim", "silent")}, ${styleText$1(["underline", "gray"], "info")}, debug, ${styleText$1("yellow", "warn")})`)),
1717
- onLog: optional(OnLogSchema),
1718
- onwarn: optional(OnwarnSchema),
1719
- moduleTypes: pipe(optional(ModuleTypesSchema), description("Module types for customized extensions")),
1720
- experimental: optional(strictObject({
1721
- viteMode: optional(boolean()),
1722
- resolveNewUrlToAsset: optional(boolean()),
1723
- devMode: optional(DevModeSchema),
1724
- chunkModulesOrder: optional(union([literal("module-id"), literal("exec-order")])),
1725
- attachDebugInfo: optional(union([
1726
- literal("none"),
1727
- literal("simple"),
1728
- literal("full")
1663
+ const InputOptionsSchema = /* @__PURE__ */ strictObject({
1664
+ input: /* @__PURE__ */ optional(InputOptionSchema),
1665
+ plugins: /* @__PURE__ */ optional(/* @__PURE__ */ custom(() => true)),
1666
+ external: /* @__PURE__ */ optional(ExternalOptionSchema),
1667
+ makeAbsoluteExternalsRelative: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ literal("ifRelativeSource")])),
1668
+ resolve: /* @__PURE__ */ optional(ResolveOptionsSchema),
1669
+ cwd: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Current working directory")),
1670
+ platform: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([
1671
+ /* @__PURE__ */ literal("browser"),
1672
+ /* @__PURE__ */ literal("neutral"),
1673
+ /* @__PURE__ */ literal("node")
1674
+ ])), /* @__PURE__ */ description(`Platform for which the code should be generated (node, ${styleText$1("underline", "browser")}, neutral)`)),
1675
+ shimMissingExports: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Create shim variables for missing exports")),
1676
+ treeshake: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), TreeshakingOptionsSchema])),
1677
+ optimization: /* @__PURE__ */ optional(OptimizationOptionsSchema),
1678
+ logLevel: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(LogLevelOptionSchema), /* @__PURE__ */ description(`Log level (${styleText$1("dim", "silent")}, ${styleText$1(["underline", "gray"], "info")}, debug, ${styleText$1("yellow", "warn")})`)),
1679
+ onLog: /* @__PURE__ */ optional(OnLogSchema),
1680
+ onwarn: /* @__PURE__ */ optional(OnwarnSchema),
1681
+ moduleTypes: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(ModuleTypesSchema), /* @__PURE__ */ description("Module types for customized extensions")),
1682
+ experimental: /* @__PURE__ */ optional(/* @__PURE__ */ strictObject({
1683
+ viteMode: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1684
+ resolveNewUrlToAsset: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1685
+ devMode: /* @__PURE__ */ optional(DevModeSchema),
1686
+ chunkModulesOrder: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("module-id"), /* @__PURE__ */ literal("exec-order")])),
1687
+ attachDebugInfo: /* @__PURE__ */ optional(/* @__PURE__ */ union([
1688
+ /* @__PURE__ */ literal("none"),
1689
+ /* @__PURE__ */ literal("simple"),
1690
+ /* @__PURE__ */ literal("full")
1729
1691
  ])),
1730
- chunkImportMap: optional(union([boolean(), object({
1731
- baseUrl: optional(string()),
1732
- fileName: optional(string())
1692
+ chunkImportMap: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ object({
1693
+ baseUrl: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
1694
+ fileName: /* @__PURE__ */ optional(/* @__PURE__ */ string())
1733
1695
  })])),
1734
- onDemandWrapping: optional(boolean()),
1735
- incrementalBuild: optional(boolean()),
1736
- nativeMagicString: optional(boolean()),
1737
- chunkOptimization: optional(boolean()),
1738
- lazyBarrel: optional(boolean())
1696
+ onDemandWrapping: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1697
+ incrementalBuild: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1698
+ nativeMagicString: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1699
+ chunkOptimization: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1700
+ lazyBarrel: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1739
1701
  })),
1740
- transform: optional(TransformOptionsSchema),
1741
- watch: optional(union([WatcherOptionsSchema, literal(false)])),
1742
- checks: optional(ChecksOptionsSchema),
1743
- devtools: pipe(optional(object({ sessionId: pipe(optional(string()), description("Used to name the build.")) })), description("Enable debug mode. Emit debug information to disk. This might slow down the build process significantly.")),
1744
- preserveEntrySignatures: pipe(optional(union([
1745
- literal("strict"),
1746
- literal("allow-extension"),
1747
- literal("exports-only"),
1748
- literal(false)
1702
+ transform: /* @__PURE__ */ optional(TransformOptionsSchema),
1703
+ watch: /* @__PURE__ */ optional(/* @__PURE__ */ union([WatcherOptionsSchema, /* @__PURE__ */ literal(false)])),
1704
+ checks: /* @__PURE__ */ optional(ChecksOptionsSchema),
1705
+ devtools: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ object({ sessionId: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Used to name the build.")) })), /* @__PURE__ */ description("Enable debug mode. Emit debug information to disk. This might slow down the build process significantly.")),
1706
+ preserveEntrySignatures: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([
1707
+ /* @__PURE__ */ literal("strict"),
1708
+ /* @__PURE__ */ literal("allow-extension"),
1709
+ /* @__PURE__ */ literal("exports-only"),
1710
+ /* @__PURE__ */ literal(false)
1749
1711
  ]))),
1750
- context: pipe(optional(string()), description("The value of `this` at the top level of each module.")),
1751
- tsconfig: pipe(optional(union([boolean(), string()])), description("Path to the tsconfig.json file."))
1712
+ context: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("The value of `this` at the top level of each module.")),
1713
+ tsconfig: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ string()])), /* @__PURE__ */ description("Path to the tsconfig.json file."))
1752
1714
  });
1753
1715
  isTypeTrue();
1754
- const InputCliOverrideSchema = strictObject({
1755
- input: pipe(optional(array(string())), description("Entry file")),
1756
- external: pipe(optional(array(string())), description("Comma-separated list of module ids to exclude from the bundle `<module-id>,...`")),
1757
- treeshake: pipe(optional(boolean()), description("enable treeshaking")),
1758
- makeAbsoluteExternalsRelative: pipe(optional(boolean()), description("Prevent normalization of external imports")),
1759
- preserveEntrySignatures: pipe(optional(literal(false)), description("Avoid facade chunks for entry points")),
1760
- context: pipe(optional(string()), description("The entity top-level `this` represents."))
1716
+ const InputCliOverrideSchema = /* @__PURE__ */ strictObject({
1717
+ input: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())), /* @__PURE__ */ description("Entry file")),
1718
+ external: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())), /* @__PURE__ */ description("Comma-separated list of module ids to exclude from the bundle `<module-id>,...`")),
1719
+ treeshake: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("enable treeshaking")),
1720
+ makeAbsoluteExternalsRelative: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Prevent normalization of external imports")),
1721
+ preserveEntrySignatures: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ literal(false)), /* @__PURE__ */ description("Avoid facade chunks for entry points")),
1722
+ context: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("The entity top-level `this` represents."))
1761
1723
  });
1762
- const InputCliOptionsSchema = omit(strictObject({
1724
+ const InputCliOptionsSchema = /* @__PURE__ */ omit(/* @__PURE__ */ strictObject({
1763
1725
  ...InputOptionsSchema.entries,
1764
1726
  ...InputCliOverrideSchema.entries
1765
1727
  }), [
@@ -1770,171 +1732,172 @@ const InputCliOptionsSchema = omit(strictObject({
1770
1732
  "experimental",
1771
1733
  "watch"
1772
1734
  ]);
1773
- const ModuleFormatSchema = union([
1774
- literal("es"),
1775
- literal("cjs"),
1776
- literal("esm"),
1777
- literal("module"),
1778
- literal("commonjs"),
1779
- literal("iife"),
1780
- literal("umd")
1735
+ const ModuleFormatSchema = /* @__PURE__ */ union([
1736
+ /* @__PURE__ */ literal("es"),
1737
+ /* @__PURE__ */ literal("cjs"),
1738
+ /* @__PURE__ */ literal("esm"),
1739
+ /* @__PURE__ */ literal("module"),
1740
+ /* @__PURE__ */ literal("commonjs"),
1741
+ /* @__PURE__ */ literal("iife"),
1742
+ /* @__PURE__ */ literal("umd")
1781
1743
  ]);
1782
1744
  isTypeTrue();
1783
- const AddonFunctionSchema = pipe(vFunction(), args(tuple([custom(() => true)])), returnsAsync(unionAsync([string(), pipeAsync(promise(), awaitAsync(), string())])));
1745
+ 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())])));
1784
1746
  isTypeTrue();
1785
- const ChunkFileNamesFunctionSchema = pipe(vFunction(), args(tuple([custom(() => true)])), returns(string()));
1747
+ const ChunkFileNamesFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ custom(() => true)])), /* @__PURE__ */ returns(/* @__PURE__ */ string()));
1786
1748
  isTypeTrue();
1787
- const ChunkFileNamesSchema = union([string(), ChunkFileNamesFunctionSchema]);
1788
- const AssetFileNamesFunctionSchema = pipe(vFunction(), args(tuple([custom(() => true)])), returns(string()));
1749
+ const ChunkFileNamesSchema = /* @__PURE__ */ union([/* @__PURE__ */ string(), ChunkFileNamesFunctionSchema]);
1750
+ const AssetFileNamesFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ custom(() => true)])), /* @__PURE__ */ returns(/* @__PURE__ */ string()));
1789
1751
  isTypeTrue();
1790
- const AssetFileNamesSchema = union([string(), AssetFileNamesFunctionSchema]);
1791
- const SanitizeFileNameFunctionSchema = pipe(vFunction(), args(tuple([string()])), returns(string()));
1752
+ const AssetFileNamesSchema = /* @__PURE__ */ union([/* @__PURE__ */ string(), AssetFileNamesFunctionSchema]);
1753
+ const SanitizeFileNameFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string()])), /* @__PURE__ */ returns(/* @__PURE__ */ string()));
1792
1754
  isTypeTrue();
1793
- const SanitizeFileNameSchema = union([boolean(), SanitizeFileNameFunctionSchema]);
1794
- const GlobalsFunctionSchema = pipe(vFunction(), args(tuple([string()])), returns(string()));
1755
+ const SanitizeFileNameSchema = /* @__PURE__ */ union([/* @__PURE__ */ boolean(), SanitizeFileNameFunctionSchema]);
1756
+ const GlobalsFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string()])), /* @__PURE__ */ returns(/* @__PURE__ */ string()));
1795
1757
  isTypeTrue();
1796
- const PathsFunctionSchema = pipe(vFunction(), args(tuple([string()])), returns(string()));
1758
+ const PathsFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string()])), /* @__PURE__ */ returns(/* @__PURE__ */ string()));
1797
1759
  isTypeTrue();
1798
- const ManualChunksFunctionSchema = pipe(vFunction(), args(tuple([string(), object({})])), returns(nullish(string())));
1760
+ const ManualChunksFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string(), /* @__PURE__ */ object({})])), /* @__PURE__ */ returns(/* @__PURE__ */ nullish(/* @__PURE__ */ string())));
1799
1761
  isTypeTrue();
1800
- const AdvancedChunksNameFunctionSchema = pipe(vFunction(), args(tuple([string(), object({})])), returns(nullish(string())));
1762
+ const AdvancedChunksNameFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string(), /* @__PURE__ */ object({})])), /* @__PURE__ */ returns(/* @__PURE__ */ nullish(/* @__PURE__ */ string())));
1801
1763
  isTypeTrue();
1802
- const AdvancedChunksTestFunctionSchema = pipe(vFunction(), args(tuple([string()])), returns(union([
1803
- boolean(),
1804
- void_(),
1805
- undefined_()
1764
+ const AdvancedChunksTestFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string()])), /* @__PURE__ */ returns(/* @__PURE__ */ union([
1765
+ /* @__PURE__ */ boolean(),
1766
+ /* @__PURE__ */ void_(),
1767
+ /* @__PURE__ */ undefined_()
1806
1768
  ])));
1807
1769
  isTypeTrue();
1808
- const AdvancedChunksSchema = strictObject({
1809
- includeDependenciesRecursively: optional(boolean()),
1810
- minSize: optional(number()),
1811
- maxSize: optional(number()),
1812
- minModuleSize: optional(number()),
1813
- maxModuleSize: optional(number()),
1814
- minShareCount: optional(number()),
1815
- groups: optional(array(strictObject({
1816
- name: union([string(), AdvancedChunksNameFunctionSchema]),
1817
- test: optional(union([StringOrRegExpSchema, AdvancedChunksTestFunctionSchema])),
1818
- priority: optional(number()),
1819
- minSize: optional(number()),
1820
- minShareCount: optional(number()),
1821
- maxSize: optional(number()),
1822
- minModuleSize: optional(number()),
1823
- maxModuleSize: optional(number()),
1824
- entriesAware: optional(boolean()),
1825
- entriesAwareMergeThreshold: optional(number())
1770
+ const AdvancedChunksSchema = /* @__PURE__ */ strictObject({
1771
+ includeDependenciesRecursively: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1772
+ minSize: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
1773
+ maxSize: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
1774
+ minModuleSize: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
1775
+ maxModuleSize: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
1776
+ minShareCount: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
1777
+ groups: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ strictObject({
1778
+ name: /* @__PURE__ */ union([/* @__PURE__ */ string(), AdvancedChunksNameFunctionSchema]),
1779
+ test: /* @__PURE__ */ optional(/* @__PURE__ */ union([StringOrRegExpSchema, AdvancedChunksTestFunctionSchema])),
1780
+ priority: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
1781
+ minSize: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
1782
+ minShareCount: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
1783
+ maxSize: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
1784
+ minModuleSize: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
1785
+ maxModuleSize: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
1786
+ entriesAware: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1787
+ entriesAwareMergeThreshold: /* @__PURE__ */ optional(/* @__PURE__ */ number())
1826
1788
  })))
1827
1789
  });
1828
1790
  isTypeTrue();
1829
- const GeneratedCodePresetSchema = union([literal("es5"), literal("es2015")]);
1791
+ const GeneratedCodePresetSchema = /* @__PURE__ */ union([/* @__PURE__ */ literal("es5"), /* @__PURE__ */ literal("es2015")]);
1830
1792
  isTypeTrue();
1831
- const GeneratedCodeOptionsSchema = strictObject({
1832
- symbols: pipe(optional(boolean()), description("Whether to use Symbol.toStringTag for namespace objects")),
1833
- preset: optional(GeneratedCodePresetSchema),
1834
- profilerNames: pipe(optional(boolean()), description("Whether to add readable names to internal variables for profiling purposes"))
1793
+ const GeneratedCodeOptionsSchema = /* @__PURE__ */ strictObject({
1794
+ symbols: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to use Symbol.toStringTag for namespace objects")),
1795
+ preset: /* @__PURE__ */ optional(GeneratedCodePresetSchema),
1796
+ profilerNames: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to add readable names to internal variables for profiling purposes"))
1835
1797
  });
1836
1798
  isTypeTrue();
1837
- const OutputOptionsSchema = strictObject({
1838
- dir: pipe(optional(string()), description("Output directory, defaults to `dist` if `file` is not set")),
1839
- file: pipe(optional(string()), description("Single output file")),
1840
- exports: pipe(optional(union([
1841
- literal("auto"),
1842
- literal("named"),
1843
- literal("default"),
1844
- literal("none")
1845
- ])), description(`Specify a export mode (${styleText$1("underline", "auto")}, named, default, none)`)),
1846
- hashCharacters: pipe(optional(union([
1847
- literal("base64"),
1848
- literal("base36"),
1849
- literal("hex")
1850
- ])), description("Use the specified character set for file hashes")),
1851
- format: pipe(optional(ModuleFormatSchema), description(`Output format of the generated bundle (supports ${styleText$1("underline", "esm")}, cjs, and iife)`)),
1852
- sourcemap: pipe(optional(union([
1853
- boolean(),
1854
- literal("inline"),
1855
- literal("hidden")
1856
- ])), description(`Generate sourcemap (\`-s inline\` for inline, or ${styleText$1("bold", "pass the `-s` on the last argument if you want to generate `.map` file")})`)),
1857
- sourcemapBaseUrl: pipe(optional(string()), description("Base URL used to prefix sourcemap paths")),
1858
- sourcemapDebugIds: pipe(optional(boolean()), description("Inject sourcemap debug IDs")),
1859
- sourcemapIgnoreList: optional(union([
1860
- boolean(),
1861
- custom(() => true),
1799
+ const OutputOptionsSchema = /* @__PURE__ */ strictObject({
1800
+ dir: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Output directory, defaults to `dist` if `file` is not set")),
1801
+ file: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Single output file")),
1802
+ exports: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([
1803
+ /* @__PURE__ */ literal("auto"),
1804
+ /* @__PURE__ */ literal("named"),
1805
+ /* @__PURE__ */ literal("default"),
1806
+ /* @__PURE__ */ literal("none")
1807
+ ])), /* @__PURE__ */ description(`Specify a export mode (${styleText$1("underline", "auto")}, named, default, none)`)),
1808
+ hashCharacters: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([
1809
+ /* @__PURE__ */ literal("base64"),
1810
+ /* @__PURE__ */ literal("base36"),
1811
+ /* @__PURE__ */ literal("hex")
1812
+ ])), /* @__PURE__ */ description("Use the specified character set for file hashes")),
1813
+ format: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(ModuleFormatSchema), /* @__PURE__ */ description(`Output format of the generated bundle (supports ${styleText$1("underline", "esm")}, cjs, and iife)`)),
1814
+ sourcemap: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([
1815
+ /* @__PURE__ */ boolean(),
1816
+ /* @__PURE__ */ literal("inline"),
1817
+ /* @__PURE__ */ literal("hidden")
1818
+ ])), /* @__PURE__ */ description(`Generate sourcemap (\`-s inline\` for inline, or \`-s\` for \`.map\` file)`)),
1819
+ sourcemapBaseUrl: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Base URL used to prefix sourcemap paths")),
1820
+ sourcemapDebugIds: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Inject sourcemap debug IDs")),
1821
+ sourcemapIgnoreList: /* @__PURE__ */ optional(/* @__PURE__ */ union([
1822
+ /* @__PURE__ */ boolean(),
1823
+ /* @__PURE__ */ custom(() => true),
1862
1824
  StringOrRegExpSchema
1863
1825
  ])),
1864
- sourcemapPathTransform: optional(custom(() => true)),
1865
- banner: optional(union([string(), AddonFunctionSchema])),
1866
- footer: optional(union([string(), AddonFunctionSchema])),
1867
- postBanner: optional(union([string(), AddonFunctionSchema])),
1868
- postFooter: optional(union([string(), AddonFunctionSchema])),
1869
- intro: optional(union([string(), AddonFunctionSchema])),
1870
- outro: optional(union([string(), AddonFunctionSchema])),
1871
- extend: pipe(optional(boolean()), description("Extend global variable defined by name in IIFE / UMD formats")),
1872
- esModule: optional(union([boolean(), literal("if-default-prop")])),
1873
- assetFileNames: optional(AssetFileNamesSchema),
1874
- entryFileNames: optional(ChunkFileNamesSchema),
1875
- chunkFileNames: optional(ChunkFileNamesSchema),
1876
- sanitizeFileName: optional(SanitizeFileNameSchema),
1877
- minify: pipe(optional(union([
1878
- boolean(),
1879
- literal("dce-only"),
1826
+ sourcemapPathTransform: /* @__PURE__ */ optional(/* @__PURE__ */ custom(() => true)),
1827
+ banner: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ string(), AddonFunctionSchema])),
1828
+ footer: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ string(), AddonFunctionSchema])),
1829
+ postBanner: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ string(), AddonFunctionSchema])),
1830
+ postFooter: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ string(), AddonFunctionSchema])),
1831
+ intro: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ string(), AddonFunctionSchema])),
1832
+ outro: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ string(), AddonFunctionSchema])),
1833
+ extend: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Extend global variable defined by name in IIFE / UMD formats")),
1834
+ esModule: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ literal("if-default-prop")])),
1835
+ assetFileNames: /* @__PURE__ */ optional(AssetFileNamesSchema),
1836
+ entryFileNames: /* @__PURE__ */ optional(ChunkFileNamesSchema),
1837
+ chunkFileNames: /* @__PURE__ */ optional(ChunkFileNamesSchema),
1838
+ sanitizeFileName: /* @__PURE__ */ optional(SanitizeFileNameSchema),
1839
+ minify: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([
1840
+ /* @__PURE__ */ boolean(),
1841
+ /* @__PURE__ */ literal("dce-only"),
1880
1842
  MinifyOptionsSchema
1881
- ])), description("Minify the bundled file")),
1882
- name: pipe(optional(string()), description("Name for UMD / IIFE format outputs")),
1883
- globals: pipe(optional(union([record(string(), string()), GlobalsFunctionSchema])), description("Global variable of UMD / IIFE dependencies (syntax: `key=value`)")),
1884
- paths: pipe(optional(union([record(string(), string()), PathsFunctionSchema])), description("Maps external module IDs to paths")),
1885
- generatedCode: pipe(optional(partial(GeneratedCodeOptionsSchema)), description("Generated code options")),
1886
- externalLiveBindings: pipe(optional(boolean()), description("external live bindings")),
1887
- inlineDynamicImports: pipe(optional(boolean()), description("Inline dynamic imports")),
1888
- dynamicImportInCjs: pipe(optional(boolean()), description("Dynamic import in CJS output")),
1889
- manualChunks: optional(ManualChunksFunctionSchema),
1890
- codeSplitting: optional(union([boolean(), AdvancedChunksSchema])),
1891
- advancedChunks: optional(AdvancedChunksSchema),
1892
- legalComments: pipe(optional(union([literal("none"), literal("inline")])), description("Control legal comments in the output")),
1893
- comments: pipe(optional(union([boolean(), strictObject({
1894
- legal: optional(boolean()),
1895
- annotation: optional(boolean()),
1896
- jsdoc: optional(boolean())
1897
- })])), description("Control comments in the output")),
1898
- plugins: optional(custom(() => true)),
1899
- polyfillRequire: pipe(optional(boolean()), description("Disable require polyfill injection")),
1900
- hoistTransitiveImports: optional(literal(false)),
1901
- preserveModules: pipe(optional(boolean()), description("Preserve module structure")),
1902
- preserveModulesRoot: pipe(optional(string()), description("Put preserved modules under this path at root level")),
1903
- virtualDirname: optional(string()),
1904
- minifyInternalExports: pipe(optional(boolean()), description("Minify internal exports")),
1905
- topLevelVar: pipe(optional(boolean()), description("Rewrite top-level declarations to use `var`.")),
1906
- cleanDir: pipe(optional(boolean()), description("Clean output directory before emitting output")),
1907
- keepNames: pipe(optional(boolean()), description("Keep function and class names after bundling")),
1908
- strictExecutionOrder: pipe(optional(boolean()), description("Lets modules be executed in the order they are declared."))
1843
+ ])), /* @__PURE__ */ description("Minify the bundled file")),
1844
+ 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`)")),
1846
+ paths: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string()), PathsFunctionSchema])), /* @__PURE__ */ description("Maps external module IDs to paths")),
1847
+ generatedCode: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ partial(GeneratedCodeOptionsSchema)), /* @__PURE__ */ description("Generated code options")),
1848
+ externalLiveBindings: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("external live bindings")),
1849
+ inlineDynamicImports: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Inline dynamic imports")),
1850
+ dynamicImportInCjs: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Dynamic import in CJS output")),
1851
+ manualChunks: /* @__PURE__ */ optional(ManualChunksFunctionSchema),
1852
+ codeSplitting: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), AdvancedChunksSchema])),
1853
+ advancedChunks: /* @__PURE__ */ optional(AdvancedChunksSchema),
1854
+ legalComments: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("none"), /* @__PURE__ */ literal("inline")])), /* @__PURE__ */ description("Control legal comments in the output")),
1855
+ comments: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
1856
+ legal: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1857
+ annotation: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1858
+ jsdoc: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1859
+ })])), /* @__PURE__ */ description("Control comments in the output")),
1860
+ plugins: /* @__PURE__ */ optional(/* @__PURE__ */ custom(() => true)),
1861
+ polyfillRequire: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Disable require polyfill injection")),
1862
+ hoistTransitiveImports: /* @__PURE__ */ optional(/* @__PURE__ */ literal(false)),
1863
+ preserveModules: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Preserve module structure")),
1864
+ preserveModulesRoot: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Put preserved modules under this path at root level")),
1865
+ virtualDirname: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
1866
+ minifyInternalExports: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Minify internal exports")),
1867
+ topLevelVar: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Rewrite top-level declarations to use `var`.")),
1868
+ cleanDir: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Clean output directory before emitting output")),
1869
+ keepNames: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Keep function and class names after bundling")),
1870
+ strictExecutionOrder: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Lets modules be executed in the order they are declared.")),
1871
+ 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."))
1909
1872
  });
1910
1873
  isTypeTrue();
1911
1874
  const getAddonDescription = (placement, wrapper) => {
1912
1875
  return `Code to insert the ${styleText$1("bold", placement)} of the bundled file (${styleText$1("bold", wrapper)} the wrapper function)`;
1913
1876
  };
1914
- const OutputCliOverrideSchema = strictObject({
1915
- assetFileNames: pipe(optional(string()), description("Name pattern for asset files")),
1916
- entryFileNames: pipe(optional(string()), description("Name pattern for emitted entry chunks")),
1917
- chunkFileNames: pipe(optional(string()), description("Name pattern for emitted secondary chunks")),
1918
- sanitizeFileName: pipe(optional(boolean()), description("Sanitize file name")),
1919
- banner: pipe(optional(string()), description(getAddonDescription("top", "outside"))),
1920
- footer: pipe(optional(string()), description(getAddonDescription("bottom", "outside"))),
1921
- postBanner: pipe(optional(string()), description("A string to prepend to the top of each chunk. Applied after the `renderChunk` hook and minification")),
1922
- postFooter: pipe(optional(string()), description("A string to append to the bottom of each chunk. Applied after the `renderChunk` hook and minification")),
1923
- intro: pipe(optional(string()), description(getAddonDescription("top", "inside"))),
1924
- outro: pipe(optional(string()), description(getAddonDescription("bottom", "inside"))),
1925
- esModule: pipe(optional(boolean()), description("Always generate `__esModule` marks in non-ESM formats, defaults to `if-default-prop` (use `--no-esModule` to always disable)")),
1926
- globals: pipe(optional(record(string(), string())), description("Global variable of UMD / IIFE dependencies (syntax: `key=value`)")),
1927
- codeSplitting: pipe(optional(union([boolean(), strictObject({
1928
- minSize: pipe(optional(number()), description("Minimum size of the chunk")),
1929
- minShareCount: pipe(optional(number()), description("Minimum share count of the chunk"))
1930
- })])), description("Code splitting options (true, false, or object)")),
1931
- advancedChunks: pipe(optional(strictObject({
1932
- minSize: pipe(optional(number()), description("Minimum size of the chunk")),
1933
- minShareCount: pipe(optional(number()), description("Minimum share count of the chunk"))
1934
- })), description("Deprecated: use codeSplitting instead")),
1935
- minify: pipe(optional(boolean()), description("Minify the bundled file"))
1877
+ const OutputCliOverrideSchema = /* @__PURE__ */ strictObject({
1878
+ assetFileNames: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Name pattern for asset files")),
1879
+ entryFileNames: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Name pattern for emitted entry chunks")),
1880
+ chunkFileNames: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Name pattern for emitted secondary chunks")),
1881
+ sanitizeFileName: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Sanitize file name")),
1882
+ banner: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description(getAddonDescription("top", "outside"))),
1883
+ footer: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description(getAddonDescription("bottom", "outside"))),
1884
+ postBanner: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("A string to prepend to the top of each chunk. Applied after the `renderChunk` hook and minification")),
1885
+ postFooter: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("A string to append to the bottom of each chunk. Applied after the `renderChunk` hook and minification")),
1886
+ intro: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description(getAddonDescription("top", "inside"))),
1887
+ outro: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description(getAddonDescription("bottom", "inside"))),
1888
+ 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`)")),
1890
+ codeSplitting: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
1891
+ minSize: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ number()), /* @__PURE__ */ description("Minimum size of the chunk")),
1892
+ minShareCount: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ number()), /* @__PURE__ */ description("Minimum share count of the chunk"))
1893
+ })])), /* @__PURE__ */ description("Code splitting options (true, false, or object)")),
1894
+ advancedChunks: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ strictObject({
1895
+ minSize: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ number()), /* @__PURE__ */ description("Minimum size of the chunk")),
1896
+ minShareCount: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ number()), /* @__PURE__ */ description("Minimum share count of the chunk"))
1897
+ })), /* @__PURE__ */ description("Deprecated: use codeSplitting instead")),
1898
+ minify: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Minify the bundled file"))
1936
1899
  });
1937
- const OutputCliOptionsSchema = omit(strictObject({
1900
+ const OutputCliOptionsSchema = /* @__PURE__ */ omit(/* @__PURE__ */ strictObject({
1938
1901
  ...OutputOptionsSchema.entries,
1939
1902
  ...OutputCliOverrideSchema.entries
1940
1903
  }), [
@@ -1943,17 +1906,17 @@ const OutputCliOptionsSchema = omit(strictObject({
1943
1906
  "plugins",
1944
1907
  "hoistTransitiveImports"
1945
1908
  ]);
1946
- const CliOptionsSchema = strictObject({
1947
- config: pipe(optional(union([string(), boolean()])), description("Path to the config file (default: `rolldown.config.js`)")),
1948
- help: pipe(optional(boolean()), description("Show help")),
1949
- environment: pipe(optional(union([string(), array(string())])), description("Pass additional settings to the config file via process.ENV.")),
1950
- version: pipe(optional(boolean()), description("Show version number")),
1951
- watch: pipe(optional(boolean()), description("Watch files in bundle and rebuild on changes")),
1909
+ const CliOptionsSchema = /* @__PURE__ */ strictObject({
1910
+ config: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ boolean()])), /* @__PURE__ */ description("Path to the config file (default: `rolldown.config.js`)")),
1911
+ help: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Show help")),
1912
+ environment: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ array(/* @__PURE__ */ string())])), /* @__PURE__ */ description("Pass additional settings to the config file via process.ENV.")),
1913
+ version: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Show version number")),
1914
+ watch: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Watch files in bundle and rebuild on changes")),
1952
1915
  ...InputCliOptionsSchema.entries,
1953
1916
  ...OutputCliOptionsSchema.entries
1954
1917
  });
1955
1918
  function validateCliOptions(options) {
1956
- let parsed = safeParse(CliOptionsSchema, options);
1919
+ let parsed = /* @__PURE__ */ safeParse(CliOptionsSchema, options);
1957
1920
  return [parsed.output, parsed.issues?.map((issue) => {
1958
1921
  return `Invalid value for option ${issue.path?.map((pathItem) => pathItem.key).join(" ")}: ${issue.message}`;
1959
1922
  })];
@@ -1966,7 +1929,7 @@ const outputHelperMsgRecord = {};
1966
1929
  function validateOption(key, options) {
1967
1930
  if (typeof options !== "object") throw new Error(`Invalid ${key} options. Expected an Object but received ${JSON.stringify(options)}.`);
1968
1931
  if (globalThis.process?.env?.ROLLUP_TEST) return;
1969
- let parsed = safeParse(key === "input" ? InputOptionsSchema : OutputOptionsSchema, options);
1932
+ let parsed = /* @__PURE__ */ safeParse(key === "input" ? InputOptionsSchema : OutputOptionsSchema, options);
1970
1933
  if (!parsed.success) {
1971
1934
  const errors = parsed.issues.map((issue) => {
1972
1935
  let issueMsg = issue.message;
@@ -1987,15 +1950,14 @@ function validateOption(key, options) {
1987
1950
  }
1988
1951
  }
1989
1952
  function getInputCliKeys() {
1990
- return keyof(InputCliOptionsSchema).options;
1953
+ return (/* @__PURE__ */ keyof(InputCliOptionsSchema)).options;
1991
1954
  }
1992
1955
  function getOutputCliKeys() {
1993
- return keyof(OutputCliOptionsSchema).options;
1956
+ return (/* @__PURE__ */ keyof(OutputCliOptionsSchema)).options;
1994
1957
  }
1995
1958
  function getCliSchemaInfo() {
1996
1959
  return flattenValibotSchema(CliOptionsSchema);
1997
1960
  }
1998
-
1999
1961
  //#endregion
2000
1962
  //#region src/types/rolldown-output-impl.ts
2001
1963
  var RolldownOutputImpl = class extends PlainObjectLike {
@@ -2019,7 +1981,6 @@ var RolldownOutputImpl = class extends PlainObjectLike {
2019
1981
  }
2020
1982
  };
2021
1983
  __decorate([lazyProp], RolldownOutputImpl.prototype, "output", null);
2022
-
2023
1984
  //#endregion
2024
1985
  //#region src/types/chunking-context.ts
2025
1986
  var ChunkingContextImpl = class {
@@ -2035,7 +1996,6 @@ var ChunkingContextImpl = class {
2035
1996
  return null;
2036
1997
  }
2037
1998
  };
2038
-
2039
1999
  //#endregion
2040
2000
  //#region ../../../node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/core.mjs
2041
2001
  const LogLevels = {
@@ -2421,7 +2381,6 @@ Consola.prototype.resume = Consola.prototype.resumeLogs;
2421
2381
  function createConsola$1(options = {}) {
2422
2382
  return new Consola(options);
2423
2383
  }
2424
-
2425
2384
  //#endregion
2426
2385
  //#region ../../../node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs
2427
2386
  function parseStack(stack, message) {
@@ -2481,7 +2440,6 @@ ${indent}`);
2481
2440
  }) + "\n", logObj.level < 2 ? ctx.options.stderr || process.stderr : ctx.options.stdout || process.stdout);
2482
2441
  }
2483
2442
  };
2484
-
2485
2443
  //#endregion
2486
2444
  //#region ../../../node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs
2487
2445
  const { env = {}, argv = [], platform = "" } = typeof process === "undefined" ? {} : process;
@@ -2670,7 +2628,6 @@ function box(text, _opts = {}) {
2670
2628
  if (opts.style.marginBottom > 0) boxLines.push("".repeat(opts.style.marginBottom));
2671
2629
  return boxLines.join("\n");
2672
2630
  }
2673
-
2674
2631
  //#endregion
2675
2632
  //#region ../../../node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/index.mjs
2676
2633
  const r = Object.create(null), i = (e) => globalThis.process?.env || import.meta.env || globalThis.Deno?.env.toObject() || globalThis.__env__ || (e ? r : globalThis), o = new Proxy(r, {
@@ -2975,7 +2932,7 @@ function createConsola(options = {}) {
2975
2932
  defaults: { level },
2976
2933
  stdout: process.stdout,
2977
2934
  stderr: process.stderr,
2978
- prompt: (...args) => import("./prompt-CmNr0AI-.mjs").then((m) => m.prompt(...args)),
2935
+ prompt: (...args) => import("./prompt-DZIXsnf9.mjs").then((m) => m.prompt(...args)),
2979
2936
  reporters: options.reporters || [options.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()],
2980
2937
  ...options
2981
2938
  });
@@ -2985,8 +2942,7 @@ function _getDefaultLogLevel() {
2985
2942
  if (R) return LogLevels.warn;
2986
2943
  return LogLevels.info;
2987
2944
  }
2988
- const consola = createConsola();
2989
-
2945
+ createConsola();
2990
2946
  //#endregion
2991
2947
  //#region src/cli/logger.ts
2992
2948
  /**
@@ -3014,7 +2970,6 @@ function createTestingLogger() {
3014
2970
  for (const type of types) ret[type] = (...args) => console.log(...args);
3015
2971
  return ret;
3016
2972
  }
3017
-
3018
2973
  //#endregion
3019
2974
  //#region src/utils/bindingify-output-options.ts
3020
2975
  function bindingifyOutputOptions(outputOptions) {
@@ -3063,7 +3018,8 @@ function bindingifyOutputOptions(outputOptions) {
3063
3018
  topLevelVar,
3064
3019
  minifyInternalExports: outputOptions.minifyInternalExports,
3065
3020
  cleanDir,
3066
- strictExecutionOrder
3021
+ strictExecutionOrder,
3022
+ strict: outputOptions.strict
3067
3023
  };
3068
3024
  }
3069
3025
  function bindingifyAddon(configAddon) {
@@ -3164,7 +3120,6 @@ function bindingifyCodeSplitting(codeSplitting, inlineDynamicImportsOption, adva
3164
3120
  advancedChunks: advancedChunksResult
3165
3121
  };
3166
3122
  }
3167
-
3168
3123
  //#endregion
3169
3124
  //#region src/utils/initialize-parallel-plugins.ts
3170
3125
  var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
@@ -3227,23 +3182,24 @@ const availableParallelism = () => {
3227
3182
  }
3228
3183
  return Math.min(availableParallelism, 8);
3229
3184
  };
3230
-
3231
3185
  //#endregion
3232
3186
  //#region src/utils/create-bundler-option.ts
3233
3187
  async function createBundlerOptions(inputOptions, outputOptions, watchMode) {
3234
3188
  const inputPlugins = await normalizePluginOption(inputOptions.plugins);
3235
3189
  const outputPlugins = await normalizePluginOption(outputOptions.plugins);
3236
- const logLevel = inputOptions.logLevel || LOG_LEVEL_INFO;
3190
+ const logLevel = inputOptions.logLevel || "info";
3237
3191
  const onLog = getLogger(getObjectPlugins(inputPlugins), getOnLog(inputOptions, logLevel), logLevel, watchMode);
3238
3192
  outputOptions = PluginDriver.callOutputOptionsHook([...inputPlugins, ...outputPlugins], outputOptions, onLog, logLevel, watchMode);
3239
- const normalizedOutputPlugins = await normalizePluginOption(outputOptions.plugins);
3240
- let plugins = [...normalizePlugins(inputPlugins, ANONYMOUS_PLUGIN_PREFIX), ...checkOutputPluginOption(normalizePlugins(normalizedOutputPlugins, ANONYMOUS_OUTPUT_PLUGIN_PREFIX), onLog)];
3193
+ const hookOutputPlugins = await normalizePluginOption(outputOptions.plugins);
3194
+ const normalizedInputPlugins = normalizePlugins(inputPlugins, ANONYMOUS_PLUGIN_PREFIX);
3195
+ const normalizedOutputPlugins = normalizePlugins(hookOutputPlugins, ANONYMOUS_OUTPUT_PLUGIN_PREFIX);
3196
+ let plugins = [...normalizedInputPlugins, ...checkOutputPluginOption(normalizedOutputPlugins, onLog)];
3241
3197
  const parallelPluginInitResult = await initializeParallelPlugins(plugins);
3242
3198
  if (inputOptions.experimental?.strictExecutionOrder !== void 0) console.warn("`experimental.strictExecutionOrder` has been stabilized and moved to `output.strictExecutionOrder`. Please update your configuration.");
3243
3199
  try {
3244
3200
  return {
3245
3201
  bundlerOptions: {
3246
- inputOptions: bindingifyInputOptions(plugins, inputOptions, outputOptions, normalizedOutputPlugins, onLog, logLevel, watchMode),
3202
+ inputOptions: bindingifyInputOptions(plugins, inputOptions, outputOptions, normalizedInputPlugins, normalizedOutputPlugins, onLog, logLevel, watchMode),
3247
3203
  outputOptions: bindingifyOutputOptions(outputOptions),
3248
3204
  parallelPluginsRegistry: parallelPluginInitResult?.registry
3249
3205
  },
@@ -3256,7 +3212,6 @@ async function createBundlerOptions(inputOptions, outputOptions, watchMode) {
3256
3212
  throw e;
3257
3213
  }
3258
3214
  }
3259
-
3260
3215
  //#endregion
3261
3216
  //#region src/api/rolldown/rolldown-build.ts
3262
3217
  Symbol.asyncDispose ??= Symbol("Symbol.asyncDispose");
@@ -3291,7 +3246,7 @@ var RolldownBuild = class RolldownBuild {
3291
3246
  *
3292
3247
  * @param outputOptions The output options.
3293
3248
  * @returns The generated bundle.
3294
- * @throws {@linkcode RolldownError} When an error occurs during the build.
3249
+ * @throws {@linkcode BundleError} When an error occurs during the build.
3295
3250
  */
3296
3251
  async generate(outputOptions = {}) {
3297
3252
  return this.#build(false, outputOptions);
@@ -3303,7 +3258,7 @@ var RolldownBuild = class RolldownBuild {
3303
3258
  *
3304
3259
  * @param outputOptions The output options.
3305
3260
  * @returns The generated bundle.
3306
- * @throws {@linkcode RolldownError} When an error occurs during the build.
3261
+ * @throws {@linkcode BundleError} When an error occurs during the build.
3307
3262
  */
3308
3263
  async write(outputOptions = {}) {
3309
3264
  return this.#build(true, outputOptions);
@@ -3360,6 +3315,5 @@ var RolldownBuild = class RolldownBuild {
3360
3315
  }
3361
3316
  }
3362
3317
  };
3363
-
3364
3318
  //#endregion
3365
- export { getInputCliKeys as a, validateOption as c, getCliSchemaInfo as i, styleText$1 as l, createBundlerOptions as n, getOutputCliKeys as o, logger as r, validateCliOptions as s, RolldownBuild as t, PluginDriver as u };
3319
+ export { getInputCliKeys as a, validateOption as c, getCliSchemaInfo as i, styleText$1 as l, createBundlerOptions as n, getOutputCliKeys as o, logger as r, validateCliOptions as s, RolldownBuild as t, PluginDriver as u };