@voidzero-dev/vite-plus-core 0.1.21-alpha.0 → 0.1.21-alpha.2

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 (38) hide show
  1. package/dist/rolldown/cli.mjs +6 -6
  2. package/dist/rolldown/config.mjs +2 -2
  3. package/dist/rolldown/experimental-index.mjs +8 -8
  4. package/dist/rolldown/experimental-runtime-types.d.ts +14 -5
  5. package/dist/rolldown/index.mjs +4 -4
  6. package/dist/rolldown/parallel-plugin-worker.mjs +2 -2
  7. package/dist/rolldown/parse-ast-index.mjs +1 -1
  8. package/dist/rolldown/plugins-index.mjs +2 -2
  9. package/dist/rolldown/shared/{bindingify-input-options-CwT4BXgL.mjs → bindingify-input-options-BFomq0CL.mjs} +4 -4
  10. package/dist/rolldown/shared/{constructors-C2EWPKW3.mjs → constructors-CqLClvFc.mjs} +1 -1
  11. package/dist/rolldown/shared/{error-DL-e8-oE.mjs → error-D4ASW9r2.mjs} +1 -1
  12. package/dist/rolldown/shared/{load-config-DJUKhe3_.mjs → load-config-nKXo7Yxg.mjs} +1 -1
  13. package/dist/rolldown/shared/{normalize-string-or-regex-CbQQ69gT.mjs → normalize-string-or-regex-WerlQkgD.mjs} +1 -1
  14. package/dist/rolldown/shared/{parse-BG8jtBbb.mjs → parse-C-X7ajBy.mjs} +2 -2
  15. package/dist/rolldown/shared/{resolve-tsconfig-CfYpGzid.mjs → resolve-tsconfig-CxJB93yb.mjs} +2 -2
  16. package/dist/rolldown/shared/{rolldown-DLFt25hZ.mjs → rolldown-DNviFDiu.mjs} +1 -1
  17. package/dist/rolldown/shared/{rolldown-build-DrXmg2RO.mjs → rolldown-build-DdPwBoAu.mjs} +82 -144
  18. package/dist/rolldown/shared/{watch-MZrSsVh8.mjs → watch-BWGrirtv.mjs} +4 -4
  19. package/dist/rolldown/utils-index.d.mts +1 -1
  20. package/dist/rolldown/utils-index.mjs +5 -5
  21. package/dist/tsdown/{build-CgGnBlCD-Cyywno42.js → build-CgGnBlCD-CmgnJdWt.js} +58 -71
  22. package/dist/tsdown/{debug-CLlnG64L-Dn9UYJ-T.js → debug-CLlnG64L-Bga2f95T.js} +2 -2
  23. package/dist/tsdown/{detect-DN3DXXYt-VBvyr4oU.js → detect-DN3DXXYt-CQvReX03.js} +1 -1
  24. package/dist/tsdown/{dist-CaWgsVeS.js → dist-DJhmrSLH.js} +12 -12
  25. package/dist/tsdown/{dist-CbhZqEsp.js → dist-D_AJtdxQ.js} +3 -3
  26. package/dist/tsdown/{dist-DL4hnQY2.js → dist-dEREUhS4.js} +5 -9
  27. package/dist/tsdown/{filename-DQnUJlio-DHPB7cQg.js → filename-DQnUJlio-CkHYanGh.js} +1 -1
  28. package/dist/tsdown/index-types.d.ts +5 -5
  29. package/dist/tsdown/index.js +4 -4
  30. package/dist/tsdown/{main-DZy5NlsL.js → main-BQC8aVfq.js} +90 -97
  31. package/dist/tsdown/run.js +5 -5
  32. package/dist/tsdown/{tsc-Cm8giMT9.js → tsc-ILrjzsA_.js} +2 -2
  33. package/dist/tsdown/{tsc-context-B1O6kHlu.js → tsc-context-BBIdwth6.js} +1 -1
  34. package/dist/vite/client/client.mjs +4 -4
  35. package/dist/vite/node/chunks/node.js +0 -3
  36. package/dist/vite/node/index.d.ts +6 -2
  37. package/package.json +9 -9
  38. /package/dist/rolldown/shared/{binding-BeU_1iEk.mjs → binding-Cf9ARhL0.mjs} +0 -0
@@ -1,9 +1,9 @@
1
- import { n as onExit, t as watch } from "./shared/watch-MZrSsVh8.mjs";
2
- import { C as version, S as description } from "./shared/bindingify-input-options-CwT4BXgL.mjs";
1
+ import { n as onExit, t as watch } from "./shared/watch-BWGrirtv.mjs";
2
+ import { C as version, S as description } from "./shared/bindingify-input-options-BFomq0CL.mjs";
3
3
  import { t as arraify } from "./shared/misc-DJYbNKZX.mjs";
4
- import { a as getInputCliKeys, i as getCliSchemaInfo, l as styleText, o as getOutputCliKeys, r as logger, s as validateCliOptions } from "./shared/rolldown-build-DrXmg2RO.mjs";
5
- import { t as rolldown } from "./shared/rolldown-DLFt25hZ.mjs";
6
- import { t as loadConfig } from "./shared/load-config-DJUKhe3_.mjs";
4
+ import { a as getInputCliKeys, i as getCliSchemaInfo, l as styleText, o as getOutputCliKeys, r as logger, s as validateCliOptions } from "./shared/rolldown-build-DdPwBoAu.mjs";
5
+ import { t as rolldown } from "./shared/rolldown-DNviFDiu.mjs";
6
+ import { t as loadConfig } from "./shared/load-config-nKXo7Yxg.mjs";
7
7
  import path from "node:path";
