@voidzero-dev/vite-plus-core 0.2.7 → 0.2.9

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 (75) hide show
  1. package/LICENSE +65 -1
  2. package/dist/rolldown/cli.mjs +17 -14
  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-CKyeQZen.mjs +673 -0
  22. package/dist/rolldown/shared/{binding-Dbbi0RbO.d.mts → binding-CVtkJvyl.d.mts} +11 -0
  23. package/dist/rolldown/shared/{bindingify-input-options-DVQ4K-zY.mjs → bindingify-input-options-44iPAymO.mjs} +449 -273
  24. package/dist/rolldown/shared/{constructors-CuGa75s-.mjs → constructors-6Zc-JFd7.mjs} +10 -6
  25. package/dist/rolldown/shared/{constructors-CSWbNgBZ.d.mts → constructors-XaIbWpwJ.d.mts} +2 -2
  26. package/dist/rolldown/shared/{rolldown-build-BGXNOfvH.mjs → create-bundler-option-e1FU0w0P.mjs} +72 -179
  27. package/dist/rolldown/shared/{define-config-B-IDOhDz.d.mts → define-config-DVsXPNaU.d.mts} +85 -26
  28. package/dist/rolldown/shared/{error-DFGNOCle.mjs → error-BzLGqhSQ.mjs} +1 -1
  29. package/dist/rolldown/shared/{load-config-R0z2olkB.mjs → load-config-C6QXSnoS.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-DYjJ67tj.mjs} +2 -2
  33. package/dist/rolldown/shared/{parse-D5dkElpf.mjs → parse-uDDyc1el.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-Bcd82vVT.mjs} +2 -2
  36. package/dist/rolldown/shared/rolldown-CCbQNGZt.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-vuOCmvFs.mjs} +17 -14
  39. package/dist/rolldown/utils-index.d.mts +3 -3
  40. package/dist/rolldown/utils-index.mjs +15 -13
  41. package/dist/tsdown/{build-D_enfyvD-DX5mX46j.js → build-D_enfyvD-Dg1eKRD4.js} +22 -19
  42. package/dist/tsdown/{debug-CKcBYQLP-GQrJ--dM.js → debug-CKcBYQLP-C3NhYhrk.js} +4 -6
  43. package/dist/tsdown/{detect-DGhJGEqb-Cz6qOZuP.js → detect-DGhJGEqb-6CTf16BW.js} +1 -1
  44. package/dist/tsdown/{dist-DCMiHFrJ.js → dist-CMKwGGNp.js} +1 -3
  45. package/dist/tsdown/{dist-CWolxbYK.js → dist-DyXLnzyh.js} +43 -10
  46. package/dist/tsdown/index-types.d.ts +6 -6
  47. package/dist/tsdown/index.js +4 -4
  48. package/dist/tsdown/internal-DKworeK4.js +3 -0
  49. package/dist/tsdown/{main-DI8qthUB.js → main-DiierkER.js} +211 -197
  50. package/dist/tsdown/npm_entry_picomatch.cjs +11 -7
  51. package/dist/tsdown/npm_entry_tree-kill.cjs +15 -15
  52. package/dist/tsdown/{resolver-cwLsPb2o-DvUqSYux.js → resolver-cwLsPb2o-Dk4xdAGE.js} +3 -3
  53. package/dist/tsdown/run.js +6 -6
  54. package/dist/tsdown/{src-CPDzmpAq.js → src-drVPfX63.js} +5 -5
  55. package/dist/tsdown/{target-Bab3CUeB-Di6tCARH.js → target-Bab3CUeB-DQ0pKhCv.js} +6 -6
  56. package/dist/tsdown/{tsc-BQoNcjeB.js → tsc-JnMl2z7d.js} +4 -5
  57. package/dist/tsdown/tsdown-css.js +7 -9
  58. package/dist/tsdown/tsdown-exe.js +4 -4
  59. package/dist/vite/client/bundledDevClient.mjs +1781 -0
  60. package/dist/vite/client/client.mjs +67 -92
  61. package/dist/vite/node/chunks/build.js +98 -88
  62. package/dist/vite/node/chunks/dist.js +62 -114
  63. package/dist/vite/node/chunks/dist2.js +198 -159
  64. package/dist/vite/node/chunks/node.js +3690 -3135
  65. package/dist/vite/node/chunks/postcss-import.js +20 -19
  66. package/dist/vite/node/index.d.ts +73 -17
  67. package/dist/vite/node/module-runner.js +42 -26
  68. package/dist/vite/types/customEvent.d.ts +3 -1
  69. package/dist/vite/types/hmrPayload.d.ts +20 -6
  70. package/package.json +36 -16
  71. package/dist/rolldown/shared/binding-Dby9rwGk.mjs +0 -588
  72. package/dist/rolldown/shared/rolldown-BnV7isAX.mjs +0 -40
  73. package/dist/tsdown/internal-DAh_SWnB.js +0 -3
  74. package/dist/tsdown/load-tsc-BKULZsrs-Bha6Vsu1.js +0 -18
  75. package/dist/tsdown/tsc-context-BhMGQ9Qr.js +0 -23
