@voidzero-dev/vite-plus-core 0.2.6 → 0.2.8

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 (74) hide show
  1. package/LICENSE +35 -0
  2. package/dist/rolldown/cli.mjs +9 -10
  3. package/dist/rolldown/config.d.mts +1 -1
  4. package/dist/rolldown/config.mjs +2 -2
  5. package/dist/rolldown/experimental-default-runtime.mjs +116 -0
  6. package/dist/rolldown/experimental-index.d.mts +10 -4
  7. package/dist/rolldown/experimental-index.mjs +32 -16
  8. package/dist/rolldown/experimental-runtime-base.mjs +95 -0
  9. package/dist/rolldown/experimental-runtime.d.ts +177 -0
  10. package/dist/rolldown/experimental-runtime.mjs +257 -0
  11. package/dist/rolldown/filter-index.d.mts +1 -1
  12. package/dist/rolldown/filter-index.mjs +1 -3
  13. package/dist/rolldown/index.d.mts +3 -3
  14. package/dist/rolldown/index.mjs +4 -4
  15. package/dist/rolldown/parallel-plugin-worker.mjs +3 -3
  16. package/dist/rolldown/parallel-plugin.d.mts +1 -1
  17. package/dist/rolldown/parse-ast-index.d.mts +1 -1
  18. package/dist/rolldown/parse-ast-index.mjs +2 -2
  19. package/dist/rolldown/plugins-index.d.mts +3 -3
  20. package/dist/rolldown/plugins-index.mjs +2 -2
  21. package/dist/rolldown/shared/{binding-Dbbi0RbO.d.mts → binding-CVtkJvyl.d.mts} +11 -0
  22. package/dist/rolldown/shared/{binding-Dby9rwGk.mjs → binding-DwUQWZOo.mjs} +178 -104
  23. package/dist/rolldown/shared/{bindingify-input-options-DVQ4K-zY.mjs → bindingify-input-options-B03y7DfJ.mjs} +448 -268
  24. package/dist/rolldown/shared/{constructors-CSWbNgBZ.d.mts → constructors-ALilxAii.d.mts} +2 -2
  25. package/dist/rolldown/shared/{constructors-CuGa75s-.mjs → constructors-COwFYQna.mjs} +10 -6
  26. package/dist/rolldown/shared/{rolldown-build-BGXNOfvH.mjs → create-bundler-option-B-tSTZRt.mjs} +72 -179
  27. package/dist/rolldown/shared/{define-config-B-IDOhDz.d.mts → define-config-DSMNXceb.d.mts} +85 -22
  28. package/dist/rolldown/shared/{error-DFGNOCle.mjs → error-nLggAzpQ.mjs} +1 -1
  29. package/dist/rolldown/shared/{load-config-R0z2olkB.mjs → load-config-O4G7NVNA.mjs} +2 -2
  30. package/dist/rolldown/shared/{logs-ZGEh6uhb.mjs → logs-DmYCAKcW.mjs} +8 -1
  31. package/dist/rolldown/shared/{misc-CoQm4NHO.mjs → misc-DOSKtd97.mjs} +9 -1
  32. package/dist/rolldown/shared/{normalize-string-or-regex-SiXbePVH.mjs → normalize-string-or-regex-Cj-DgIV1.mjs} +2 -2
  33. package/dist/rolldown/shared/{parse-D5dkElpf.mjs → parse-CQfUbVuN.mjs} +2 -2
  34. package/dist/rolldown/shared/{prompt-pZFoa1TT.mjs → prompt-uaCPq0_A.mjs} +2 -6
  35. package/dist/rolldown/shared/{resolve-tsconfig-2TXRF_zr.mjs → resolve-tsconfig-CE3HNSOK.mjs} +2 -2
  36. package/dist/rolldown/shared/rolldown-qV_fUwyM.mjs +178 -0
  37. package/dist/rolldown/shared/{transform-Cs2bUDRH.d.mts → transform-WmU_cI8e.d.mts} +1 -1
  38. package/dist/rolldown/shared/{watch-DVucf-VG.mjs → watch-BNIsji74.mjs} +16 -13
  39. package/dist/rolldown/utils-index.d.mts +3 -3
  40. package/dist/rolldown/utils-index.mjs +5 -5
  41. package/dist/tsdown/{build-oq13wECG-Bymq3jT5.js → build-D_enfyvD-X5SFXZZc.js} +30 -28
  42. package/dist/tsdown/{debug-BntVTkRq-BGIoAiTa.js → debug-CKcBYQLP-avlAPNcV.js} +5 -7
  43. package/dist/tsdown/{detect-DGhJGEqb-S-tkSzpt.js → detect-DGhJGEqb-CGd2brAW.js} +1 -1
  44. package/dist/tsdown/{dist-CxIM8o7n.js → dist-BZO8q3c0.js} +48 -12
  45. package/dist/tsdown/{dist-DCMiHFrJ.js → dist-CMKwGGNp.js} +1 -3
  46. package/dist/tsdown/index-types.d.ts +21 -11
  47. package/dist/tsdown/index.js +4 -4
  48. package/dist/tsdown/internal-DyaNxVWW.js +3 -0
  49. package/dist/tsdown/{main-BdzlWPt6.js → main-Jz_9T-KA.js} +18 -10
  50. package/dist/tsdown/npm_entry_picomatch.cjs +1 -1
  51. package/dist/tsdown/npm_entry_tree-kill.cjs +11 -13
  52. package/dist/tsdown/{resolver-cwLsPb2o-oj1hqxK6.js → resolver-cwLsPb2o-BqQjnCbF.js} +3 -3
  53. package/dist/tsdown/run.js +5 -5
  54. package/dist/tsdown/{src-BV-UJr_R.js → src-D5keKqGd.js} +5 -5
  55. package/dist/tsdown/{target-CNxIDvSz-eoHNdJNs.js → target-Bab3CUeB-CERZYTwS.js} +34 -28
  56. package/dist/tsdown/{tsc-zcbB6ZVY.js → tsc-DmzrnJwy.js} +4 -5
  57. package/dist/tsdown/tsdown-css.js +13 -16
  58. package/dist/tsdown/tsdown-exe.js +4 -4
  59. package/dist/vite/client/bundledDevClient.mjs +1465 -0
  60. package/dist/vite/client/client.mjs +51 -82
  61. package/dist/vite/node/chunks/build.js +47 -43
  62. package/dist/vite/node/chunks/dist.js +26 -85
  63. package/dist/vite/node/chunks/dist2.js +5 -10
  64. package/dist/vite/node/chunks/node.js +2728 -2311
  65. package/dist/vite/node/chunks/postcss-import.js +10 -10
  66. package/dist/vite/node/index.d.ts +68 -14
  67. package/dist/vite/node/module-runner.js +21 -11
  68. package/dist/vite/types/customEvent.d.ts +3 -1
  69. package/dist/vite/types/hmrPayload.d.ts +20 -6
  70. package/package.json +32 -18
  71. package/dist/rolldown/shared/rolldown-BnV7isAX.mjs +0 -40
  72. package/dist/tsdown/internal-C7ewSPAZ.js +0 -3
  73. package/dist/tsdown/load-tsc-BKULZsrs-BFmeD6Bu.js +0 -18
  74. package/dist/tsdown/tsc-context-CA76SkkZ.js +0 -23