8
8
  import process$1 from "node:process";
9
9
  import { performance } from "node:perf_hooks";
@@ -847,7 +847,7 @@ function getClearScreenFunction(options) {
847
847
  };
848
848
  }
849
849
  //#endregion
850
- //#region \0@oxc-project+runtime@0.127.0/helpers/usingCtx.js
850
+ //#region \0@oxc-project+runtime@0.128.0/helpers/usingCtx.js
851
851
  function _usingCtx() {
852
852
  var r = "function" == typeof SuppressedError ? SuppressedError : function(r, e) {
853
853
  var n = Error();
@@ -1,4 +1,4 @@
1
- import { x as VERSION } from "./shared/bindingify-input-options-CwT4BXgL.mjs";
1
+ import { x as VERSION } from "./shared/bindingify-input-options-BFomq0CL.mjs";
2
2
  import { t as defineConfig } from "./shared/define-config-DJOr6Iwt.mjs";
3
- import { t as loadConfig } from "./shared/load-config-DJUKhe3_.mjs";
3
+ import { t as loadConfig } from "./shared/load-config-nKXo7Yxg.mjs";
4
4
  export { VERSION, defineConfig, loadConfig };
@@ -1,11 +1,11 @@
1
- import { n as __toESM, t as require_binding } from "./shared/binding-BeU_1iEk.mjs";
2
- import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-CbQQ69gT.mjs";
3
- import { o as transformToRollupOutput } from "./shared/bindingify-input-options-CwT4BXgL.mjs";
4
- import { c as validateOption, n as createBundlerOptions, t as RolldownBuild, u as PluginDriver } from "./shared/rolldown-build-DrXmg2RO.mjs";
5
- import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-DL-e8-oE.mjs";
6
- import { n as parseSync$1, t as parse$1 } from "./shared/parse-BG8jtBbb.mjs";
7
- import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, m as viteWebWorkerPostPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWasmFallbackPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-C2EWPKW3.mjs";
8
- import { a as minify$1, i as transformSync$1, n as resolveTsconfig, o as minifySync$1, r as transform$1, t as TsconfigCache$1 } from "./shared/resolve-tsconfig-CfYpGzid.mjs";
1
+ import { n as __toESM, t as require_binding } from "./shared/binding-Cf9ARhL0.mjs";
2
+ import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-WerlQkgD.mjs";
3
+ import { o as transformToRollupOutput } from "./shared/bindingify-input-options-BFomq0CL.mjs";
4
+ import { c as validateOption, n as createBundlerOptions, t as RolldownBuild, u as PluginDriver } from "./shared/rolldown-build-DdPwBoAu.mjs";
5
+ import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-D4ASW9r2.mjs";
6
+ import { n as parseSync$1, t as parse$1 } from "./shared/parse-C-X7ajBy.mjs";
7
+ import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, m as viteWebWorkerPostPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWasmFallbackPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-CqLClvFc.mjs";
8
+ import { a as minify$1, i as transformSync$1, n as resolveTsconfig, o as minifySync$1, r as transform$1, t as TsconfigCache$1 } from "./shared/resolve-tsconfig-CxJB93yb.mjs";
9
9
  import { pathToFileURL } from "node:url";
10
10
  //#region src/api/dev/dev-engine.ts
11
11
  var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
@@ -40,21 +40,30 @@ export class DevRuntime {
40
40
  /**
41
41
  * __esmMin
42
42
  *
43
- * @type {<T>(fn: any, res: T) => () => T}
43
+ * When `dedup` is truthy and `id` is already registered on the runtime,
44
+ * skip the factory: another lazy blob got there first. HMR patches pass
45
+ * no `dedup` so they always re-run the factory and replace the registered
46
+ * exports.
47
+ *
48
+ * @type {<T>(id: string, fn: any, dedup: any, res: T) => () => T}
44
49
  * @internal
45
50
  */
46
- createEsmInitializer: <T>(fn: any, res: T) => () => T;
51
+ createEsmInitializer: <T>(id: string, fn: any, dedup: any, res: T) => () => T;
47
52
  /**
48
53
  * __commonJSMin
49
54
  *
50
- * @type {<T extends { exports: any }>(cb: any, mod: { exports: any }) => () => T}
55
+ * Same dedup gate as createEsmInitializer. With `dedup` truthy and `id`
56
+ * registered, reuse the registered exports object; otherwise run the
57
+ * factory.
58
+ *
59
+ * @type {<T extends { exports: any }>(id: string, cb: any, dedup: any, mod: { exports: any }, registered: any) => () => T}
51
60
  * @internal
52
61
  */
53
62
  createCjsInitializer: <T extends {
54
63
  exports: any;
55
- }>(cb: any, mod: {
64
+ }>(id: string, cb: any, dedup: any, mod: {
56
65
  exports: any;
57
- }) => () => T;
66
+ }, registered: any) => () => T;
58
67
  /** @internal */
59
68
  __toESM: any;
60
69
  /** @internal */
@@ -1,7 +1,7 @@
1
- import { n as __toESM, t as require_binding } from "./shared/binding-BeU_1iEk.mjs";
2
- import { n as onExit, t as watch } from "./shared/watch-MZrSsVh8.mjs";
3
- import { a as RolldownMagicString, b as RUNTIME_MODULE_ID, x as VERSION } from "./shared/bindingify-input-options-CwT4BXgL.mjs";
4
- import { t as rolldown } from "./shared/rolldown-DLFt25hZ.mjs";
1
+ import { n as __toESM, t as require_binding } from "./shared/binding-Cf9ARhL0.mjs";
2
+ import { n as onExit, t as watch } from "./shared/watch-BWGrirtv.mjs";
3
+ import { a as RolldownMagicString, b as RUNTIME_MODULE_ID, x as VERSION } from "./shared/bindingify-input-options-BFomq0CL.mjs";
4
+ import { t as rolldown } from "./shared/rolldown-DNviFDiu.mjs";
5
5
  import { t as defineConfig } from "./shared/define-config-DJOr6Iwt.mjs";
6
6
  import { isMainThread } from "node:worker_threads";
7
7
  //#region src/setup.ts
@@ -1,5 +1,5 @@
1
- import { n as __toESM, t as require_binding } from "./shared/binding-BeU_1iEk.mjs";
2
- import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-CwT4BXgL.mjs";
1
+ import { n as __toESM, t as require_binding } from "./shared/binding-Cf9ARhL0.mjs";
2
+ import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-BFomq0CL.mjs";
3
3
  import { parentPort, workerData } from "node:worker_threads";
4
4
  //#region src/parallel-plugin-worker.ts
5
5
  var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
@@ -1,5 +1,5 @@
1
1
  import { l as locate, n as error, s as logParseError, t as augmentCodeLocation, u as getCodeFrame } from "./shared/logs-D80CXhvg.mjs";
2
- import { n as parseSync, t as parse } from "./shared/parse-BG8jtBbb.mjs";
2
+ import { n as parseSync, t as parse } from "./shared/parse-C-X7ajBy.mjs";
3
3
  //#region src/parse-ast-index.ts
4
4
  function wrap(result, filename, sourceText) {
5
5
  if (result.errors.length > 0) return normalizeParseError(filename, sourceText, result.errors);
@@ -1,5 +1,5 @@
1
- import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./shared/normalize-string-or-regex-CbQQ69gT.mjs";
2
- import { t as esmExternalRequirePlugin } from "./shared/constructors-C2EWPKW3.mjs";
1
+ import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./shared/normalize-string-or-regex-WerlQkgD.mjs";
2
+ import { t as esmExternalRequirePlugin } from "./shared/constructors-CqLClvFc.mjs";
3
3
  //#region src/builtin-plugin/replace-plugin.ts
4
4
  /**
5
5
  * Replaces targeted strings in files while bundling.
@@ -1,8 +1,8 @@
1
- import { n as __toESM, t as require_binding } from "./binding-BeU_1iEk.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-Cf9ARhL0.mjs";
2
2
  import { a as logInvalidLogPosition, c as logPluginError, n as error, r as logCycleLoading, t as augmentCodeLocation } from "./logs-D80CXhvg.mjs";
3
- import { i as bindingifyManifestPlugin, n as BuiltinPlugin, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-CbQQ69gT.mjs";
3
+ import { i as bindingifyManifestPlugin, n as BuiltinPlugin, r as bindingifyBuiltInPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-WerlQkgD.mjs";
4
4
  import { a as unreachable, o as unsupported, r as noop, t as arraify } from "./misc-DJYbNKZX.mjs";
5
- import { a as bindingifySourcemap, i as unwrapBindingResult, t as aggregateBindingErrorsIntoJsError } from "./error-DL-e8-oE.mjs";
5
+ import { a as bindingifySourcemap, i as unwrapBindingResult, t as aggregateBindingErrorsIntoJsError } from "./error-D4ASW9r2.mjs";
6
6
  import { parseAst } from "../parse-ast-index.mjs";
7
7
  import path from "node:path";
8
8
  import * as filter from "@voidzero-dev/vite-plus-core/rolldown/pluginutils";
@@ -217,7 +217,7 @@ function bindingAssetSource(source) {
217
217
  return { inner: source };
218
218
  }
219
219
  //#endregion
220
- //#region \0@oxc-project+runtime@0.127.0/helpers/decorate.js
220
+ //#region \0@oxc-project+runtime@0.128.0/helpers/decorate.js
221
221
  function __decorate(decorators, target, key, desc) {
222
222
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
223
223
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -1,4 +1,4 @@
1
- import { a as makeBuiltinPluginCallable, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-CbQQ69gT.mjs";
1
+ import { a as makeBuiltinPluginCallable, n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-WerlQkgD.mjs";
2
2
  //#region src/builtin-plugin/constructors.ts
3
3
  function viteModulePreloadPolyfillPlugin(config) {
4
4
  return new BuiltinPlugin("builtin:vite-module-preload-polyfill", config);
@@ -1,4 +1,4 @@
1
- import { t as require_binding } from "./binding-BeU_1iEk.mjs";
1
+ import { t as require_binding } from "./binding-Cf9ARhL0.mjs";
2
2
  //#region src/types/sourcemap.ts
3
3
  function bindingifySourcemap(map) {
4
4
  if (map == null) return;
@@ -1,4 +1,4 @@
1
- import { t as rolldown } from "./rolldown-DLFt25hZ.mjs";
1
+ import { t as rolldown } from "./rolldown-DNviFDiu.mjs";
2
2
  import fs from "node:fs";
3
3
  import path from "node:path";
4
4
  import { readdir } from "node:fs/promises";
@@ -1,4 +1,4 @@
1
- import { n as __toESM, t as require_binding } from "./binding-BeU_1iEk.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-Cf9ARhL0.mjs";
2
2
  import { c as logPluginError, n as error } from "./logs-D80CXhvg.mjs";
3
3
  //#region src/builtin-plugin/utils.ts
4
4
  var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
@@ -1,5 +1,5 @@
1
- import { n as __toESM, t as require_binding } from "./binding-BeU_1iEk.mjs";
2
- //#region ../../../node_modules/.pnpm/oxc-parser@0.127.0/node_modules/oxc-parser/src-js/wrap.js
1
+ import { n as __toESM, t as require_binding } from "./binding-Cf9ARhL0.mjs";
2
+ //#region ../../../node_modules/.pnpm/oxc-parser@0.129.0/node_modules/oxc-parser/src-js/wrap.js
3
3
  var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
4
4
  function wrap(result) {
5
5
  let program, module, comments, errors;
@@ -1,5 +1,5 @@
1
- import { n as __toESM, t as require_binding } from "./binding-BeU_1iEk.mjs";
2
- import { a as bindingifySourcemap, n as normalizeBindingError } from "./error-DL-e8-oE.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-Cf9ARhL0.mjs";
2
+ import { a as bindingifySourcemap, n as normalizeBindingError } from "./error-D4ASW9r2.mjs";
3
3
  //#region src/utils/minify.ts
4
4
  var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { c as validateOption, t as RolldownBuild, u as PluginDriver } from "./rolldown-build-DrXmg2RO.mjs";
1
+ import { c as validateOption, t as RolldownBuild, u as PluginDriver } from "./rolldown-build-DdPwBoAu.mjs";
2
2
  //#region src/api/rolldown/index.ts
3
3
  /**
4
4
  * The API compatible with Rollup's `rollup` function.
@@ -1,9 +1,9 @@
1
- import { n as __toESM, t as require_binding } from "./binding-BeU_1iEk.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-Cf9ARhL0.mjs";
2
2
  import { i as logInputHookInOutputPlugin, n as error } from "./logs-D80CXhvg.mjs";
3
- import { n as BuiltinPlugin } from "./normalize-string-or-regex-CbQQ69gT.mjs";
4
- import { c as __decorate, d as PlainObjectLike, f as MinimalPluginContextImpl, h as LOG_LEVEL_DEBUG, i as transformModuleInfo, l as transformAssetSource, m as normalizeLog, o as transformToRollupOutput, p as normalizeHook, s as transformRenderedChunk, t as bindingifyInputOptions, u as lazyProp, v as LOG_LEVEL_WARN, x as VERSION, y as logLevelPriority } from "./bindingify-input-options-CwT4BXgL.mjs";
3
+ import { n as BuiltinPlugin } from "./normalize-string-or-regex-WerlQkgD.mjs";
4
+ import { c as __decorate, d as PlainObjectLike, f as MinimalPluginContextImpl, h as LOG_LEVEL_DEBUG, i as transformModuleInfo, l as transformAssetSource, m as normalizeLog, o as transformToRollupOutput, p as normalizeHook, s as transformRenderedChunk, t as bindingifyInputOptions, u as lazyProp, v as LOG_LEVEL_WARN, x as VERSION, y as logLevelPriority } from "./bindingify-input-options-BFomq0CL.mjs";
5
5
  import { i as unimplemented } from "./misc-DJYbNKZX.mjs";
6
- import { i as unwrapBindingResult } from "./error-DL-e8-oE.mjs";
6
+ import { i as unwrapBindingResult } from "./error-D4ASW9r2.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";
@@ -1397,9 +1397,7 @@ function styleText$1(...args) {
1397
1397
  }
1398
1398
  //#endregion
1399
1399
  //#region src/utils/validator.ts
1400
- function isTypeTrue() {}
1401
1400
  const StringOrRegExpSchema = /* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ instance(RegExp)]);
1402
- isTypeTrue();
1403
1401
  function vFunction() {
1404
1402
  return /* @__PURE__ */ function_();
1405
1403
  }
@@ -1408,32 +1406,25 @@ const LogLevelSchema = /* @__PURE__ */ union([
1408
1406
  /* @__PURE__ */ literal("info"),
1409
1407
  /* @__PURE__ */ literal("warn")
1410
1408
  ]);
1411
- isTypeTrue();
1412
1409
  const LogLevelOptionSchema = /* @__PURE__ */ union([LogLevelSchema, /* @__PURE__ */ literal("silent")]);
1413
- isTypeTrue();
1414
1410
  const LogLevelWithErrorSchema = /* @__PURE__ */ union([LogLevelSchema, /* @__PURE__ */ literal("error")]);
1415
- isTypeTrue();
1416
1411
  const RollupLogSchema = /* @__PURE__ */ any();
1417
1412
  const RollupLogWithStringSchema = /* @__PURE__ */ union([RollupLogSchema, /* @__PURE__ */ string()]);
1418
- isTypeTrue();
1419
1413
  const InputOptionSchema = /* @__PURE__ */ union([
1420
1414
  /* @__PURE__ */ string(),
1421
1415
  /* @__PURE__ */ array(/* @__PURE__ */ string()),
1422
1416
  /* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string())
1423
1417
  ]);
1424
- isTypeTrue();
1425
1418
  const ExternalOptionFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([
1426
1419
  /* @__PURE__ */ string(),
1427
1420
  /* @__PURE__ */ optional(/* @__PURE__ */ string()),
1428
1421
  /* @__PURE__ */ boolean()
1429
1422
  ])), /* @__PURE__ */ returns(/* @__PURE__ */ nullish(/* @__PURE__ */ boolean())));