@@ -1,6 +1,6 @@
1
- import { n as parseSync, t as parse } from "./shared/parse-D5dkElpf.mjs";
2
- import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-2TXRF_zr.mjs";
3
- //#region ../../../node_modules/.pnpm/oxc-parser@0.141.0/node_modules/oxc-parser/src-js/generated/visit/walk.js
1
+ import { n as parseSync, t as parse } from "./shared/parse-uDDyc1el.mjs";
2
+ import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-Bcd82vVT.mjs";
3
+ //#region ../../../node_modules/.pnpm/oxc-parser@0.143.0/node_modules/oxc-parser/src-js/generated/visit/walk.js
4
4
  function walkNode(node, visitors) {
5
5
  if (node == null) return;
6
6
  if (Array.isArray(node)) {
@@ -2008,7 +2008,7 @@ function walkTSUnionType(node, visitors) {
2008
2008
  exit !== null && exit(node);
2009
2009
  }
2010
2010
  //#endregion
2011
- //#region ../../../node_modules/.pnpm/oxc-parser@0.141.0/node_modules/oxc-parser/src-js/generated/visit/type_ids.js
2011
+ //#region ../../../node_modules/.pnpm/oxc-parser@0.143.0/node_modules/oxc-parser/src-js/generated/visit/type_ids.js
2012
2012
  /** Mapping from node type name to node type ID */
2013
2013
  const NODE_TYPE_IDS_MAP = /* @__PURE__ */ new Map([
2014
2014
  ["DebuggerStatement", 0],
@@ -2178,7 +2178,7 @@ const NODE_TYPE_IDS_MAP = /* @__PURE__ */ new Map([
2178
2178
  ["TSUnionType", 164]
2179
2179
  ]);
2180
2180
  //#endregion
2181
- //#region ../../../node_modules/.pnpm/oxc-parser@0.141.0/node_modules/oxc-parser/src-js/visit/visitor.js
2181
+ //#region ../../../node_modules/.pnpm/oxc-parser@0.143.0/node_modules/oxc-parser/src-js/visit/visitor.js
2182
2182
  let compiledVisitor;
2183
2183
  function createCompiledVisitor() {
2184
2184
  compiledVisitor = [];
@@ -2241,14 +2241,16 @@ function addVisitorToCompiled(visitor) {
2241
2241
  const typeId = NODE_TYPE_IDS_MAP.get(name);
2242
2242
  if (typeId === void 0) throw new Error(`Unknown node type '${name}' in visitor object`);
2243
2243
  const existing = compiledVisitor[typeId];
2244
- if (typeId < 27) if (existing === null) compiledVisitor[typeId] = visitFn;
2245
- else if (Array.isArray(existing)) if (isExit) existing.push(visitFn);
2246
- else existing.splice(existing.length - 1, 0, visitFn);
2247
- else {
2248
- compiledVisitor[typeId] = isExit ? createVisitFnArray(existing, visitFn) : createVisitFnArray(visitFn, existing);
2249
- mergedLeafVisitorTypeIds.push(typeId);
2250
- }
2251
- else if (existing === null) {
2244
+ if (typeId < 27) {
2245
+ if (existing === null) compiledVisitor[typeId] = visitFn;
2246
+ else if (Array.isArray(existing)) {
2247
+ if (isExit) existing.push(visitFn);
2248
+ else existing.splice(existing.length - 1, 0, visitFn);
2249
+ } else {
2250
+ compiledVisitor[typeId] = isExit ? createVisitFnArray(existing, visitFn) : createVisitFnArray(visitFn, existing);
2251
+ mergedLeafVisitorTypeIds.push(typeId);
2252
+ }
2253
+ } else if (existing === null) {
2252
2254
  const enterExit = compiledVisitor[typeId] = getEnterExitObject();
2253
2255
  if (isExit) enterExit.exit = visitFn;
2254
2256
  else enterExit.enter = visitFn;
@@ -1,7 +1,7 @@
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-DI8qthUB.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-GQrJ--dM.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-Di6tCARH.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 x, r as createDebug, t as exec, u as dim, v as debounce, w as resolveRegex, x as noop, y as importWithError } from "./main-DiierkER.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-C3NhYhrk.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-DQ0pKhCv.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.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_ce23af2d06b6e55ae551016827d08ee4/node_modules/tsdown/dist/deps-B_uZzM4C.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_8361ec2a4d03114085b1954a2fc42e35/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"],
@@ -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",
@@ -1776,10 +1776,12 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1776
1776
  }
1777
1777
  return esc ? m : `\\${m}`;
1778
1778
  });
1779
- if (backslashes === true) if (opts.unescape === true) output = output.replace(/\\/g, "");
1780
- else output = output.replace(/\\+/g, (m) => {
1781
- return m.length % 2 === 0 ? "\\\\" : m ? "\\" : "";
1782
- });
1779
+ if (backslashes === true) {
1780
+ if (opts.unescape === true) output = output.replace(/\\/g, "");
1781
+ else output = output.replace(/\\+/g, (m) => {
1782
+ return m.length % 2 === 0 ? "\\\\" : m ? "\\" : "";
1783
+ });
1784
+ }
1783
1785
  if (output === input && opts.contains === true) {
1784
1786
  state.output = input;
1785
1787
  return state;
@@ -2550,8 +2552,10 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2550
2552
  output = format ? format(input) : input;
2551
2553
  match = output === glob;
2552
2554
  }
2553
- if (match === false || opts.capture === true) if (opts.matchBase === true || opts.basename === true) match = picomatch.matchBase(input, regex, options, posix);
2554
- else match = regex.exec(output);
2555
+ if (match === false || opts.capture === true) {
2556
+ if (opts.matchBase === true || opts.basename === true) match = picomatch.matchBase(input, regex, options, posix);
2557
+ else match = regex.exec(output);
2558
+ }
2555
2559
  return {
2556
2560
  isMatch: Boolean(match),
2557
2561
  match,
@@ -4183,7 +4187,7 @@ function filterConfig(filter, configCwd, name) {
4183
4187
  return toArray(filter).some((value) => name && name === value || cwd === value);
4184
4188
  }
4185
4189
  //#endregion
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_ce23af2d06b6e55ae551016827d08ee4/node_modules/tsdown/dist/watch-DOMHXvCH.mjs
4190
+ //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_8361ec2a4d03114085b1954a2fc42e35/node_modules/tsdown/dist/watch-DOMHXvCH.mjs
4187
4191
  async function copy(options) {
4188
4192
  if (!options.copy) return;
4189
4193
  const resolved = await resolveCopyEntries(options);
@@ -4563,7 +4567,7 @@ var Hookable = class {
4563
4567
  }
4564
4568
  };
4565
4569
  //#endregion
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_ce23af2d06b6e55ae551016827d08ee4/node_modules/tsdown/dist/build-D_enfyvD.mjs
4570
+ //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_8361ec2a4d03114085b1954a2fc42e35/node_modules/tsdown/dist/build-D_enfyvD.mjs
4567
4571
  var build_D_enfyvD_exports = /* @__PURE__ */ __exportAll$1({
4568
4572
  n: () => buildWithConfigs,
4569
4573
  r: () => build_exports,
@@ -4697,7 +4701,7 @@ function executeOnSuccess(config) {
4697
4701
  if (!config.onSuccess) return;
4698
4702
  const ab = new AbortController();
4699
4703
  if (typeof config.onSuccess === "string") {
4700
- const p = z(config.onSuccess, [], { nodeOptions: {
4704
+ const p = exec(config.onSuccess, [], { nodeOptions: {
4701
4705
  shell: true,
4702
4706
  stdio: "inherit",
4703
4707
  cwd: config.cwd
@@ -4878,7 +4882,7 @@ async function bundleDone(bundleByPkg, bundle) {
4878
4882
  async function packTarball(packageJsonPath) {
4879
4883
  const pkgDir = path.dirname(packageJsonPath);
4880
4884
  const destination = await mkdtemp(path.join(tmpdir(), "tsdown-pack-"));
4881
- const { detect } = await import("./detect-DGhJGEqb-Cz6qOZuP.js");
4885
+ const { detect } = await import("./detect-DGhJGEqb-6CTf16BW.js");
4882
4886
  try {
4883
4887
  const detected = await detect({ cwd: pkgDir });
4884
4888
  debug$1("Detected package manager: %o", detected);
@@ -4949,7 +4953,7 @@ async function pack(dir, pm, destination, ignoreScripts) {
4949
4953
  args.push("--ignore-scripts");
4950
4954
  break;
4951
4955
  }
4952
- const output = await R(command, args, {
4956
+ const output = await x(command, args, {
4953
4957
  nodePath: false,
4954
4958
  nodeOptions: { cwd: dir }
4955
4959
  });
@@ -5023,7 +5027,7 @@ async function resolveInputOptions(config, format, configDeps, bundle, cjsDts, i
5023
5027
  if (nodeProtocol) plugins.push(NodeProtocolPlugin(nodeProtocol));
5024
5028
  if (config.pkg || config.deps.skipNodeModulesBundle || config.deps.neverBundle === true || config.deps.dts.neverBundle === true) plugins.push(DepsPlugin(config, bundle));
5025
5029
  if (dts) {
5026
- const { dts: dtsPlugin } = await import("./dist-CWolxbYK.js");
5030
+ const { dts: dtsPlugin } = await import("./dist-DyXLnzyh.js");
5027
5031
  const { cjsReexport: _, ...dtsPluginOptions } = dts;
5028
5032
  const options = {
5029
5033
  tsconfig,
@@ -5378,7 +5382,6 @@ async function buildSingle(config, configDeps, isDualFormat, clean, restart, don
5378
5382
  await event.result.close();
5379
5383
  logger.error(event.error);
5380
5384
  hasError = true;
5381
- break;
5382
5385
  }
5383
5386
  });
5384
5387
  }
@@ -1,7 +1,7 @@
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-DI8qthUB.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-DiierkER.js";
2
2
  import process from "node:process";
3
3
  import readline from "node:readline";
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_ce23af2d06b6e55ae551016827d08ee4/node_modules/tsdown/dist/logger-Das7E2bJ.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_8361ec2a4d03114085b1954a2fc42e35/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,7 +140,7 @@ function hue2rgb(p, q, t) {
142
140
  return p;
143
141
  }
144
142
  //#endregion
145
- //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_ce23af2d06b6e55ae551016827d08ee4/node_modules/tsdown/dist/debug-CKcBYQLP.mjs
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_8361ec2a4d03114085b1954a2fc42e35/node_modules/tsdown/dist/debug-CKcBYQLP.mjs
146
144
  var version = "0.22.14";
147
145
  const debugLog = createDebug("tsdown:debug");
148
146
  function enableDebug(debug) {
@@ -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.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_ce23af2d06b6e55ae551016827d08ee4/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_8361ec2a4d03114085b1954a2fc42e35/node_modules/tsdown/dist/detect-DGhJGEqb.mjs
5
5
  const AGENTS = [
6
6
  "npm",
7
7
  "yarn",
@@ -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:
@@ -1,8 +1,6 @@
1
- import { r as createDebug } from "./main-DI8qthUB.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-Di6tCARH.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-BhMGQ9Qr.js";
5
- import { t as requireTS } from "./load-tsc-BKULZsrs-Bha6Vsu1.js";
1
+ import { r as createDebug } from "./main-DiierkER.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-DQ0pKhCv.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.13_@typescript+native-preview@7.0.0-dev.20260605.1_oxc-resolve_bb5be7aebc807a8d600edaae098a2d6b/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-BQoNcjeB.js");
1368
+ tscModule = await import("./tsc-JnMl2z7d.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)) {
@@ -2586,7 +2619,7 @@ function createDtsResolvePlugin({ cwd, tsconfig, tsconfigRaw, resolver, sideEffe
2586
2619
  async function resolveDtsPath(id, importer, rolldownResolution) {
2587
2620
  let dtsPath;
2588
2621
  if (resolver === "tsc") {
2589
- const { tscResolve } = await import("./resolver-cwLsPb2o-DvUqSYux.js");
2622
+ const { tscResolve } = await import("./resolver-cwLsPb2o-Dk4xdAGE.js");
2590
2623
  dtsPath = tscResolve(id, importer, cwd, tsconfig, tsconfigRaw);
2591
2624
  } else dtsPath = baseDtsResolver(id, importer);
2592
2625
  debug$1("Using %s for dts import: %O -> %O", resolver, id, dtsPath);
@@ -2613,4 +2646,4 @@ function dts(options = {}) {
2613
2646
  return plugins;
2614
2647
  }
2615
2648
  //#endregion
2616
- export { dts };
2649
+ export { dts, globalContext as n, requireTS as t };
@@ -105,7 +105,7 @@ interface ExeExtensionOptions {
105
105
  nodeDistIndexUrl?: string;
106
106
  }
107
107
  //#endregion
108
- //#region ../../node_modules/.pnpm/@tsdown+css@0.22.14_jiti@2.7.0_postcss-import@16.1.1_postcss@8.5.20__postcss@8.5.20_sas_632d5c49f550383ec048d2a4b7116378/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,7 +260,7 @@ interface StylusPreprocessorOptions {
260
260
  [key: string]: any;
261
261
  }
262
262
  //#endregion
263
- //#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.27.13_@typescript+native-preview@7.0.0-dev.20260605.1_oxc-resolve_bb5be7aebc807a8d600edaae098a2d6b/node_modules/rolldown-plugin-dts/dist/volar-Cxz5qLKE.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[];
@@ -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.13_@typescript+native-preview@7.0.0-dev.20260605.1_oxc-resolve_bb5be7aebc807a8d600edaae098a2d6b/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.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_ce23af2d06b6e55ae551016827d08ee4/node_modules/tsdown/dist/types-DP3_0kws.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_8361ec2a4d03114085b1954a2fc42e35/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>;
@@ -2858,7 +2858,7 @@ type ResolvedConfig = Overwrite<MarkPartial<Omit<UserConfig, "workspace" | "from
2858
2858
  exe: false | ExeOptions;
2859
2859
  }>;
2860
2860
  //#endregion
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_ce23af2d06b6e55ae551016827d08ee4/node_modules/tsdown/dist/config-Dnbs_AoW.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_8361ec2a4d03114085b1954a2fc42e35/node_modules/tsdown/dist/config-Dnbs_AoW.d.mts
2862
2862
  //#region src/config/options.d.ts
2863
2863
  /**
2864
2864
  * Resolve user config into resolved configs
@@ -2879,7 +2879,7 @@ declare function defineConfig(options: UserConfig[]): UserConfig[];
2879
2879
  declare function defineConfig(options: UserConfigFn): UserConfigFn;
2880
2880
  declare function defineConfig(options: UserConfigExport): UserConfigExport;
2881
2881
  //#endregion
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_ce23af2d06b6e55ae551016827d08ee4/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_8361ec2a4d03114085b1954a2fc42e35/node_modules/tsdown/dist/index.d.mts
2883
2883
  //#region src/build.d.ts
2884
2884
  /**
2885
2885
  * Build with tsdown.
@@ -1,12 +1,12 @@
1
- import { c as globalLogger, n as version$1, t as enableDebug } from "./debug-CKcBYQLP-GQrJ--dM.js";
2
- import { a as resolveUserConfig, i as mergeConfig, n as buildWithConfigs, t as build$1 } from "./build-D_enfyvD-DX5mX46j.js";
1
+ import { c as globalLogger, n as version$1, t as enableDebug } from "./debug-CKcBYQLP-C3NhYhrk.js";
2
+ import { a as resolveUserConfig, i as mergeConfig, n as buildWithConfigs, t as build$1 } from "./build-D_enfyvD-Dg1eKRD4.js";
3
3
  import * as Rolldown from "@voidzero-dev/vite-plus-core/rolldown";
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_ce23af2d06b6e55ae551016827d08ee4/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_8361ec2a4d03114085b1954a2fc42e35/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.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_ce23af2d06b6e55ae551016827d08ee4/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_8361ec2a4d03114085b1954a2fc42e35/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-DiierkER.js";
2
+ import "./target-Bab3CUeB-DQ0pKhCv.js";
3
+ export {};