@voidzero-dev/vite-plus-core 0.2.1 → 0.2.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 (66) hide show
  1. package/LICENSE +175 -30
  2. package/dist/rolldown/cli.mjs +25 -14
  3. package/dist/rolldown/config.d.mts +1 -1
  4. package/dist/rolldown/config.mjs +2 -2
  5. package/dist/rolldown/experimental-index.d.mts +15 -5
  6. package/dist/rolldown/experimental-index.mjs +23 -17
  7. package/dist/rolldown/filter-index.d.mts +1 -1
  8. package/dist/rolldown/index.d.mts +2 -2
  9. package/dist/rolldown/index.mjs +4 -4
  10. package/dist/rolldown/parallel-plugin-worker.mjs +5 -4
  11. package/dist/rolldown/parallel-plugin.d.mts +1 -1
  12. package/dist/rolldown/parse-ast-index.d.mts +1 -1
  13. package/dist/rolldown/parse-ast-index.mjs +1 -1
  14. package/dist/rolldown/plugins-index.d.mts +3 -3
  15. package/dist/rolldown/plugins-index.mjs +2 -2
  16. package/dist/rolldown/shared/{binding-DgGsNpT9.d.mts → binding-B1q9aYT-.d.mts} +65 -142
  17. package/dist/rolldown/shared/{binding-CfwqjDbP.mjs → binding-BmkJW3Wy.mjs} +39 -35
  18. package/dist/rolldown/shared/{bindingify-input-options--chmbDhw.mjs → bindingify-input-options-Cmm60vfj.mjs} +1330 -1331
  19. package/dist/rolldown/shared/{constructors-Bx1tSad6.d.mts → constructors-2i1T9YcF.d.mts} +3 -4
  20. package/dist/rolldown/shared/{constructors-DnT9y_13.mjs → constructors-CE6zZSUt.mjs} +2 -5
  21. package/dist/rolldown/shared/{define-config-ChOOV2QZ.d.mts → define-config-BBz954-q.d.mts} +2 -2
  22. package/dist/rolldown/shared/{error-C0TrL0_H.mjs → error-BlQ0-ek7.mjs} +1 -1
  23. package/dist/rolldown/shared/{load-config-BXgGQtnA.mjs → load-config-CVVMWSlg.mjs} +1 -1
  24. package/dist/rolldown/shared/{normalize-string-or-regex-DGbe3BlX.mjs → normalize-string-or-regex-BYkbbGqQ.mjs} +1 -1
  25. package/dist/rolldown/shared/{parse-26ORR8fZ.mjs → parse-Dphnedsw.mjs} +2 -2
  26. package/dist/rolldown/shared/{prompt-DV1XbtjC.mjs → prompt-Bgj-uEyc.mjs} +5 -5
  27. package/dist/rolldown/shared/{resolve-tsconfig-D3YLh9ff.mjs → resolve-tsconfig-CdIAR1Eb.mjs} +2 -2
  28. package/dist/rolldown/shared/{rolldown-DpXXI00f.mjs → rolldown-Bnp916iM.mjs} +1 -1
  29. package/dist/rolldown/shared/{rolldown-build-D8R4Zzfy.mjs → rolldown-build-Cs2iVJuw.mjs} +24 -56
  30. package/dist/rolldown/shared/{transform-C-XSNVrd.d.mts → transform-CEmFsvJW.d.mts} +1 -1
  31. package/dist/rolldown/shared/{watch-D5Zm0Vsz.mjs → watch-ECGr-_QS.mjs} +4 -4
  32. package/dist/rolldown/utils-index.d.mts +3 -3
  33. package/dist/rolldown/utils-index.mjs +6 -6
  34. package/dist/tsdown/{build-B_nvJe4A-BkmlHYK-.js → build-B_nvJe4A-CcOht0gr.js} +30 -96
  35. package/dist/tsdown/debug-DLdR-9XB-CDf7D82m.js +250 -0
  36. package/dist/tsdown/{detect-B97OSl92-B5bcx_Ya.js → detect-B97OSl92-kGHGL-qU.js} +1 -1
  37. package/dist/tsdown/{dist-4h5bgYzo.js → dist-580owkGv.js} +30 -25
  38. package/dist/tsdown/general-Cp4NiJNK-BYPTHEzb.js +97 -0
  39. package/dist/tsdown/index-types.d.ts +197 -7
  40. package/dist/tsdown/index.js +3 -3
  41. package/dist/tsdown/internal-CUXleGMS.js +3 -0
  42. package/dist/tsdown/{main-BMtwTklr.js → main-BlTcyuFi.js} +2 -341
  43. package/dist/tsdown/npm_entry_picomatch.cjs +4 -2
  44. package/dist/tsdown/npm_entry_semver_functions_coerce.cjs +5 -1
  45. package/dist/tsdown/{resolver-DtsKFXi2-DQOmVgSY.js → resolver-DtsKFXi2-B8Z3WwZh.js} +1 -1
  46. package/dist/tsdown/run.js +4 -3
  47. package/dist/tsdown/src-njF8VL4a.js +622 -0
  48. package/dist/tsdown/target-CqeSqtms-ZU1Gv6-M.js +79 -0
  49. package/dist/tsdown/{tsc-15OYetCl.js → tsc-CsN85f7a.js} +3 -3
  50. package/dist/tsdown/{tsc-context-DfwSQt2q.js → tsc-context-CX_GXdyS.js} +2 -2
  51. package/dist/tsdown/tsdown-css.js +874 -0
  52. package/dist/tsdown/tsdown-exe.js +949 -0
  53. package/dist/vite/client/client.mjs +7 -9
  54. package/dist/vite/client.d.ts +3 -0
  55. package/dist/vite/node/chunks/build.js +27 -34
  56. package/dist/vite/node/chunks/dist.js +23 -23
  57. package/dist/vite/node/chunks/dist2.js +3 -3
  58. package/dist/vite/node/chunks/logger.js +4 -4
  59. package/dist/vite/node/chunks/node.js +12354 -11629
  60. package/dist/vite/node/chunks/postcss-import.js +10 -10
  61. package/dist/vite/node/cli.js +3 -3
  62. package/dist/vite/node/index.d.ts +139 -14
  63. package/dist/vite/node/index.js +1 -1
  64. package/dist/vite/node/module-runner.js +4 -4
  65. package/dist/vite/types/importGlob.d.ts +48 -6
  66. package/package.json +14 -20