1430
- isTypeTrue();
1431
1423
  const ExternalOptionSchema = /* @__PURE__ */ union([
1432
1424
  StringOrRegExpSchema,
1433
1425
  /* @__PURE__ */ array(StringOrRegExpSchema),
1434
1426
  ExternalOptionFunctionSchema
1435
1427
  ]);
1436
- isTypeTrue();
1437
1428
  const ModuleTypesSchema = /* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ union([
1438
1429
  /* @__PURE__ */ literal("asset"),
1439
1430
  /* @__PURE__ */ literal("base64"),
@@ -1449,78 +1440,63 @@ const ModuleTypesSchema = /* @__PURE__ */ record(/* @__PURE__ */ string(), /* @_
1449
1440
  /* @__PURE__ */ literal("ts"),
1450
1441
  /* @__PURE__ */ literal("tsx")
1451
1442
  ]));
1452
- isTypeTrue();
1453
- const JsxOptionsSchema = /* @__PURE__ */ strictObject({
1454
- runtime: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("classic"), /* @__PURE__ */ literal("automatic")])), /* @__PURE__ */ description("Which runtime to use")),
1455
- development: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Development specific information")),
1456
- throwIfNamespace: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Toggles whether to throw an error when a tag name uses an XML namespace")),
1457
- pure: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Mark JSX elements and top-level React method calls as pure for tree shaking.")),
1458
- importSource: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Import the factory of element and fragment if mode is classic")),
1459
- pragma: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Jsx element transformation")),
1460
- pragmaFrag: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Jsx fragment transformation")),
1461
- refresh: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ any()])), /* @__PURE__ */ description("Enable react fast refresh"))
1462
- });
1463
- isTypeTrue();
1464
- const HelperModeSchema = /* @__PURE__ */ union([/* @__PURE__ */ literal("Runtime"), /* @__PURE__ */ literal("External")]);
1465
- const DecoratorOptionSchema = /* @__PURE__ */ object({
1466
- legacy: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1467
- emitDecoratorMetadata: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1468
- });
1469
- isTypeTrue();
1470
- const HelpersSchema = /* @__PURE__ */ object({ mode: /* @__PURE__ */ optional(HelperModeSchema) });
1471
- isTypeTrue();
1472
- const TypescriptSchema = /* @__PURE__ */ object({
1473
- jsxPragma: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
1474
- jsxPragmaFrag: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
1475
- onlyRemoveTypeImports: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1476
- allowNamespaces: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1477
- allowDeclareFields: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1478
- removeClassFieldsWithoutInitializer: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1479
- optimizeConstEnums: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1480
- optimizeEnums: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1481
- declaration: /* @__PURE__ */ optional(/* @__PURE__ */ object({
1482
- stripInternal: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1483
- sourcemap: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1484
- })),
1485
- rewriteImportExtensions: /* @__PURE__ */ optional(/* @__PURE__ */ union([
1486
- /* @__PURE__ */ literal("rewrite"),
1487
- /* @__PURE__ */ literal("remove"),
1488
- /* @__PURE__ */ boolean()
1489
- ]))
1490
- });
1491
- isTypeTrue();
1492
- const AssumptionsSchema = /* @__PURE__ */ object({
1493
- ignoreFunctionLength: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1494
- noDocumentAll: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1495
- objectRestNoSymbols: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1496
- pureGetters: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1497
- setPublicClassFields: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1498
- });
1499
- isTypeTrue();
1500
- const TransformPluginsSchema = /* @__PURE__ */ object({
1501
- styledComponents: /* @__PURE__ */ optional(/* @__PURE__ */ any()),
1502
- taggedTemplateEscape: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1503
- });
1504
- isTypeTrue();
1505
1443
  const TransformOptionsSchema = /* @__PURE__ */ object({
1506
- assumptions: /* @__PURE__ */ optional(AssumptionsSchema),
1507
- typescript: /* @__PURE__ */ optional(TypescriptSchema),
1508
- helpers: /* @__PURE__ */ optional(HelpersSchema),
1509
- decorator: /* @__PURE__ */ optional(DecoratorOptionSchema),
1444
+ assumptions: /* @__PURE__ */ optional(/* @__PURE__ */ object({
1445
+ ignoreFunctionLength: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1446
+ noDocumentAll: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1447
+ objectRestNoSymbols: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1448
+ pureGetters: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1449
+ setPublicClassFields: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1450
+ })),
1451
+ typescript: /* @__PURE__ */ optional(/* @__PURE__ */ object({
1452
+ jsxPragma: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
1453
+ jsxPragmaFrag: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
1454
+ onlyRemoveTypeImports: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1455
+ allowNamespaces: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1456
+ allowDeclareFields: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1457
+ removeClassFieldsWithoutInitializer: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1458
+ optimizeConstEnums: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1459
+ optimizeEnums: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1460
+ declaration: /* @__PURE__ */ optional(/* @__PURE__ */ object({
1461
+ stripInternal: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1462
+ sourcemap: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1463
+ })),
1464
+ rewriteImportExtensions: /* @__PURE__ */ optional(/* @__PURE__ */ union([
1465
+ /* @__PURE__ */ literal("rewrite"),
1466
+ /* @__PURE__ */ literal("remove"),
1467
+ /* @__PURE__ */ boolean()
1468
+ ]))
1469
+ })),
1470
+ helpers: /* @__PURE__ */ optional(/* @__PURE__ */ object({ mode: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("Runtime"), /* @__PURE__ */ literal("External")])) })),
1471
+ decorator: /* @__PURE__ */ optional(/* @__PURE__ */ object({
1472
+ legacy: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1473
+ emitDecoratorMetadata: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1474
+ })),
1510
1475
  jsx: /* @__PURE__ */ optional(/* @__PURE__ */ union([
1511
1476
  /* @__PURE__ */ literal(false),
1512
1477
  /* @__PURE__ */ literal("preserve"),
1513
1478
  /* @__PURE__ */ literal("react"),
1514
1479
  /* @__PURE__ */ literal("react-jsx"),
1515
- JsxOptionsSchema
1480
+ /* @__PURE__ */ strictObject({
1481
+ runtime: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("classic"), /* @__PURE__ */ literal("automatic")])), /* @__PURE__ */ description("Which runtime to use")),
1482
+ development: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Development specific information")),
1483
+ throwIfNamespace: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Toggles whether to throw an error when a tag name uses an XML namespace")),
1484
+ pure: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Mark JSX elements and top-level React method calls as pure for tree shaking.")),
1485
+ importSource: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Import the factory of element and fragment if mode is classic")),
1486
+ pragma: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Jsx element transformation")),
1487
+ pragmaFrag: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Jsx fragment transformation")),
1488
+ refresh: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ any()])), /* @__PURE__ */ description("Enable react fast refresh"))
1489
+ })
1516
1490
  ])),