@@ -1,7 +1,7 @@
1
- import { A as __toESM, C as resolveComma, D as __commonJSMin, E as toArray, O as __exportAll$1, S as promiseWithResolvers, T as slash, _ as debounce, b as noop, c as blue, d as green, g as yellow, h as underline, l as bold, n as z, r as createDebug, t as R, u as dim, v as importWithError, w as resolveRegex, x as pkgExists, y as matchPattern } from "./main-BdzlWPt6.js";
2
- import { a as createSuppressWarnings, c as globalLogger, i as createLogger, l as prettyFormat, n as version, o as generateColor, r as LogLevels, s as getNameLabel } from "./debug-BntVTkRq-BGIoAiTa.js";
3
- import { A as fsStat, D as fsCopy, E as formatBytes, M as stripExtname, O as fsExists, S as filename_js_to_dts, a as resolveTarget, d as satisfies, g as RE_JS, j as lowestCommonAncestor, k as fsRemove, m as RE_DTS, o as validateSea, p as RE_CSS, r as buildExe, s as coerce, u as parseRange, v as RE_NODE_MODULES$1 } from "./target-CNxIDvSz-eoHNdJNs.js";
4
- import { n as ee } from "./dist-DCMiHFrJ.js";
1
+ import { A as __toESM, C as resolveComma, D as __commonJSMin, E as toArray, O as __exportAll$1, S as pkgExists, T as slash, _ as createConcurrencyExecutor, b as matchPattern, c as blue, d as green, g as yellow, h as underline, l as bold, n as z, r as createDebug, t as R, u as dim, v as debounce, w as resolveRegex, x as noop, y as importWithError } from "./main-Jz_9T-KA.js";
2
+ import { a as createSuppressWarnings, c as globalLogger, i as createLogger, l as prettyFormat, n as version, o as generateColor, r as LogLevels, s as getNameLabel } from "./debug-CKcBYQLP-avlAPNcV.js";
3
+ import { A as fsStat, D as fsCopy, E as formatBytes, M as stripExtname, O as fsExists, S as filename_js_to_dts, a as resolveTarget, d as satisfies, g as RE_JS, j as lowestCommonAncestor, k as fsRemove, m as RE_DTS, o as validateSea, p as RE_CSS, r as buildExe, s as coerce, u as parseRange, v as RE_NODE_MODULES$1 } from "./target-Bab3CUeB-CERZYTwS.js";
4
+ import { n as ee } from "./dist-CMKwGGNp.js";
5
5
  import module$1, { builtinModules, createRequire, isBuiltin } from "node:module";
6
6
  import process$1 from "node:process";
7
7
  import readline from "node:readline";
@@ -23,7 +23,7 @@ import { AsyncLocalStorage } from "node:async_hooks";
23
23
  import { Buffer } from "node:buffer";
24
24
  import { brotliCompress, gzip } from "node:zlib";
25
25
  import { importGlobPlugin } from "@voidzero-dev/vite-plus-core/rolldown/experimental";
26
- //#region ../../node_modules/.pnpm/tsdown@0.22.13_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.13_@tsdown+exe@0.22.13_@t_f26a610f558bef85f3db2230cc877c56/node_modules/tsdown/dist/deps-BM9kaLOG.mjs
26
+ //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_3f66331a323f6503c9462b3ef80883b8/node_modules/tsdown/dist/deps-B_uZzM4C.mjs
27
27
  const shimFile = path.resolve(import.meta.dirname, "..", "esm-shims.js");