@@ -1,6 +1,7 @@
1
- import { A as __commonJSMin, M as __toESM, a as createDebug, j as __exportAll } from "./main-BMtwTklr.js";
2
- import { _ as filename_dts_to, b as replaceTemplateName, c as RE_CSS, d as RE_JS, f as RE_JSON, g as RE_VUE, h as RE_TS, l as RE_DTS, m as RE_ROLLDOWN_RUNTIME, o as at, p as RE_NODE_MODULES, s as ee, u as RE_DTS_MAP, v as filename_js_to_dts, x as resolveTemplateFn, y as filename_to_dts } from "./build-B_nvJe4A-BkmlHYK-.js";
3
- import { n as globalContext, r as invalidateContextFile, t as createContext } from "./tsc-context-DfwSQt2q.js";
1
+ import { d as __commonJSMin, f as __exportAll, m as __toESM } from "./general-Cp4NiJNK-BYPTHEzb.js";
2
+ import { r as createDebug } from "./main-BlTcyuFi.js";
3
+ import { _ as filename_dts_to, b as replaceTemplateName, c as RE_CSS, d as RE_JS, f as RE_JSON, g as RE_VUE, h as RE_TS, l as RE_DTS, m as RE_ROLLDOWN_RUNTIME, o as at, p as RE_NODE_MODULES, s as ee, u as RE_DTS_MAP, v as filename_js_to_dts, x as resolveTemplateFn, y as filename_to_dts } from "./build-B_nvJe4A-CcOht0gr.js";
4
+ import { n as globalContext, r as invalidateContextFile, t as createContext } from "./tsc-context-CX_GXdyS.js";
4
5
  import { createRequire } from "node:module";
5
6
  import process from "node:process";
6
7
  import { fork, spawn } from "node:child_process";
@@ -14,8 +15,8 @@ import { ResolverFactory, isolatedDeclarationSync } from "@voidzero-dev/vite-plu
14
15
  var comma = ",".charCodeAt(0);
15
16
  var semicolon = ";".charCodeAt(0);
16
17
  var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