1517
1491
  target: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ array(/* @__PURE__ */ string())])), /* @__PURE__ */ description("The JavaScript target environment")),
1518
1492
  define: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string())), /* @__PURE__ */ description("Define global variables (syntax: key:value,key2:value2)")),
1519
1493
  inject: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ tuple([/* @__PURE__ */ string(), /* @__PURE__ */ string()])]))), /* @__PURE__ */ description("Inject import statements on demand")),
1520
1494
  dropLabels: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())), /* @__PURE__ */ description("Remove labeled statements with these label names")),
1521
- plugins: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(TransformPluginsSchema), /* @__PURE__ */ description("Third-party plugins to use"))
1495
+ plugins: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ object({
1496
+ styledComponents: /* @__PURE__ */ optional(/* @__PURE__ */ any()),
1497
+ taggedTemplateEscape: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1498
+ })), /* @__PURE__ */ description("Third-party plugins to use"))
1522
1499
  });
1523
- isTypeTrue();
1524
1500
  const WatcherFileWatcherOptionsSchema = /* @__PURE__ */ strictObject({
1525
1501
  usePolling: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Use polling-based file watching instead of native OS events")),
1526
1502
  pollInterval: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ number()), /* @__PURE__ */ description("Poll interval in milliseconds (only used when usePolling is true)")),