28
28
  const shimsInject = {
29
29
  __dirname: [shimFile, "__dirname"],
@@ -175,9 +175,9 @@ function DepsPlugin({ pkg, deps: { neverBundle, alwaysBundle: jsAlwaysBundle, on
175
175
  if (onlyBundle) errors.push(...Array.from(deps).filter((dep) => !matchPattern(dep, onlyBundle)).map((dep) => `${yellow(dep)} is located in ${blue`node_modules`} but is not included in ${blue`deps.onlyBundle`} option.\nTo fix this, either add it to ${blue`deps.onlyBundle`}, declare it as a production or peer dependency in your package.json, or externalize it manually.\nImported by\n${[...importers.get(dep) || []].map((s) => `- ${underline(s)}`).join("\n")}`));
176
176
  if (errors.length) this.error(errors.join("\n\n"));
177
177
  if (onlyBundle) {
178
- const unusedPatterns = onlyBundle.filter((pattern) => !Array.from(deps).some((dep) => matchPattern(dep, [pattern])));
178
+ const unusedPatterns = onlyBundle.filter((pattern) => Array.from(deps).every((dep) => !matchPattern(dep, [pattern])));
179
179
  if (unusedPatterns.length) logger.info(nameLabel, `The following entries in ${blue`deps.onlyBundle`} are not used in the bundle:\n${unusedPatterns.map((pattern) => `- ${yellow(pattern)}`).join("\n")}\nConsider removing them to keep your configuration clean.`);
180
- } else if (onlyBundle == null && deps.size) logger.info(nameLabel, `Hint: consider adding ${blue`deps.onlyBundle`} option to avoid unintended bundling of dependencies, or set ${blue`deps.onlyBundle: false`} to disable this hint.\nSee more at ${underline`https://tsdown.dev/options/dependencies#deps-onlybundle`}\nDetected dependencies in bundle:\n${Array.from(deps).map((dep) => `- ${blue(dep)}`).join("\n")}`);
180
+ } else if (onlyBundle == null && deps.size) logger.info(nameLabel, `Hint: consider adding ${blue`deps.onlyBundle`} option to avoid unintended bundling of dependencies, or set ${blue`deps.onlyBundle: false`} to disable this hint.\nSee more at ${underline`https://tsdown.dev/options/dependencies#deps-onlybundle`}\nDetected dependencies in bundle:\n${Array.from(deps, (dep) => `- ${blue(dep)}`).join("\n")}`);
181
181
  }
182
182
  }
183
183
  };
@@ -897,7 +897,7 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
897
897
  };
898
898
  module.exports = {
899
899
  DEFAULT_MAX_EXTGLOB_RECURSION,
900
- MAX_LENGTH: 1024 * 64,
900
+ MAX_LENGTH: 65536,
901
901
  POSIX_REGEX_SOURCE: {
902
902
  __proto__: null,
903
903
  alnum: "a-zA-Z0-9",
@@ -3507,7 +3507,7 @@ async function resolveArrayEntry(entries, cwd, root) {
3507
3507
  }
3508
3508
  function writeJsonFile(filePath, content) {
3509
3509
  let originalText;
3510
- let originalJson = void 0;
3510
+ let originalJson;
3511
3511
  let originalIndent = 2;
3512
3512
  let originalEOL = "\n";
3513
3513
  let originalHasTrailingNewline = false;
@@ -3600,7 +3600,7 @@ async function generateExports(pkg, chunks, options, inlinedDeps) {
3600
3600
  }
3601
3601
  }
3602
3602
  }
3603
- const sortedExportsMap = Array.from(exportsMap.entries()).toSorted(([a], [b]) => {
3603
+ const sortedExportsMap = [...exportsMap].toSorted(([a], [b]) => {
3604
3604
  if (a === "index") return -1;
3605
3605
  return a.localeCompare(b);
3606
3606
  });
@@ -3799,10 +3799,9 @@ async function readPackageJson(dir) {
3799
3799
  };
3800
3800
  }
3801
3801
  function getPackageType(pkg) {
3802
- if (pkg?.type) {
3803
- if (!["module", "commonjs"].includes(pkg.type)) throw new Error(`Invalid package.json type: ${pkg.type}`);
3804
- return pkg.type;
3805
- }
3802
+ if (!pkg?.type) return;
3803
+ if (!["module", "commonjs"].includes(pkg.type)) throw new Error(`Invalid package.json type: ${pkg.type}`);
3804
+ return pkg.type;
3806
3805
  }
3807
3806
  function normalizeFormat(format) {
3808
3807
  switch (format) {
@@ -3850,9 +3849,9 @@ async function loadViteConfig(prefix, cwd, configLoader) {
3850
3849
  const configPrefix = "tsdown.config";
3851
3850
  async function loadConfigFile(inlineConfig, workspace, rootConfig) {
3852
3851
  let cwd = inlineConfig.cwd || process$1.cwd();
3853
- let overrideConfig = false;
3854
3852
  let { config: filePath } = inlineConfig;
3855
3853
  if (filePath === false) return { configs: [{}] };
3854
+ let overrideConfig = false;
3856
3855
  if (typeof filePath === "string") {
3857
3856
  const stats = await fsStat(filePath);
3858
3857
  if (stats) {
@@ -3970,7 +3969,7 @@ const debug$8 = createDebug("tsdown:config:options");
3970
3969
  * **Internal API, not for public use**
3971
3970
  * @private
3972
3971
  */
3973
- async function resolveUserConfig(userConfig, inlineConfig, configDeps) {
3972
+ async function resolveUserConfig(userConfig, inlineConfig, configDeps, runBuild = createConcurrencyExecutor()) {
3974
3973
  {
3975
3974
  const flat = await flattenPlugins(userConfig.plugins);
3976
3975
  for (const plugin of flat) {
@@ -4112,6 +4111,7 @@ async function resolveUserConfig(userConfig, inlineConfig, configDeps) {
4112
4111
  rawEntry,
4113
4112
  report,
4114
4113
  root: resolvedRoot,
4114
+ runBuild,
4115
4115
  shims,
4116
4116
  sourcemap,
4117
4117
  target,
@@ -4132,7 +4132,8 @@ async function resolveUserConfig(userConfig, inlineConfig, configDeps) {
4132
4132
  copy: once ? config.copy : void 0,
4133
4133
  onSuccess: once ? config.onSuccess : void 0,
4134
4134
  format: normalizeFormat(fmt),
4135
- ...overrides
4135
+ ...overrides,
4136
+ runBuild
4136
4137
  };
4137
4138
  });
4138
4139
  for (const resolved of resolvedConfigs) {
@@ -4182,7 +4183,7 @@ function filterConfig(filter, configCwd, name) {
4182
4183
  return toArray(filter).some((value) => name && name === value || cwd === value);
4183
4184
  }
4184
4185
  //#endregion
4185
- //#region ../../node_modules/.pnpm/tsdown@0.22.13_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.13_@tsdown+exe@0.22.13_@t_f26a610f558bef85f3db2230cc877c56/node_modules/tsdown/dist/watch-CiWfWcBn.mjs
4186
+ //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_3f66331a323f6503c9462b3ef80883b8/node_modules/tsdown/dist/watch-DOMHXvCH.mjs
4186
4187
  async function copy(options) {
4187
4188
  if (!options.copy) return;
4188
4189
  const resolved = await resolveCopyEntries(options);
@@ -4562,8 +4563,8 @@ var Hookable = class {
4562
4563
  }
4563
4564
  };
4564
4565
  //#endregion
4565
- //#region ../../node_modules/.pnpm/tsdown@0.22.13_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.13_@tsdown+exe@0.22.13_@t_f26a610f558bef85f3db2230cc877c56/node_modules/tsdown/dist/build-oq13wECG.mjs
4566
- var build_oq13wECG_exports = /* @__PURE__ */ __exportAll$1({
4566
+ //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_3f66331a323f6503c9462b3ef80883b8/node_modules/tsdown/dist/build-D_enfyvD.mjs
4567
+ var build_D_enfyvD_exports = /* @__PURE__ */ __exportAll$1({
4567
4568
  n: () => buildWithConfigs,
4568
4569
  r: () => build_exports,
4569
4570
  t: () => build$1
@@ -4631,15 +4632,17 @@ async function resolveConfig(inlineConfig) {
4631
4632
  if (inlineConfig.cwd) inlineConfig.cwd = path.resolve(inlineConfig.cwd);
4632
4633
  const { configs: rootConfigs, deps: rootDeps } = await loadConfigFile(inlineConfig);
4633
4634
  const globalDeps = new Set(rootDeps);
4635
+ const runBuild = createConcurrencyExecutor(inlineConfig.concurrency);
4634
4636
  const configs = (await Promise.all(rootConfigs.map(async (rootConfig) => {
4635
4637
  const { configs: workspaceConfigs, deps: workspaceDeps } = await resolveWorkspace(rootConfig, inlineConfig, rootDeps);
4636
4638
  debug$4("workspace configs %O", workspaceConfigs);
4637
- const configs = (await Promise.all(workspaceConfigs.filter((config) => !config.workspace || config.entry).map((config) => resolveUserConfig(config, inlineConfig, workspaceDeps)))).flat().filter((config) => !!config);
4639
+ const configs = (await Promise.all(workspaceConfigs.filter((config) => !config.workspace || config.entry).map((config) => resolveUserConfig(config, inlineConfig, workspaceDeps, runBuild)))).flat().filter((config) => !!config);
4638
4640
  workspaceDeps.forEach((dep) => globalDeps.add(dep));
4639
4641
  return configs;
4640
4642
  }))).flat();
4641
4643
  debug$4("resolved configs %O", configs);
4642
4644
  if (configs.length === 0) throw new Error("No valid configuration found.");
4645
+ if (inlineConfig.concurrency != null && configs.some((config) => config.watch)) globalLogger.warn("`--concurrency` is not supported in watch mode and will be ignored.");
4643
4646
  return {
4644
4647
  configs,
4645
4648
  deps: globalDeps
@@ -4824,7 +4827,7 @@ function initBundleByPkg(configs) {
4824
4827
  const pkgJson = config.pkg?.packageJsonPath;
4825
4828
  if (!pkgJson) continue;
4826
4829
  if (!map[pkgJson]) {
4827
- const { promise, resolve } = promiseWithResolvers();
4830
+ const { promise, resolve } = Promise.withResolvers();
4828
4831
  map[pkgJson] = {
4829
4832
  promise,
4830
4833
  resolve,
@@ -4875,7 +4878,7 @@ async function bundleDone(bundleByPkg, bundle) {
4875
4878
  async function packTarball(packageJsonPath) {
4876
4879
  const pkgDir = path.dirname(packageJsonPath);
4877
4880
  const destination = await mkdtemp(path.join(tmpdir(), "tsdown-pack-"));
4878
- const { detect } = await import("./detect-DGhJGEqb-S-tkSzpt.js");
4881
+ const { detect } = await import("./detect-DGhJGEqb-CGd2brAW.js");
4879
4882
  try {
4880
4883
  const detected = await detect({ cwd: pkgDir });
4881
4884
  debug$1("Detected package manager: %o", detected);
@@ -4908,7 +4911,7 @@ function mergeInlinedDeps(bundles) {
4908
4911
  for (const v of versions) merged.get(pkgName).add(v);
4909
4912
  }
4910
4913
  if (!merged.size) return;
4911
- const sorted = [...merged.entries()].toSorted(([a], [b]) => a.localeCompare(b));
4914
+ const sorted = [...merged].toSorted(([a], [b]) => a.localeCompare(b));
4912
4915
  const result = {};
4913
4916
  for (const [pkgName, versions] of sorted) result[pkgName] = versions.size === 1 ? [...versions][0] : [...versions].toSorted();
4914
4917
  return result;
@@ -5020,7 +5023,7 @@ async function resolveInputOptions(config, format, configDeps, bundle, cjsDts, i
5020
5023
  if (nodeProtocol) plugins.push(NodeProtocolPlugin(nodeProtocol));
5021
5024
  if (config.pkg || config.deps.skipNodeModulesBundle || config.deps.neverBundle === true || config.deps.dts.neverBundle === true) plugins.push(DepsPlugin(config, bundle));
5022
5025
  if (dts) {
5023
- const { dts: dtsPlugin } = await import("./dist-CxIM8o7n.js");
5026
+ const { dts: dtsPlugin } = await import("./dist-BZO8q3c0.js");
5024
5027
  const { cjsReexport: _, ...dtsPluginOptions } = dts;
5025
5028
  const options = {
5026
5029
  tsconfig,
@@ -5320,7 +5323,7 @@ async function buildSingle(config, configDeps, isDualFormat, clean, restart, don
5320
5323
  watcher = watch(configs);
5321
5324
  handleWatcher(watcher);
5322
5325
  } else {
5323
- const outputs = await build(configs);
5326
+ const outputs = await config.runBuild(() => build(configs));
5324
5327
  for (const { output } of outputs) chunks.push(...addOutDirToChunks(output, outDir));
5325
5328
  }
5326
5329
  if (!watch$1) {
@@ -5375,7 +5378,6 @@ async function buildSingle(config, configDeps, isDualFormat, clean, restart, don
5375
5378
  await event.result.close();
5376
5379
  logger.error(event.error);
5377
5380
  hasError = true;
5378
- break;
5379
5381
  }
5380
5382
  });
5381
5383
  }
@@ -5404,4 +5406,4 @@ async function buildSingle(config, configDeps, isDualFormat, clean, restart, don
5404
5406
  }
5405
5407
  }
5406
5408
  //#endregion
5407
- export { resolveUserConfig as a, mergeConfig as i, buildWithConfigs as n, build_oq13wECG_exports as r, build$1 as t };
5409
+ export { resolveUserConfig as a, mergeConfig as i, buildWithConfigs as n, build_D_enfyvD_exports as r, build$1 as t };
@@ -1,7 +1,7 @@
1
- import { C as resolveComma, E as toArray, a as namespaces, b as noop, c as blue, d as green, g as yellow, i as enable, m as rgb, o as bgRed, r as createDebug, s as bgYellow, l as bold, p as red } from "./main-BdzlWPt6.js";
1
+ import { C as resolveComma, E as toArray, a as namespaces, c as blue, d as green, g as yellow, i as enable, m as rgb, o as bgRed, r as createDebug, s as bgYellow, x as noop, l as bold, p as red } from "./main-Jz_9T-KA.js";
2
2
  import process from "node:process";
3
3
  import readline from "node:readline";
4
- //#region ../../node_modules/.pnpm/tsdown@0.22.13_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.13_@tsdown+exe@0.22.13_@t_f26a610f558bef85f3db2230cc877c56/node_modules/tsdown/dist/logger-9ze2jxCr.mjs
4
+ //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_3f66331a323f6503c9462b3ef80883b8/node_modules/tsdown/dist/logger-Das7E2bJ.mjs
5
5
  const LogLevels = {
6
6
  silent: 0,
7
7
  error: 1,
@@ -94,9 +94,7 @@ function prettyFormat(format) {
94
94
  case "es":
95
95
  formatText = "ESM";
96
96
  break;
97
- default:
98
- formatText = format.toUpperCase();
99
- break;
97
+ default: formatText = format.toUpperCase();
100
98
  }
101
99
  return formatColor(`[${formatText}]`);
102
100
  }
@@ -142,8 +140,8 @@ function hue2rgb(p, q, t) {
142
140
  return p;
143
141
  }
144
142
  //#endregion
145
- //#region ../../node_modules/.pnpm/tsdown@0.22.13_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.13_@tsdown+exe@0.22.13_@t_f26a610f558bef85f3db2230cc877c56/node_modules/tsdown/dist/debug-BntVTkRq.mjs
146
- var version = "0.22.13";
143
+ //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_3f66331a323f6503c9462b3ef80883b8/node_modules/tsdown/dist/debug-CKcBYQLP.mjs
144
+ var version = "0.22.14";
147
145
  const debugLog = createDebug("tsdown:debug");
148
146
  function enableDebug(debug) {
149
147
  if (!debug) return;
@@ -1,7 +1,7 @@
1
1
  import process from "node:process";
2
2
  import path from "node:path";
3
3
  import fs from "node:fs/promises";
4
- //#region ../../node_modules/.pnpm/tsdown@0.22.13_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.13_@tsdown+exe@0.22.13_@t_f26a610f558bef85f3db2230cc877c56/node_modules/tsdown/dist/detect-DGhJGEqb.mjs
4
+ //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_3f66331a323f6503c9462b3ef80883b8/node_modules/tsdown/dist/detect-DGhJGEqb.mjs
5
5
  const AGENTS = [
6
6
  "npm",
7
7
  "yarn",
@@ -1,8 +1,6 @@
1
- import { r as createDebug } from "./main-BdzlWPt6.js";
2
- import { C as filename_to_dts, S as filename_js_to_dts, T as resolveTemplateFn, _ as RE_JSON, b as RE_TS, g as RE_JS, h as RE_DTS_MAP, m as RE_DTS, p as RE_CSS, v as RE_NODE_MODULES, w as replaceTemplateName, x as filename_dts_to, y as RE_ROLLDOWN_RUNTIME } from "./target-CNxIDvSz-eoHNdJNs.js";
3
- import { n as ee, t as at } from "./dist-DCMiHFrJ.js";
4
- import { n as globalContext, r as invalidateContextFile, t as createContext } from "./tsc-context-CA76SkkZ.js";
5
- import { t as requireTS } from "./load-tsc-BKULZsrs-BFmeD6Bu.js";
1
+ import { r as createDebug } from "./main-Jz_9T-KA.js";
2
+ import { C as filename_to_dts, S as filename_js_to_dts, T as resolveTemplateFn, _ as RE_JSON, b as RE_TS, g as RE_JS, h as RE_DTS_MAP, m as RE_DTS, p as RE_CSS, v as RE_NODE_MODULES, w as replaceTemplateName, x as filename_dts_to, y as RE_ROLLDOWN_RUNTIME } from "./target-Bab3CUeB-CERZYTwS.js";
3
+ import { n as ee, t as at } from "./dist-CMKwGGNp.js";
6
4
  import { createRequire } from "node:module";
7
5
  import process from "node:process";
8
6
  import { styleText } from "node:util";
@@ -15,6 +13,41 @@ import { tmpdir } from "node:os";
15
13
  import { ResolverFactory, isolatedDeclarationSync } from "@voidzero-dev/vite-plus-core/rolldown/experimental";
16
14
  import { print } from "yuku-codegen";
17
15
  import { parse as parse$1 } from "yuku-parser";
16
+ //#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.27.13_@typescript+native-preview@7.0.0-dev.20260605.1_oxc-resolve_19173df252fb1b72b750fe1e656588b8/node_modules/rolldown-plugin-dts/dist/tsc-context.mjs
17
+ const debug$7 = createDebug("rolldown-plugin-dts:tsc-context");
18
+ function createContext() {
19
+ return {
20
+ programs: [],
21
+ files: /* @__PURE__ */ new Map(),
22
+ projects: /* @__PURE__ */ new Map()
23
+ };
24
+ }
25
+ function invalidateContextFile(context, file) {
26
+ file = path.resolve(file).replaceAll("\\", "/");
27
+ debug$7(`invalidating context file: ${file}`);
28
+ context.files.delete(file);
29
+ context.programs = context.programs.filter((program) => {
30
+ return !program.getSourceFiles().some((sourceFile) => sourceFile.fileName === file);
31
+ });
32
+ context.projects.clear();
33
+ }
34
+ const globalContext = createContext();
35
+ //#endregion
36
+ //#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.27.13_@typescript+native-preview@7.0.0-dev.20260605.1_oxc-resolve_19173df252fb1b72b750fe1e656588b8/node_modules/rolldown-plugin-dts/dist/load-tsc-BKULZsrs.mjs
37
+ const require$2 = createRequire(import.meta.url);
38
+ const debug$6 = createDebug("rolldown-plugin-dts:load-tsc");
39
+ let _ts;
40
+ function requireTS(message = "") {
41
+ if (_ts) return _ts;
42
+ try {
43
+ _ts = require$2("typescript");
44
+ if (debug$6.enabled) debug$6(`loaded TypeScript version ${_ts.version} from ${require$2.resolve("typescript")}`);
45
+ return _ts;
46
+ } catch (cause) {
47
+ throw new Error(`TypeScript is not installed. You should install \`typescript\` package. ${message}`, { cause });
48
+ }
49
+ }
50
+ //#endregion
18
51
  //#region ../../node_modules/.pnpm/yuku-ast@0.7.0/node_modules/yuku-ast/dist/index.js
19
52
  const ALIAS_GROUPS = {
20
53
  Expression: [
@@ -1092,7 +1125,7 @@ function nameOf(node) {
1092
1125
  return null;
1093
1126
  }
1094
1127
  //#endregion
1095
- //#region ../../node_modules/.pnpm/dts-resolver@3.0.0_oxc-resolver@11.21.3/node_modules/dts-resolver/dist/index.mjs
1128
+ //#region ../../node_modules/.pnpm/dts-resolver@3.0.0_oxc-resolver@11.24.2/node_modules/dts-resolver/dist/index.mjs
1096
1129
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
1097
1130
  function createResolver({ tsconfig, cwd = process.cwd(), resolveNodeModules = false, ResolverFactory } = {}) {
1098
1131
  ResolverFactory ||= __require("oxc-resolver").ResolverFactory;
@@ -1204,7 +1237,7 @@ function ensureValue(value) {
1204
1237
  return value && ALLOW_EXTENSIONS.has(extname(value)) ? value.replaceAll("\\", "/") : null;
1205
1238
  }
1206
1239
  //#endregion
1207
- //#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.27.12_@typescript+native-preview@7.0.0-dev.20260605.1_oxc-resolve_d94a4da753642eee691447f5bf042e95/node_modules/rolldown-plugin-dts/dist/index.mjs
1240
+ //#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.27.13_@typescript+native-preview@7.0.0-dev.20260605.1_oxc-resolve_19173df252fb1b72b750fe1e656588b8/node_modules/rolldown-plugin-dts/dist/index.mjs
1208
1241
  function createDtsInputPlugin({ sideEffects }) {
1209
1242
  return {
1210
1243
  name: "rolldown-plugin-dts:dts-input",
@@ -1332,7 +1365,7 @@ function createGeneratePlugin({ generator, entry, tsconfig, tsconfigRaw, build,
1332
1365
  if (generator === "tsgo") tsgoContext = await runTsgo(logger, rootDir, tsconfig, sourcemap, tsgo.path);
1333
1366
  else if (generator === "tsc") if (parallel) tscWorker = createTscWorker();
1334
1367
  else {
1335
- tscModule = await import("./tsc-zcbB6ZVY.js");
1368
+ tscModule = await import("./tsc-DmzrnJwy.js");
1336
1369
  if (newContext) tscContext = createContext();
1337
1370
  }
1338
1371
  if (!Array.isArray(options.input)) for (const [name, id] of Object.entries(options.input)) {
@@ -2417,15 +2450,18 @@ var VolarContext = class {
2417
2450
  }
2418
2451
  getExtraFileExtensions() {
2419
2452
  if (!this.plugins.length) return;
2420
- return this.plugins.flatMap((plugin) => plugin.tsFileExtensionInfos);
2453
+ return this.plugins.flatMap((plugin) => plugin.tsFileExtensionInfos || []);
2421
2454
  }
2422
2455
  getCreateProgram(ts) {
2423
2456
  if (!this.plugins.length) return ts.createProgram;
2424
- const { proxyCreateProgram } = this.plugins[0].volarTypeScript;
2457
+ const volarTypeScript = this.plugins.find((plugin) => plugin.volarTypeScript)?.volarTypeScript;
2458
+ if (!volarTypeScript) return ts.createProgram;
2459
+ const { proxyCreateProgram } = volarTypeScript;
2425
2460
  return proxyCreateProgram(ts, ts.createProgram, (ts, options) => {
2426
2461
  const setups = [];
2427
2462
  const plugins = [];
2428
2463
  for (const plugin of this.plugins) {
2464
+ if (!plugin.create) continue;
2429
2465
  const result = plugin.create(ts, options);
2430
2466
  if (Array.isArray(result)) plugins.push(...result);
2431
2467
  else {
@@ -2583,7 +2619,7 @@ function createDtsResolvePlugin({ cwd, tsconfig, tsconfigRaw, resolver, sideEffe
2583
2619
  async function resolveDtsPath(id, importer, rolldownResolution) {
2584
2620
  let dtsPath;
2585
2621
  if (resolver === "tsc") {
2586
- const { tscResolve } = await import("./resolver-cwLsPb2o-oj1hqxK6.js");
2622
+ const { tscResolve } = await import("./resolver-cwLsPb2o-BqQjnCbF.js");
2587
2623
  dtsPath = tscResolve(id, importer, cwd, tsconfig, tsconfigRaw);
2588
2624
  } else dtsPath = baseDtsResolver(id, importer);
2589
2625
  debug$1("Using %s for dts import: %O -> %O", resolver, id, dtsPath);
@@ -2610,4 +2646,4 @@ function dts(options = {}) {
2610
2646
  return plugins;
2611
2647
  }
2612
2648
  //#endregion
2613
- export { dts };
2649
+ export { dts, globalContext as n, requireTS as t };
@@ -404,9 +404,7 @@ function Pe(e, n, s = W.DEFAULT) {
404
404
  case 2:
405
405
  d(12);
406
406
  break;
407
- case 6:
408
- d(16);
409
- break;
407
+ case 6: d(16);
410
408
  }
411
409
  switch (T) {
412
410
  case 12:
@@ -63,7 +63,7 @@ declare global {
63
63
  }
64
64
  }
65
65
  //#endregion
66
- //#region ../../node_modules/.pnpm/@tsdown+exe@0.22.13_tsdown@0.22.13/node_modules/@tsdown/exe/dist/index.d.mts
66
+ //#region ../../node_modules/.pnpm/@tsdown+exe@0.22.14_tsdown@0.22.14/node_modules/@tsdown/exe/dist/index.d.mts
67
67
  //#region src/platform.d.ts
68
68
  type ExePlatform = "win" | "darwin" | "linux";
69
69
  type ExeArch = "x64" | "arm64";
@@ -105,7 +105,7 @@ interface ExeExtensionOptions {
105
105
  nodeDistIndexUrl?: string;
106
106
  }
107
107
  //#endregion
108
- //#region ../../node_modules/.pnpm/@tsdown+css@0.22.13_jiti@2.7.0_postcss-import@16.1.1_postcss@8.5.20__postcss@8.5.20_sas_3e4d0025e048aeda9bd895926fc2faf1/node_modules/@tsdown/css/dist/index.d.mts
108
+ //#region ../../node_modules/.pnpm/@tsdown+css@0.22.14_jiti@2.7.0_postcss-import@16.1.1_postcss@8.5.25__postcss@8.5.25_sas_6a16dd13a926d2b2137531bbae459a0e/node_modules/@tsdown/css/dist/index.d.mts
109
109
  //#region src/options.d.ts
110
110
  type LightningCSSOptions = Omit<TransformOptions<any>, "filename" | "code">;
111
111
  interface CSSModulesOptions {
@@ -260,13 +260,13 @@ interface StylusPreprocessorOptions {
260
260
  [key: string]: any;
261
261
  }
262
262
  //#endregion
263
- //#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.27.12_@typescript+native-preview@7.0.0-dev.20260605.1_oxc-resolve_d94a4da753642eee691447f5bf042e95/node_modules/rolldown-plugin-dts/dist/volar-ynbQeQZt.d.mts
263
+ //#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.27.13_@typescript+native-preview@7.0.0-dev.20260605.1_oxc-resolve_19173df252fb1b72b750fe1e656588b8/node_modules/rolldown-plugin-dts/dist/volar-Cxz5qLKE.d.mts
264
264
  //#region src/volar.d.ts
265
265
  interface VolarPlugin {
266
266
  extensionPatterns: RegExp[];
267
- tsFileExtensionInfos: FileExtensionInfo[];
268
- volarTypeScript: typeof import("@volar/typescript");
269
- create: Parameters<(typeof import("@volar/typescript"))["proxyCreateProgram"]>[2];
267
+ tsFileExtensionInfos?: FileExtensionInfo[];
268
+ volarTypeScript?: typeof import("@volar/typescript");
269
+ create?: Parameters<(typeof import("@volar/typescript"))["proxyCreateProgram"]>[2];
270
270
  toTsFilename?: (id: string) => string;
271
271
  }
272
272
  //#endregion
@@ -1133,7 +1133,7 @@ type TsConfigJson = {
1133
1133
  references?: TsConfigJson.References[];
1134
1134
  };
1135
1135
  //#endregion
1136
- //#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.27.12_@typescript+native-preview@7.0.0-dev.20260605.1_oxc-resolve_d94a4da753642eee691447f5bf042e95/node_modules/rolldown-plugin-dts/dist/index.d.mts
1136
+ //#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.27.13_@typescript+native-preview@7.0.0-dev.20260605.1_oxc-resolve_19173df252fb1b72b750fe1e656588b8/node_modules/rolldown-plugin-dts/dist/index.d.mts
1137
1137
  //#region src/options.d.ts
1138
1138
  interface Logger$1 {
1139
1139
  info: (...args: any[]) => void;
@@ -1373,7 +1373,7 @@ interface TsgoOptions {
1373
1373
  path?: string;
1374
1374
  }
1375
1375
  //#endregion
1376
- //#region ../../node_modules/.pnpm/tsdown@0.22.13_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.13_@tsdown+exe@0.22.13_@t_f26a610f558bef85f3db2230cc877c56/node_modules/tsdown/dist/types-D8DLoC_H.d.mts
1376
+ //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_3f66331a323f6503c9462b3ef80883b8/node_modules/tsdown/dist/types-DP3_0kws.d.mts
1377
1377
  //#region src/utils/types.d.ts
1378
1378
  type Overwrite<T, U> = Omit<T, keyof U> & U;
1379
1379
  type Awaitable<T> = T | Promise<T>;
@@ -2253,6 +2253,7 @@ interface ReportOptions {
2253
2253
  */
2254
2254
  maxCompressSize?: number;
2255
2255
  }
2256
+ type ConcurrencyExecutor = <T>(task: () => Promise<T>) => Promise<T>;
2256
2257
  //#endregion
2257
2258
  //#region src/config/types.d.ts
2258
2259
  interface DtsOptions extends Options$1 {
@@ -2584,6 +2585,10 @@ interface UserConfig {
2584
2585
  */
2585
2586
  hash?: boolean;
2586
2587
  /**
2588
+ * Converts a single default export from an explicit CJS entry module to
2589
+ * `module.exports`. It does not apply to non-entry chunks emitted in
2590
+ * unbundle mode.
2591
+ *
2587
2592
  * @default true
2588
2593
  */
2589
2594
  cjsDefault?: boolean;
@@ -2808,6 +2813,10 @@ interface InlineConfig extends UserConfig {
2808
2813
  * Filter configs by cwd or name.
2809
2814
  */
2810
2815
  filter?: RegExp | Arrayable<string>;
2816
+ /**
2817
+ * Maximum number of Rolldown builds to run in parallel.
2818
+ */
2819
+ concurrency?: number;
2811
2820
  }
2812
2821
  type UserConfigFn = (inlineConfig: InlineConfig, context: {
2813
2822
  ci: boolean;
@@ -2837,6 +2846,7 @@ type ResolvedConfig = Overwrite<MarkPartial<Omit<UserConfig, "workspace" | "from
2837
2846
  */
2838
2847
  root: string;
2839
2848
  configDeps: Set<string>;
2849
+ runBuild: ConcurrencyExecutor;
2840
2850
  dts: false | DtsOptions;
2841
2851
  report: false | ReportOptions;
2842
2852
  tsconfig: false | string;
@@ -2848,7 +2858,7 @@ type ResolvedConfig = Overwrite<MarkPartial<Omit<UserConfig, "workspace" | "from
2848
2858
  exe: false | ExeOptions;
2849
2859
  }>;
2850
2860
  //#endregion
2851
- //#region ../../node_modules/.pnpm/tsdown@0.22.13_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.13_@tsdown+exe@0.22.13_@t_f26a610f558bef85f3db2230cc877c56/node_modules/tsdown/dist/config-3sAcYqvi.d.mts
2861
+ //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_3f66331a323f6503c9462b3ef80883b8/node_modules/tsdown/dist/config-Dnbs_AoW.d.mts
2852
2862
  //#region src/config/options.d.ts
2853
2863
  /**
2854
2864
  * Resolve user config into resolved configs
@@ -2856,7 +2866,7 @@ type ResolvedConfig = Overwrite<MarkPartial<Omit<UserConfig, "workspace" | "from
2856
2866
  * **Internal API, not for public use**
2857
2867
  * @private
2858
2868
  */
2859
- declare function resolveUserConfig(userConfig: UserConfig, inlineConfig: InlineConfig, configDeps: Set<string>): Promise<ResolvedConfig[]>;
2869
+ declare function resolveUserConfig(userConfig: UserConfig, inlineConfig: InlineConfig, configDeps: Set<string>, runBuild?: ConcurrencyExecutor): Promise<ResolvedConfig[]>;
2860
2870
  declare function mergeConfig(defaults: UserConfig, ...overrides: UserConfig[]): UserConfig;
2861
2871
  declare function mergeConfig(defaults: InlineConfig, ...overrides: InlineConfig[]): InlineConfig;
2862
2872
  //#endregion
@@ -2869,7 +2879,7 @@ declare function defineConfig(options: UserConfig[]): UserConfig[];
2869
2879
  declare function defineConfig(options: UserConfigFn): UserConfigFn;
2870
2880
  declare function defineConfig(options: UserConfigExport): UserConfigExport;
2871
2881
  //#endregion
2872
- //#region ../../node_modules/.pnpm/tsdown@0.22.13_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.13_@tsdown+exe@0.22.13_@t_f26a610f558bef85f3db2230cc877c56/node_modules/tsdown/dist/index.d.mts
2882
+ //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_3f66331a323f6503c9462b3ef80883b8/node_modules/tsdown/dist/index.d.mts
2873
2883
  //#region src/build.d.ts
2874
2884
  /**
2875
2885
  * Build with tsdown.
@@ -1,12 +1,12 @@
1
- import { c as globalLogger, n as version$1, t as enableDebug } from "./debug-BntVTkRq-BGIoAiTa.js";
2
- import { a as resolveUserConfig, i as mergeConfig, n as buildWithConfigs, t as build$1 } from "./build-oq13wECG-Bymq3jT5.js";
1
+ import { c as globalLogger, n as version$1, t as enableDebug } from "./debug-CKcBYQLP-avlAPNcV.js";
2
+ import { a as resolveUserConfig, i as mergeConfig, n as buildWithConfigs, t as build$1 } from "./build-D_enfyvD-X5SFXZZc.js";
3
3
  import * as Rolldown from "@voidzero-dev/vite-plus-core/rolldown";
4
- //#region ../../node_modules/.pnpm/tsdown@0.22.13_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.13_@tsdown+exe@0.22.13_@t_f26a610f558bef85f3db2230cc877c56/node_modules/tsdown/dist/config.mjs
4
+ //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_3f66331a323f6503c9462b3ef80883b8/node_modules/tsdown/dist/config.mjs
5
5
  function defineConfig(options) {
6
6
  return options;
7
7
  }
8
8
  //#endregion
9
- //#region ../../node_modules/.pnpm/tsdown@0.22.13_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.13_@tsdown+exe@0.22.13_@t_f26a610f558bef85f3db2230cc877c56/node_modules/tsdown/dist/index.mjs
9
+ //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_3f66331a323f6503c9462b3ef80883b8/node_modules/tsdown/dist/index.mjs
10
10
  const version = version$1;
11
11
  //#endregion
12
12
  export { Rolldown, build$1 as build, buildWithConfigs, defineConfig, enableDebug, globalLogger, mergeConfig, resolveUserConfig, version };
@@ -0,0 +1,3 @@
1
+ import "./main-Jz_9T-KA.js";
2
+ import "./target-Bab3CUeB-CERZYTwS.js";
3
+ export {};
@@ -35,13 +35,13 @@ var __copyProps = (to, from, except, desc) => {
35
35
  }
36
36
  return to;
37
37
  };
38
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
38
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
39
39
  value: mod,
40
40
  enumerable: true
41
41
  }) : target, mod));
42
42
  var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
43
43
  //#endregion
44
- //#region ../../node_modules/.pnpm/tsdown@0.22.13_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.13_@tsdown+exe@0.22.13_@t_f26a610f558bef85f3db2230cc877c56/node_modules/tsdown/dist/general-Cp4NiJNK.mjs
44
+ //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_3f66331a323f6503c9462b3ef80883b8/node_modules/tsdown/dist/general-BbZk8B18.mjs
45
45
  const picomatch = createRequire(import.meta.url)("./npm_entry_picomatch.cjs");
46
46
  function toArray(val, defaultValue) {
47
47
  if (Array.isArray(val)) return val;
@@ -84,13 +84,21 @@ async function importWithError(moduleName) {
84
84
  throw new Error(`Failed to import module "${moduleName}". Please ensure it is installed.`, { cause: error });
85
85
  }
86
86
  }
87
- function promiseWithResolvers() {
88
- let resolve;
89
- return {
90
- promise: new Promise((res) => {
91
- resolve = res;
92
- }),
93
- resolve
87
+ function createConcurrencyExecutor(concurrency) {
88
+ if (concurrency == null) return (task) => task();
89
+ if (!Number.isInteger(concurrency) || concurrency < 1) throw new TypeError("`--concurrency` must be a positive integer");
90
+ const queue = [];
91
+ let active = 0;
92
+ return async (task) => {
93
+ if (active >= concurrency) await new Promise((resolve) => queue.push(resolve));
94
+ else active++;
95
+ try {
96
+ return await task();
97
+ } finally {
98
+ const next = queue.shift();
99
+ if (next) next();
100
+ else active--;
101
+ }
94
102
  };
95
103
  }
96
104
  function debounce(fn, delay) {
@@ -836,4 +844,4 @@ const R = (e, t, n) => {
836
844
  };
837
845
  const z = R;
838
846
  //#endregion
839
- export { __toESM as A, resolveComma as C, __commonJSMin as D, toArray as E, __exportAll as O, promiseWithResolvers as S, slash as T, debounce as _, namespaces as a, noop as b, blue as c, green as d, hex as f, yellow as g, underline as h, enable as i, __require as k, bold as l, rgb as m, z as n, bgRed as o, red as p, createDebug as r, bgYellow as s, R as t, dim as u, importWithError as v, resolveRegex as w, pkgExists as x, matchPattern as y };
847
+ export { __toESM as A, resolveComma as C, __commonJSMin as D, toArray as E, __exportAll as O, pkgExists as S, slash as T, createConcurrencyExecutor as _, namespaces as a, matchPattern as b, blue as c, green as d, hex as f, yellow as g, underline as h, enable as i, __require as k, bold as l, rgb as m, z as n, bgRed as o, red as p, createDebug as r, bgYellow as s, R as t, dim as u, debounce as v, resolveRegex as w, noop as x, importWithError as y };
@@ -54,7 +54,7 @@ var require_constants = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin((
54
54
  };
55
55
  module.exports = {
56
56
  DEFAULT_MAX_EXTGLOB_RECURSION,
57
- MAX_LENGTH: 1024 * 64,
57
+ MAX_LENGTH: 65536,
58
58
  POSIX_REGEX_SOURCE: {
59
59
  __proto__: null,
60
60
  alnum: "a-zA-Z0-9",
@@ -26,19 +26,17 @@ var require_tree_kill = /* @__PURE__ */ require("./npm_cjs_chunk_rolldown-runtim
26
26
  killAll(tree, signal, callback);
27
27
  });
28
28
  break;
29
- default:
30
- buildProcessTree(pid, tree, pidsToProcess, function(parentPid) {
31
- return spawn("ps", [
32
- "-o",
33
- "pid",
34
- "--no-headers",
35
- "--ppid",
36
- parentPid
37
- ]);
38
- }, function() {
39
- killAll(tree, signal, callback);
40
- });
41
- break;
29
+ default: buildProcessTree(pid, tree, pidsToProcess, function(parentPid) {
30
+ return spawn("ps", [
31
+ "-o",
32
+ "pid",
33
+ "--no-headers",
34
+ "--ppid",
35
+ parentPid
36
+ ]);
37
+ }, function() {
38
+ killAll(tree, signal, callback);
39
+ });
42
40
  }
43
41
  };
44
42
  function killAll(tree, signal, callback) {
@@ -1,7 +1,7 @@
1
- import { r as createDebug } from "./main-BdzlWPt6.js";
2
- import { t as requireTS } from "./load-tsc-BKULZsrs-BFmeD6Bu.js";
1
+ import { r as createDebug } from "./main-Jz_9T-KA.js";
2
+ import { t as requireTS } from "./dist-BZO8q3c0.js";
3
3
  import path from "node:path";
4
- //#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.27.12_@typescript+native-preview@7.0.0-dev.20260605.1_oxc-resolve_d94a4da753642eee691447f5bf042e95/node_modules/rolldown-plugin-dts/dist/resolver-cwLsPb2o.mjs
4
+ //#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.27.13_@typescript+native-preview@7.0.0-dev.20260605.1_oxc-resolve_19173df252fb1b72b750fe1e656588b8/node_modules/rolldown-plugin-dts/dist/resolver-cwLsPb2o.mjs
5
5
  const debug = createDebug("rolldown-plugin-dts:tsc-resolver");
6
6
  const ts = requireTS();
7
7
  function tscResolve(id, importer, cwd, tsconfig, tsconfigRaw, reference) {