17
- var intToChar = new Uint8Array(64);
18
- var charToInt = new Uint8Array(128);
18
+ var intToChar = /* @__PURE__ */ new Uint8Array(64);
19
+ var charToInt = /* @__PURE__ */ new Uint8Array(128);
19
20
  for (let i = 0; i < chars.length; i++) {
20
21
  const c = chars.charCodeAt(i);
21
22
  intToChar[i] = c;
@@ -1719,7 +1720,7 @@ var _isDigit$1 = function isDigit(code) {
1719
1720
  return code >= 48 && code <= 57;
1720
1721
  };
1721
1722
  const forbiddenNumericSeparatorSiblings$1 = {
1722
- decBinOct: new Set([
1723
+ decBinOct: /* @__PURE__ */ new Set([
1723
1724
  46,
1724
1725
  66,
1725
1726
  69,
@@ -1729,7 +1730,7 @@ const forbiddenNumericSeparatorSiblings$1 = {
1729
1730
  101,
1730
1731
  111
1731
1732
  ]),
1732
- hex: new Set([
1733
+ hex: /* @__PURE__ */ new Set([
1733
1734
  46,
1734
1735
  88,
1735
1736
  95,
@@ -5833,7 +5834,7 @@ function chain(...fns) {
5833
5834
  if (fns.length >= 2 && "type" in fns[0] && fns[0].type === "array" && !("each" in fns[1])) throw new Error(`An assertValueType("array") validator can only be followed by an assertEach(...) validator.`);
5834
5835
  return validate;
5835
5836
  }
5836
- const validTypeOpts = new Set([
5837
+ const validTypeOpts = /* @__PURE__ */ new Set([
5837
5838
  "aliases",
5838
5839
  "builder",
5839
5840
  "deprecatedAlias",
@@ -5843,7 +5844,7 @@ const validTypeOpts = new Set([
5843
5844
  "validate",
5844
5845
  "unionShape"
5845
5846
  ]);
5846
- const validFieldKeys = new Set([
5847
+ const validFieldKeys = /* @__PURE__ */ new Set([
5847
5848
  "default",
5848
5849
  "optional",
5849
5850
  "deprecated",
@@ -13611,7 +13612,7 @@ function isScope(node, parent) {
13611
13612
  function isSpecifierDefault(specifier) {
13612
13613
  return isImportDefaultSpecifier$1(specifier) || isIdentifier$3(specifier.imported || specifier.exported, { name: "default" });
13613
13614
  }
13614
- const RESERVED_WORDS_ES3_ONLY = new Set([
13615
+ const RESERVED_WORDS_ES3_ONLY = /* @__PURE__ */ new Set([
13615
13616
  "abstract",
13616
13617
  "boolean",
13617
13618
  "byte",
@@ -13828,7 +13829,10 @@ var import_jsesc = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((expo
13828
13829
  if (options.minimal) return pair;
13829
13830
  const first = pair.charCodeAt(0);
13830
13831
  const second = pair.charCodeAt(1);
13831
- if (options.es6) return "\\u{" + hexadecimal((first - 55296) * 1024 + second - 56320 + 65536, lowercaseHex) + "}";
13832
+ if (options.es6) {
13833
+ const codePoint = (first - 55296) * 1024 + second - 56320 + 65536;
13834
+ return "\\u{" + hexadecimal(codePoint, lowercaseHex) + "}";
13835
+ }
13832
13836
  return fourHexEscape(hexadecimal(first, lowercaseHex)) + fourHexEscape(hexadecimal(second, lowercaseHex));
13833
13837
  }
13834
13838
  if (lone) return fourHexEscape(hexadecimal(lone.charCodeAt(0), lowercaseHex));
@@ -14116,7 +14120,7 @@ var Buffer$1 = class {
14116
14120
  }
14117
14121
  };
14118
14122
  const { isMemberExpression: isMemberExpression$1, isOptionalMemberExpression, isYieldExpression, isStatement: isStatement$4 } = lib_exports;
14119
- const PRECEDENCE = new Map([
14123
+ const PRECEDENCE = /* @__PURE__ */ new Map([
14120
14124
  ["||", 0],
14121
14125
  ["??", 1],
14122
14126
  ["&&", 2],
@@ -15898,7 +15902,7 @@ function BigIntLiteral(node) {
15898
15902
  }
15899
15903
  this.word(node.value + "n");
15900
15904
  }
15901
- const validTopicTokenSet = new Set([
15905
+ const validTopicTokenSet = /* @__PURE__ */ new Set([
15902
15906
  "^^",
15903
15907
  "@@",
15904
15908
  "^",
@@ -18091,7 +18095,7 @@ const ParseExpressionErrors = {
18091
18095
  ParseExpressionEmptyInput: "Unexpected parseExpression() input: The input is empty or contains only comments.",
18092
18096
  ParseExpressionExpectsEOF: ({ unexpected }) => `Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(unexpected)}\`.`
18093
18097
  };
18094
- const UnparenthesizedPipeBodyDescriptions = new Set([
18098
+ const UnparenthesizedPipeBodyDescriptions = /* @__PURE__ */ new Set([
18095
18099
  "ArrowFunctionExpression",
18096
18100
  "AssignmentExpression",
18097
18101
  "ConditionalExpression",
@@ -19946,7 +19950,7 @@ function isKeyword(word) {
19946
19950
  function isIteratorStart(current, next, next2) {
19947
19951
  return current === 64 && next === 64 && isIdentifierStart(next2);
19948
19952
  }
19949
- const reservedWordLikeSet = new Set([
19953
+ const reservedWordLikeSet = /* @__PURE__ */ new Set([
19950
19954
  "break",
19951
19955
  "case",
19952
19956
  "catch",
@@ -20149,7 +20153,7 @@ var FlowScopeHandler = class extends ScopeHandler {
20149
20153
  if (!this.scopeStack[0].declareFunctions.has(id.name)) super.checkLocalExport(id);
20150
20154
  }
20151
20155
  };
20152
- const reservedTypes = new Set([
20156
+ const reservedTypes = /* @__PURE__ */ new Set([
20153
20157
  "_",
20154
20158
  "any",
20155
20159
  "bool",
@@ -22447,7 +22451,8 @@ const jsx = (superClass) => class JSXParserMixin extends superClass {
22447
22451
  let semi = false;
22448
22452
  while (count++ < 10 && this.state.pos < this.length && !(semi = this.codePointAtPos(this.state.pos) === 59)) ++this.state.pos;
22449
22453
  if (semi) {
22450
- const entity = entities[this.input.slice(startPos, this.state.pos)];
22454
+ const desc = this.input.slice(startPos, this.state.pos);
22455
+ const entity = entities[desc];
22451
22456
  ++this.state.pos;
22452
22457
  if (entity) return entity;
22453
22458
  }
@@ -23078,7 +23083,7 @@ var _isDigit = function isDigit(code) {
23078
23083
  return code >= 48 && code <= 57;
23079
23084
  };
23080
23085
  const forbiddenNumericSeparatorSiblings = {
23081
- decBinOct: new Set([
23086
+ decBinOct: /* @__PURE__ */ new Set([
23082
23087
  46,
23083
23088
  66,
23084
23089
  69,
@@ -23088,7 +23093,7 @@ const forbiddenNumericSeparatorSiblings = {
23088
23093
  101,
23089
23094
  111
23090
23095
  ]),
23091
- hex: new Set([
23096
+ hex: /* @__PURE__ */ new Set([
23092
23097
  46,
23093
23098
  88,
23094
23099
  95,
@@ -23295,7 +23300,7 @@ function readCodePoint(input, pos, lineStart, curLine, throwOnInvalid, errors) {
23295
23300
  function buildPosition(pos, lineStart, curLine) {
23296
23301
  return new Position(curLine, pos - lineStart, pos);
23297
23302
  }
23298
- const VALID_REGEX_FLAGS = new Set([
23303
+ const VALID_REGEX_FLAGS = /* @__PURE__ */ new Set([
23299
23304
  103,
23300
23305
  109,
23301
23306
  115,
@@ -30615,7 +30620,7 @@ const walkAST = walk;
30615
30620
  */
30616
30621
  const walkASTAsync = asyncWalk;
30617
30622
  //#endregion
30618
- //#region ../../node_modules/.pnpm/dts-resolver@3.0.0_oxc-resolver@11.19.1_@emnapi+core@1.11.1_@emnapi+runtime@1.11.1_/node_modules/dts-resolver/dist/index.mjs
30623
+ //#region ../../node_modules/.pnpm/dts-resolver@3.0.0_oxc-resolver@11.21.3/node_modules/dts-resolver/dist/index.mjs
30619
30624
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
30620
30625
  function createResolver({ tsconfig, cwd = process.cwd(), resolveNodeModules = false, ResolverFactory } = {}) {
30621
30626
  ResolverFactory ||= __require("oxc-resolver").ResolverFactory;
@@ -30709,7 +30714,7 @@ function createResolver({ tsconfig, cwd = process.cwd(), resolveNodeModules = fa
30709
30714
  return ensureValue(resolved);
30710
30715
  };
30711
30716
  }
30712
- const ALLOW_EXTENSIONS = new Set([
30717
+ const ALLOW_EXTENSIONS = /* @__PURE__ */ new Set([
30713
30718
  ".js",
30714
30719
  ".cjs",
30715
30720
  ".mjs",
@@ -30727,7 +30732,7 @@ function ensureValue(value) {
30727
30732
  return value && ALLOW_EXTENSIONS.has(extname(value)) ? value.replaceAll("\\", "/") : null;
30728
30733
  }
30729
30734
  //#endregion
30730
- //#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.26.0_@typescript+native-preview@7.0.0-dev.20260605.1_oxc-resolver_6f03fea6114f4c67cf5f12416b2625b7/node_modules/rolldown-plugin-dts/dist/index.mjs
30735
+ //#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.26.0_@typescript+native-preview@7.0.0-dev.20260605.1_oxc-resolver_4fe2e1acd1a0882df7c50b3958bba707/node_modules/rolldown-plugin-dts/dist/index.mjs
30731
30736
  function createDtsInputPlugin({ sideEffects }) {
30732
30737
  return {
30733
30738
  name: "rolldown-plugin-dts:dts-input",
@@ -31686,7 +31691,7 @@ function createGeneratePlugin({ entry, tsconfig, tsconfigRaw, build, incremental
31686
31691
  on: (fn) => childProcess.on("message", fn)
31687
31692
  });
31688
31693
  } else {
31689
- tscModule = await import("./tsc-15OYetCl.js");
31694
+ tscModule = await import("./tsc-CsN85f7a.js");
31690
31695
  if (newContext) tscContext = createContext();
31691
31696
  }
31692
31697
  if (!Array.isArray(options.input)) for (const [name, id] of Object.entries(options.input)) {
@@ -32022,7 +32027,7 @@ function createDtsResolvePlugin({ cwd, tsconfig, tsconfigRaw, resolver, sideEffe
32022
32027
  async function resolveDtsPath(id, importer, rolldownResolution) {
32023
32028
  let dtsPath;
32024
32029
  if (resolver === "tsc") {
32025
- const { tscResolve } = await import("./resolver-DtsKFXi2-DQOmVgSY.js");
32030
+ const { tscResolve } = await import("./resolver-DtsKFXi2-B8Z3WwZh.js");
32026
32031
  dtsPath = tscResolve(id, importer, cwd, tsconfig, tsconfigRaw);
32027
32032
  } else dtsPath = baseDtsResolver(id, importer);
32028
32033
  debug$1("Using %s for dts import: %O -> %O", resolver, id, dtsPath);
@@ -0,0 +1,97 @@
1
+ import { createRequire } from "node:module";
2
+ //#region \0rolldown/runtime.js
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
10
+ var __exportAll = (all, no_symbols) => {
11
+ let target = {};
12
+ for (var name in all) __defProp(target, name, {
13
+ get: all[name],
14
+ enumerable: true
15
+ });
16
+ if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
17
+ return target;
18
+ };
19
+ var __copyProps = (to, from, except, desc) => {
20
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
21
+ key = keys[i];
22
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
23
+ get: ((k) => from[k]).bind(null, key),
24
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
25
+ });
26
+ }
27
+ return to;
28
+ };
29
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
30
+ value: mod,
31
+ enumerable: true
32
+ }) : target, mod));
33
+ var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
34
+ //#endregion
35
+ //#region ../../node_modules/.pnpm/tsdown@0.22.3_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.3_@tsdown+exe@0.22.3_@type_7ab537c68b19946c2da2ea6b389f768f/node_modules/tsdown/dist/general-Cp4NiJNK.mjs
36
+ const picomatch = createRequire(import.meta.url)("./npm_entry_picomatch.cjs");
37
+ function toArray(val, defaultValue) {
38
+ if (Array.isArray(val)) return val;
39
+ else if (val == null) {
40
+ if (defaultValue) return [defaultValue];
41
+ return [];
42
+ } else return [val];
43
+ }
44
+ function resolveComma(arr) {
45
+ return arr.flatMap((format) => format.split(","));
46
+ }
47
+ function resolveRegex(str) {
48
+ if (typeof str === "string" && str.length > 2 && str[0] === "/" && str.at(-1) === "/") return new RegExp(str.slice(1, -1));
49
+ return str;
50
+ }
51
+ function slash(string) {
52
+ return string.replaceAll("\\", "/");
53
+ }
54
+ const noop = (v) => v;
55
+ function matchPattern(id, patterns) {
56
+ return patterns.some((pattern) => {
57
+ if (pattern instanceof RegExp) {
58
+ pattern.lastIndex = 0;
59
+ return pattern.test(id);
60
+ }
61
+ return id === pattern || picomatch(pattern)(id);
62
+ });
63
+ }
64
+ function pkgExists(moduleName) {
65
+ try {
66
+ import.meta.resolve(moduleName);
67
+ return true;
68
+ } catch {}
69
+ return false;
70
+ }
71
+ async function importWithError(moduleName) {
72
+ try {
73
+ return await import(moduleName);
74
+ } catch (error) {
75
+ throw new Error(`Failed to import module "${moduleName}". Please ensure it is installed.`, { cause: error });
76
+ }
77
+ }
78
+ function promiseWithResolvers() {
79
+ let resolve;
80
+ return {
81
+ promise: new Promise((res) => {
82
+ resolve = res;
83
+ }),
84
+ resolve
85
+ };
86
+ }
87
+ function debounce(fn, delay) {
88
+ let timer;
89
+ const debounced = (...args) => {
90
+ clearTimeout(timer);
91
+ timer = setTimeout(() => fn(...args), delay);
92
+ };
93
+ debounced.cancel = () => clearTimeout(timer);
94
+ return debounced;
95
+ }
96
+ //#endregion
97
+ export { pkgExists as a, resolveRegex as c, __commonJSMin as d, __exportAll as f, noop as i, slash as l, __toESM as m, importWithError as n, promiseWithResolvers as o, __require as p, matchPattern as r, resolveComma as s, debounce as t, toArray as u };
@@ -1,14 +1,13 @@
1
1
  import * as Rolldown from "@voidzero-dev/vite-plus-core/rolldown";
2
2
  import { BuildOptions, ChecksOptions, ExternalOption, InputOptions, InternalModuleFormat, MinifyOptions, ModuleFormat, ModuleTypes, OutputAsset, OutputChunk, OutputOptions, Plugin, RolldownPlugin, TreeshakingOptions } from "@voidzero-dev/vite-plus-core/rolldown";
3
3
  import { StartOptions } from "@vitejs/devtools/cli-commands";
4
- import { ExeExtensionOptions } from "@tsdown/exe";
5
4
  import { CheckPackageOptions } from "@arethetypeswrong/core";
6
5
  import { Options } from "publint";
7
- import { CssOptions } from "@tsdown/css";
6
+ import { TransformOptions } from "lightningcss";
8
7
  import { IsolatedDeclarationsOptions } from "@voidzero-dev/vite-plus-core/rolldown/experimental";
9
8
  import { Options as UnusedOptions } from "unplugin-unused";
10
9
 
11
- //#region ../../node_modules/.pnpm/tsdown@0.22.3_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.3_@tsdown+exe@0.22.3_@type_701dbb346589e2d965113664da5ac600/node_modules/tsdown/dist/index-C0LaRpVv.d.mts
10
+ //#region ../../node_modules/.pnpm/tsdown@0.22.3_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.3_@tsdown+exe@0.22.3_@type_7ab537c68b19946c2da2ea6b389f768f/node_modules/tsdown/dist/index-C0LaRpVv.d.mts
12
11
  //#region src/utils/types.d.ts
13
12
  type Overwrite<T, U> = Omit<T, keyof U> & U;
14
13
  type Awaitable<T> = T | Promise<T>;
@@ -396,6 +395,197 @@ declare global {
396
395
  }
397
396
  /** @deprecated */
398
397
  //#endregion
398
+ //#region ../../node_modules/.pnpm/@tsdown+exe@0.22.3_tsdown@0.22.3/node_modules/@tsdown/exe/dist/index.d.mts
399
+ //#region src/platform.d.ts
400
+ type ExePlatform = "win" | "darwin" | "linux";
401
+ type ExeArch = "x64" | "arm64";
402
+ interface ExeTarget {
403
+ platform: ExePlatform;
404
+ arch: ExeArch;
405
+ /**
406
+ * Node.js version to use for the executable.
407
+ *
408
+ * Accepts a valid semver string (e.g., `"25.7.0"`), or the special values
409
+ * `"latest"` / `"latest-lts"` which resolve the version automatically from
410
+ * {@link https://nodejs.org/dist/index.json}.
411
+ *
412
+ * The minimum required version is 25.7.0, which is when SEA support was added to Node.js.
413
+ */
414
+ nodeVersion: (string & {}) | "latest" | "latest-lts" | `${string}.${string}.${string}`;
415
+ }
416
+ interface ExeExtensionOptions {
417
+ /**
418
+ * Cross-platform targets for building executables.
419
+ * Requires `@tsdown/exe` to be installed.
420
+ * When specified, builds an executable for each target platform/arch combination.
421
+ *
422
+ * @example
423
+ * ```ts
424
+ * targets: [
425
+ * { platform: 'linux', arch: 'x64', nodeVersion: '25.7.0' },
426
+ * { platform: 'darwin', arch: 'arm64', nodeVersion: '25.7.0' },
427
+ * { platform: 'win', arch: 'x64', nodeVersion: '25.7.0' },
428
+ * ]
429
+ * ```
430
+ */
431
+ targets?: ExeTarget[];
432
+ }
433
+ //#endregion
434
+ //#region ../../node_modules/.pnpm/@tsdown+css@0.22.3_jiti@2.7.0_postcss-import@16.1.1_postcss@8.5.16__postcss-modules@6.0_8815f8f9084693f5f3ebee14fa13c42a/node_modules/@tsdown/css/dist/index.d.mts
435
+ //#region src/options.d.ts
436
+ type LightningCSSOptions = Omit<TransformOptions<any>, "filename" | "code">;
437
+ interface CSSModulesOptions {
438
+ /**
439
+ * Controls the scoping behavior.
440
+ * @default 'local'
441
+ */
442
+ scopeBehaviour?: "global" | "local";
443
+ /**
444
+ * File paths matching these patterns will use global scoping.
445
+ */
446
+ globalModulePaths?: RegExp[];
447
+ /**
448
+ * Pattern or function to generate scoped class names.
449
+ * When using `transformer: 'lightningcss'`, only string patterns are supported.
450
+ */
451
+ generateScopedName?: string | ((name: string, filename: string, css: string) => string);
452
+ /**
453
+ * Prefix added to hashes when generating scoped names.
454
+ */
455
+ hashPrefix?: string;
456
+ /**
457
+ * Transform convention for exported class names.
458
+ */
459
+ localsConvention?: "camelCase" | "camelCaseOnly" | "dashes" | "dashesOnly";
460
+ /**
461
+ * Whether to include global class names in the export.
462
+ */
463
+ exportGlobals?: boolean;
464
+ /**
465
+ * Callback to receive the generated class name mappings.
466
+ */
467
+ getJSON?: (cssFileName: string, json: Record<string, string>, outputFileName: string) => void;
468
+ }
469
+ interface CssOptions {
470
+ /**
471
+ * Enable/disable CSS code splitting.
472
+ * When set to `false`, all CSS in the entire project will be extracted into
473
+ * a single CSS file named by {@linkcode fileName}.
474
+ * When set to `true`, CSS imported in async JS chunks will be preserved as chunks.
475
+ *
476
+ * Defaults to `false`, but if `unbundle` is `true`, it defaults to `true` to preserve chunk splitting.
477
+ */
478
+ splitting?: boolean;
479
+ /**
480
+ * Specify the name of the CSS file generated when {@linkcode splitting} is
481
+ * `false`.
482
+ *
483
+ * @default 'style.css'
484
+ */
485
+ fileName?: string;
486
+ /**
487
+ * Set the target environment for CSS syntax lowering.
488
+ * Accepts esbuild-style target strings (e.g., `'chrome99'`, `'safari16.2'`).
489
+ * Defaults to the top-level `target` option.
490
+ *
491
+ * @see https://vite.dev/config/build-options#build-csstarget
492
+ * @default tsdownConfig.target
493
+ */
494
+ target?: string | string[] | false;
495
+ /**
496
+ * Options for CSS preprocessors (Sass/Less/Stylus).
497
+ *
498
+ * In addition to options specific to each processor, `additionalData` option
499
+ * can be used to inject extra code for each style content.
500
+ */
501
+ preprocessorOptions?: PreprocessorOptions;
502
+ /**
503
+ * Enable/disable CSS minification.
504
+ *
505
+ * @default false
506
+ */
507
+ minify?: boolean;
508
+ /**
509
+ * Lightning CSS options for CSS syntax lowering and transformations.
510
+ */
511
+ lightningcss?: LightningCSSOptions;
512
+ /**
513
+ * PostCSS configuration.
514
+ *
515
+ * - `string`: Path to the directory to search for PostCSS config files.
516
+ * - `object`: Inline PostCSS options with optional `plugins` array.
517
+ * - Omitted: Auto-detect PostCSS config from the project root.
518
+ *
519
+ * Only used when {@linkcode transformer} is `'postcss'`.
520
+ * Requires `postcss` to be installed.
521
+ *
522
+ * @see https://github.com/postcss/postcss
523
+ */
524
+ postcss?: PostCSSOptions;
525
+ /**
526
+ * When enabled, JS output preserves import statements pointing to emitted CSS files.
527
+ * Consumers of the library will automatically import the CSS alongside the JS.
528
+ *
529
+ * @default false
530
+ */
531
+ inject?: boolean;
532
+ /**
533
+ * CSS modules configuration.
534
+ * When not `false`, `.module.css` files (and preprocessor variants) are
535
+ * treated as CSS modules with scoped class names.
536
+ *
537
+ * @see https://github.com/css-modules/css-modules
538
+ *
539
+ * @default {}
540
+ */
541
+ modules?: CSSModulesOptions | false;
542
+ /**
543
+ * CSS transformer to use. Controls how CSS is processed:
544
+ *
545
+ * - `'lightningcss'` (default): `@import` handled by Lightning CSS
546
+ * `bundleAsync()`, PostCSS is **not** used at all.
547
+ * - `'postcss'`: `@import` handled by `postcss-import`,
548
+ * PostCSS plugins applied, Lightning CSS used only for final
549
+ * targets/minify transform.
550
+ *
551
+ * @default 'lightningcss'
552
+ * @see https://vite.dev/config/shared-options#css-transformer
553
+ */
554
+ transformer?: "postcss" | "lightningcss";
555
+ }
556
+ type PostCSSOptions = string | (Record<string, any> & {
557
+ plugins?: any[];
558
+ });
559
+ interface PreprocessorOptions {
560
+ scss?: SassPreprocessorOptions;
561
+ sass?: SassPreprocessorOptions;
562
+ less?: LessPreprocessorOptions;
563
+ styl?: StylusPreprocessorOptions;
564
+ stylus?: StylusPreprocessorOptions;
565
+ }
566
+ type PreprocessorAdditionalDataResult = string | {
567
+ content: string;
568
+ map?: any;
569
+ };
570
+ type PreprocessorAdditionalData = string | ((source: string, filename: string) => PreprocessorAdditionalDataResult | Promise<PreprocessorAdditionalDataResult>);
571
+ interface SassPreprocessorOptions {
572
+ additionalData?: PreprocessorAdditionalData;
573
+ [key: string]: any;
574
+ }
575
+ interface LessPreprocessorOptions {
576
+ additionalData?: PreprocessorAdditionalData;
577
+ math?: any;
578
+ paths?: string[];
579
+ plugins?: any[];
580
+ [key: string]: any;
581
+ }
582
+ interface StylusPreprocessorOptions {
583
+ additionalData?: PreprocessorAdditionalData;
584
+ define?: Record<string, any>;
585
+ paths?: string[];
586
+ [key: string]: any;
587
+ }
588
+ //#endregion
399
589
  //#region ../../node_modules/.pnpm/get-tsconfig@5.0.0-beta.5/node_modules/get-tsconfig/dist/index.d.mts
400
590
  declare namespace TsConfigJson {
401
591
  namespace CompilerOptions {
@@ -1145,7 +1335,7 @@ type TsConfigJson = {
1145
1335
  references?: TsConfigJson.References[];
1146
1336
  };
1147
1337
  //#endregion
1148
- //#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.26.0_@typescript+native-preview@7.0.0-dev.20260605.1_oxc-resolver_6f03fea6114f4c67cf5f12416b2625b7/node_modules/rolldown-plugin-dts/dist/index.d.mts
1338
+ //#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.26.0_@typescript+native-preview@7.0.0-dev.20260605.1_oxc-resolver_4fe2e1acd1a0882df7c50b3958bba707/node_modules/rolldown-plugin-dts/dist/index.d.mts
1149
1339
  //#region src/options.d.ts
1150
1340
  interface GeneralOptions {
1151
1341
  /**
@@ -1347,7 +1537,7 @@ interface TsgoOptions {
1347
1537
  path?: string;
1348
1538
  }
1349
1539
  //#endregion
1350
- //#region ../../node_modules/.pnpm/tsdown@0.22.3_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.3_@tsdown+exe@0.22.3_@type_701dbb346589e2d965113664da5ac600/node_modules/tsdown/dist/types-F1pJie3k.d.mts
1540
+ //#region ../../node_modules/.pnpm/tsdown@0.22.3_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.3_@tsdown+exe@0.22.3_@type_7ab537c68b19946c2da2ea6b389f768f/node_modules/tsdown/dist/types-F1pJie3k.d.mts
1351
1541
  //#region src/features/copy.d.ts
1352
1542
  interface CopyEntry {
1353
1543
  /**
@@ -2452,7 +2642,7 @@ type ResolvedConfig = Overwrite<MarkPartial<Omit<UserConfig, "workspace" | "from
2452
2642
  exe: false | ExeOptions;
2453
2643
  }>; //#endregion
2454
2644
  //#endregion
2455
- //#region ../../node_modules/.pnpm/tsdown@0.22.3_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.3_@tsdown+exe@0.22.3_@type_701dbb346589e2d965113664da5ac600/node_modules/tsdown/dist/config-BJZDmsYq.d.mts
2645
+ //#region ../../node_modules/.pnpm/tsdown@0.22.3_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.3_@tsdown+exe@0.22.3_@type_7ab537c68b19946c2da2ea6b389f768f/node_modules/tsdown/dist/config-BJZDmsYq.d.mts
2456
2646
  //#region src/config/options.d.ts
2457
2647
  /**
2458
2648
  * Resolve user config into resolved configs
@@ -2472,7 +2662,7 @@ declare function defineConfig(options: UserConfig[]): UserConfig[];
2472
2662
  declare function defineConfig(options: UserConfigFn): UserConfigFn;
2473
2663
  declare function defineConfig(options: UserConfigExport): UserConfigExport; //#endregion
2474
2664
  //#endregion
2475
- //#region ../../node_modules/.pnpm/tsdown@0.22.3_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.3_@tsdown+exe@0.22.3_@type_701dbb346589e2d965113664da5ac600/node_modules/tsdown/dist/index.d.mts
2665
+ //#region ../../node_modules/.pnpm/tsdown@0.22.3_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.3_@tsdown+exe@0.22.3_@type_7ab537c68b19946c2da2ea6b389f768f/node_modules/tsdown/dist/index.d.mts
2476
2666
  //#region src/build.d.ts
2477
2667
  /**
2478
2668
  * Build with tsdown.
@@ -1,7 +1,7 @@
1
- import { r as enableDebug, u as globalLogger } from "./main-BMtwTklr.js";
2
- import { a as resolveUserConfig, i as mergeConfig, n as buildWithConfigs, t as build$1 } from "./build-B_nvJe4A-BkmlHYK-.js";
1
+ import { s as globalLogger, t as enableDebug } from "./debug-DLdR-9XB-CDf7D82m.js";
2
+ import { a as resolveUserConfig, i as mergeConfig, n as buildWithConfigs, t as build$1 } from "./build-B_nvJe4A-CcOht0gr.js";
3
3
  import * as Rolldown from "@voidzero-dev/vite-plus-core/rolldown";
4
- //#region ../../node_modules/.pnpm/tsdown@0.22.3_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.3_@tsdown+exe@0.22.3_@type_701dbb346589e2d965113664da5ac600/node_modules/tsdown/dist/config.mjs
4
+ //#region ../../node_modules/.pnpm/tsdown@0.22.3_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.3_@tsdown+exe@0.22.3_@type_7ab537c68b19946c2da2ea6b389f768f/node_modules/tsdown/dist/config.mjs
5
5
  function defineConfig(options) {
6
6
  return options;
7
7
  }
@@ -0,0 +1,3 @@
1
+ import "./general-Cp4NiJNK-BYPTHEzb.js";
2
+ import "./target-CqeSqtms-ZU1Gv6-M.js";
3
+ export {};