@@ -1540,7 +1516,6 @@ const WatcherOptionsSchema = /* @__PURE__ */ strictObject({
1540
1516
  clearScreen: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to clear the screen when a rebuild is triggered")),
1541
1517
  onInvalidate: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(vFunction()), /* @__PURE__ */ description("An optional function that will be called immediately every time a module changes that is part of the build."))
1542
1518
  });
1543
- isTypeTrue();
1544
1519
  const ChecksOptionsSchema = /* @__PURE__ */ strictObject({
1545
1520
  circularDependency: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when detecting circular dependency")),
1546
1521
  eval: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when detecting uses of direct `eval`s")),
@@ -1563,53 +1538,39 @@ const ChecksOptionsSchema = /* @__PURE__ */ strictObject({
1563
1538
  unsupportedTsconfigOption: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a tsconfig option or combination of options is not supported")),
1564
1539
  ineffectiveDynamicImport: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a module is dynamically imported but also statically imported, making the dynamic import ineffective for code splitting"))
1565
1540
  });
1566
- isTypeTrue();
1567
- const CompressOptionsKeepNamesSchema = /* @__PURE__ */ strictObject({
1568
- function: /* @__PURE__ */ boolean(),
1569
- class: /* @__PURE__ */ boolean()
1570
- });
1571
- isTypeTrue();
1572
- const CompressTreeshakeOptionsSchema = /* @__PURE__ */ strictObject({
1573
- annotations: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1574
- manualPureFunctions: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())),
1575
- propertyReadSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ literal("always")])),
1576
- propertyWriteSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1577
- unknownGlobalSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1578
- invalidImportSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1579
- });
1580
- isTypeTrue();
1581
- const CompressOptionsSchema = /* @__PURE__ */ strictObject({
1582
- target: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ array(/* @__PURE__ */ string())])),
1583
- dropConsole: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1584
- dropDebugger: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1585
- keepNames: /* @__PURE__ */ optional(CompressOptionsKeepNamesSchema),
1586
- unused: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ literal("keep_assign")])),
1587
- joinVars: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1588
- sequences: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1589
- dropLabels: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())),
1590
- maxIterations: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
1591
- treeshake: /* @__PURE__ */ optional(CompressTreeshakeOptionsSchema)
1592
- });
1593
- isTypeTrue();
1594
- const MangleOptionsKeepNamesSchema = /* @__PURE__ */ strictObject({
1595
- function: /* @__PURE__ */ boolean(),
1596
- class: /* @__PURE__ */ boolean()
1597
- });
1598
- isTypeTrue();
1599
- const MangleOptionsSchema = /* @__PURE__ */ strictObject({
1600
- toplevel: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1601
- keepNames: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), MangleOptionsKeepNamesSchema])),
1602
- debug: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1603
- });
1604
- isTypeTrue();
1605
- const CodegenOptionsSchema = /* @__PURE__ */ strictObject({ removeWhitespace: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()) });
1606
- isTypeTrue();
1607
1541
  const MinifyOptionsSchema = /* @__PURE__ */ strictObject({
1608
- compress: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), CompressOptionsSchema])),
1609
- mangle: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), MangleOptionsSchema])),
1610
- codegen: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), CodegenOptionsSchema]))
1542
+ compress: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
1543
+ target: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ array(/* @__PURE__ */ string())])),
1544
+ dropConsole: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1545
+ dropDebugger: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1546
+ keepNames: /* @__PURE__ */ optional(/* @__PURE__ */ strictObject({
1547
+ function: /* @__PURE__ */ boolean(),
1548
+ class: /* @__PURE__ */ boolean()
1549
+ })),
1550
+ unused: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ literal("keep_assign")])),
1551
+ joinVars: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1552
+ sequences: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1553
+ dropLabels: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())),
1554
+ maxIterations: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
1555
+ treeshake: /* @__PURE__ */ optional(/* @__PURE__ */ strictObject({
1556
+ annotations: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1557
+ manualPureFunctions: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())),
1558
+ propertyReadSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ literal("always")])),
1559
+ propertyWriteSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1560
+ unknownGlobalSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1561
+ invalidImportSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1562
+ }))
1563
+ })])),
1564
+ mangle: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
1565
+ toplevel: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1566
+ keepNames: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
1567
+ function: /* @__PURE__ */ boolean(),
1568
+ class: /* @__PURE__ */ boolean()
1569
+ })])),
1570
+ debug: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1571
+ })])),
1572
+ codegen: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({ removeWhitespace: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()) })]))
1611
1573
  });
1612
- isTypeTrue();
1613
1574
  const ResolveOptionsSchema = /* @__PURE__ */ strictObject({
1614
1575
  alias: /* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ union([
1615
1576
  /* @__PURE__ */ literal(false),
@@ -1627,7 +1588,6 @@ const ResolveOptionsSchema = /* @__PURE__ */ strictObject({
1627
1588
  symlinks: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1628
1589
  tsconfigFilename: /* @__PURE__ */ optional(/* @__PURE__ */ string())
1629
1590
  });
1630
- isTypeTrue();
1631
1591
  const TreeshakingOptionsSchema = /* @__PURE__ */ strictObject({
1632
1592
  moduleSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ any()),
1633
1593
  annotations: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
@@ -1638,7 +1598,6 @@ const TreeshakingOptionsSchema = /* @__PURE__ */ strictObject({
1638
1598
  propertyReadSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal(false), /* @__PURE__ */ literal("always")])),
1639
1599
  propertyWriteSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal(false), /* @__PURE__ */ literal("always")]))
1640
1600
  });
1641
- isTypeTrue();
1642
1601
  const OptimizationOptionsSchema = /* @__PURE__ */ strictObject({
1643
1602
  inlineConst: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
1644
1603
  mode: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("all"), /* @__PURE__ */ literal("smart")])),
@@ -1646,24 +1605,19 @@ const OptimizationOptionsSchema = /* @__PURE__ */ strictObject({
1646
1605
  })])), /* @__PURE__ */ description("Enable crossmodule constant inlining")),
1647
1606
  pifeForModuleWrappers: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Use PIFE pattern for module wrappers"))
1648
1607
  });
1649
- isTypeTrue();
1650
1608
  const LogOrStringHandlerSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([LogLevelWithErrorSchema, RollupLogWithStringSchema])));
1651
- isTypeTrue();
1652
1609
  const OnLogSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([
1653
1610
  LogLevelSchema,
1654
1611
  RollupLogSchema,
1655
1612
  LogOrStringHandlerSchema
1656
1613
  ])));
1657
- isTypeTrue();
1658
1614
  const OnwarnSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([RollupLogSchema, /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ union([RollupLogWithStringSchema, /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ returns(RollupLogWithStringSchema))])])))])));
1659
- isTypeTrue();
1660
1615
  const DevModeSchema = /* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
1661
1616
  port: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
1662
1617
  host: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
1663
1618
  implement: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
1664
1619
  lazy: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1665
1620
  })]);
1666
- isTypeTrue();
1667
1621
  const InputOptionsSchema = /* @__PURE__ */ strictObject({
1668
1622
  input: /* @__PURE__ */ optional(InputOptionSchema),
1669
1623
  plugins: /* @__PURE__ */ optional(/* @__PURE__ */ custom(() => true)),
@@ -1716,7 +1670,6 @@ const InputOptionsSchema = /* @__PURE__ */ strictObject({
1716
1670
  context: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("The value of `this` at the top level of each module.")),
1717
1671
  tsconfig: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ string()])), /* @__PURE__ */ description("Path to the tsconfig.json file."))
1718
1672
  });
1719
- isTypeTrue();
1720
1673
  const InputCliOverrideSchema = /* @__PURE__ */ strictObject({
1721
1674
  input: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())), /* @__PURE__ */ description("Entry file")),
1722
1675
  external: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())), /* @__PURE__ */ description("Comma-separated list of module ids to exclude from the bundle `<module-id>,...`")),
@@ -1745,32 +1698,22 @@ const ModuleFormatSchema = /* @__PURE__ */ union([
1745
1698
  /* @__PURE__ */ literal("iife"),
1746
1699
  /* @__PURE__ */ literal("umd")
1747
1700
  ]);
1748
- isTypeTrue();
1749
1701
  const AddonFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ custom(() => true)])), /* @__PURE__ */ returnsAsync(/* @__PURE__ */ unionAsync([/* @__PURE__ */ string(), /* @__PURE__ */ pipeAsync(/* @__PURE__ */ promise(), /* @__PURE__ */ awaitAsync(), /* @__PURE__ */ string())])));
1750
- isTypeTrue();
1751
1702
  const ChunkFileNamesFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ custom(() => true)])), /* @__PURE__ */ returns(/* @__PURE__ */ string()));
1752
- isTypeTrue();
1753
1703
  const ChunkFileNamesSchema = /* @__PURE__ */ union([/* @__PURE__ */ string(), ChunkFileNamesFunctionSchema]);
1754
1704
  const AssetFileNamesFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ custom(() => true)])), /* @__PURE__ */ returns(/* @__PURE__ */ string()));
1755
- isTypeTrue();
1756
1705
  const AssetFileNamesSchema = /* @__PURE__ */ union([/* @__PURE__ */ string(), AssetFileNamesFunctionSchema]);
1757
1706
  const SanitizeFileNameFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string()])), /* @__PURE__ */ returns(/* @__PURE__ */ string()));
1758
- isTypeTrue();
1759
1707
  const SanitizeFileNameSchema = /* @__PURE__ */ union([/* @__PURE__ */ boolean(), SanitizeFileNameFunctionSchema]);
1760
1708
  const GlobalsFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string()])), /* @__PURE__ */ returns(/* @__PURE__ */ string()));
1761
- isTypeTrue();
1762
1709
  const PathsFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string()])), /* @__PURE__ */ returns(/* @__PURE__ */ string()));
1763
- isTypeTrue();
1764
1710
  const ManualChunksFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string(), /* @__PURE__ */ object({})])), /* @__PURE__ */ returns(/* @__PURE__ */ nullish(/* @__PURE__ */ string())));
1765
- isTypeTrue();
1766
1711
  const AdvancedChunksNameFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string(), /* @__PURE__ */ object({})])), /* @__PURE__ */ returns(/* @__PURE__ */ nullish(/* @__PURE__ */ string())));
1767
- isTypeTrue();
1768
1712
  const AdvancedChunksTestFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string()])), /* @__PURE__ */ returns(/* @__PURE__ */ union([
1769
1713
  /* @__PURE__ */ boolean(),
1770
1714
  /* @__PURE__ */ void_(),
1771
1715
  /* @__PURE__ */ undefined_()
1772
1716
  ])));
1773
- isTypeTrue();
1774
1717
  const AdvancedChunksSchema = /* @__PURE__ */ strictObject({
1775
1718
  includeDependenciesRecursively: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1776
1719
  minSize: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
@@ -1792,15 +1735,11 @@ const AdvancedChunksSchema = /* @__PURE__ */ strictObject({
1792
1735
  tags: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string()))
1793
1736
  })))
1794
1737
  });
1795
- isTypeTrue();
1796
- const GeneratedCodePresetSchema = /* @__PURE__ */ union([/* @__PURE__ */ literal("es5"), /* @__PURE__ */ literal("es2015")]);
1797
- isTypeTrue();
1798
1738
  const GeneratedCodeOptionsSchema = /* @__PURE__ */ strictObject({
1799
1739
  symbols: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to use Symbol.toStringTag for namespace objects")),
1800
- preset: /* @__PURE__ */ optional(GeneratedCodePresetSchema),
1740
+ preset: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("es5"), /* @__PURE__ */ literal("es2015")])),
1801
1741
  profilerNames: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to add readable names to internal variables for profiling purposes"))
1802
1742
  });
1803
- isTypeTrue();
1804
1743
  const OutputOptionsSchema = /* @__PURE__ */ strictObject({
1805
1744
  dir: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Output directory, defaults to `dist` if `file` is not set")),
1806
1745
  file: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Single output file")),
@@ -1876,7 +1815,6 @@ const OutputOptionsSchema = /* @__PURE__ */ strictObject({
1876
1815
  strictExecutionOrder: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Lets modules be executed in the order they are declared.")),
1877
1816
  strict: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ literal("auto")])), /* @__PURE__ */ description("Whether to always output `\"use strict\"` directive in non-ES module outputs."))
1878
1817
  });
1879
- isTypeTrue();
1880
1818
  const getAddonDescription = (placement, wrapper) => {
1881
1819
  return `Code to insert the ${styleText$1("bold", placement)} of the bundled file (${styleText$1("bold", wrapper)} the wrapper function)`;
1882
1820
  };
@@ -2769,7 +2707,7 @@ function n(e) {
2769
2707
  return e ? e !== "false" : false;
2770
2708
  }
2771
2709
  const I = globalThis.process?.platform || "", T = n(o.CI) || l.ci !== false, a = n(globalThis.process?.stdout && globalThis.process?.stdout.isTTY), g = n(o.DEBUG), R = t === "test" || n(o.TEST);
2772
- n(o.MINIMAL);
2710
+ o.MINIMAL;
2773
2711
  const A = /^win/i.test(I);
2774
2712
  !n(o.NO_COLOR) && (n(o.FORCE_COLOR) || (a || A) && o.TERM);
2775
2713
  const C = (globalThis.process?.versions?.node || "").replace(/^v/, "") || null;