@voidzero-dev/vite-plus-core 0.3.0 → 0.3.1

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 (62) hide show
  1. package/dist/rolldown/cli.mjs +6 -6
  2. package/dist/rolldown/config.d.mts +1 -1
  3. package/dist/rolldown/config.mjs +2 -2
  4. package/dist/rolldown/experimental-index.d.mts +33 -4
  5. package/dist/rolldown/experimental-index.mjs +33 -8
  6. package/dist/rolldown/experimental-runtime-types.d.ts +2 -2
  7. package/dist/rolldown/experimental-runtime.d.ts +2 -2
  8. package/dist/rolldown/experimental-runtime.mjs +2 -2
  9. package/dist/rolldown/filter-index.d.mts +1 -1
  10. package/dist/rolldown/filter-index.mjs +1 -3
  11. package/dist/rolldown/index.d.mts +3 -3
  12. package/dist/rolldown/index.mjs +4 -4
  13. package/dist/rolldown/parallel-plugin-worker.mjs +2 -2
  14. package/dist/rolldown/parallel-plugin.d.mts +1 -1
  15. package/dist/rolldown/parse-ast-index.d.mts +1 -1
  16. package/dist/rolldown/parse-ast-index.mjs +1 -1
  17. package/dist/rolldown/plugins-index.d.mts +3 -3
  18. package/dist/rolldown/plugins-index.mjs +2 -2
  19. package/dist/rolldown/shared/{binding-Bvw14S3g.d.mts → binding-DZuNHVw4.d.mts} +19 -5
  20. package/dist/rolldown/shared/{binding-C__LJDBG.mjs → binding-DmImI4pj.mjs} +27 -27
  21. package/dist/rolldown/shared/{bindingify-input-options-V9YvAjrr.mjs → bindingify-input-options-BYClWKnj.mjs} +11 -9
  22. package/dist/rolldown/shared/{constructors-CRumnw21.d.mts → constructors-BM20b11r.d.mts} +2 -2
  23. package/dist/rolldown/shared/{constructors-DklcHr18.mjs → constructors-mRbcbLyX.mjs} +1 -1
  24. package/dist/rolldown/shared/{create-bundler-option-DbV2ud0B.mjs → create-bundler-option-CHTBktos.mjs} +47 -5
  25. package/dist/rolldown/shared/{define-config-DwTNhgWB.d.mts → define-config-DNX0WekP.d.mts} +36 -3
  26. package/dist/rolldown/shared/{error-NcRuXAVN.mjs → error-BP8lJHle.mjs} +1 -1
  27. package/dist/rolldown/shared/{load-config-Dd7jKGUy.mjs → load-config-Cx5fx_8Q.mjs} +1 -1
  28. package/dist/rolldown/shared/{normalize-string-or-regex-CFtim40S.mjs → normalize-string-or-regex-Dm69lpQ-.mjs} +1 -1
  29. package/dist/rolldown/shared/{parse-rvxTD36n.mjs → parse-8sr82jSR.mjs} +2 -2
  30. package/dist/rolldown/shared/{resolve-tsconfig-D2vSIIkR.mjs → resolve-tsconfig-BlNGaH3Y.mjs} +10 -6
  31. package/dist/rolldown/shared/{rolldown-Bblizyw1.mjs → rolldown-CaX_Wmqc.mjs} +5 -4
  32. package/dist/rolldown/shared/{transform--WSMLt1x.d.mts → transform-CVse9_mH.d.mts} +8 -4
  33. package/dist/rolldown/shared/{watch-DPvOlccK.mjs → watch-YKfJgIxz.mjs} +4 -4
  34. package/dist/rolldown/utils-index.d.mts +3 -3
  35. package/dist/rolldown/utils-index.mjs +5 -5
  36. package/dist/tsdown/{build-D_enfyvD-tOzhITac.js → build-JVmLFaZt-kqQJ2U7s.js} +1101 -687
  37. package/dist/tsdown/debug-CpC4hV25-tvH_Dsg5.js +247 -0
  38. package/dist/tsdown/{detect-DGhJGEqb-LL52mV6u.js → detect-Bg-d8iUV-KfbO7neP.js} +10 -12
  39. package/dist/tsdown/{dist-BsS7BOcb.js → dist-Cuw3Ngo4.js} +1226 -893
  40. package/dist/tsdown/index-types.d.ts +277 -355
  41. package/dist/tsdown/index.js +4 -4
  42. package/dist/tsdown/internal-D-JfB5uT.js +29 -0
  43. package/dist/tsdown/internal-lhH-5yya.js +62 -0
  44. package/dist/tsdown/{main-Bcv7jU2b.js → main-CyNcZUzu.js} +8 -214
  45. package/dist/tsdown/{resolver-cwLsPb2o-Bb9SDBm6.js → resolver-DE0_sy8o-ZQqHQjRu.js} +4 -4
  46. package/dist/tsdown/rolldown-runtime-B4iAMlE-.js +35 -0
  47. package/dist/tsdown/run.js +44 -8
  48. package/dist/tsdown/{src-JVSpR8xt.js → src-BWidcM5N.js} +1 -1
  49. package/dist/tsdown/{tsc-B8FD48Oc.js → tsc-ChjRhsoQ.js} +26 -20
  50. package/dist/tsdown/tsdown-css.js +17 -11
  51. package/dist/tsdown/tsdown-exe.js +16 -5
  52. package/dist/tsdown/version-CQ98ZBpL-Obdnv4J7.js +141 -0
  53. package/dist/vite/client/bundledDevClient.mjs +6 -6
  54. package/dist/vite/client/client.mjs +4 -4
  55. package/dist/vite/node/chunks/build.js +2 -2
  56. package/dist/vite/node/chunks/lib.js +2 -2
  57. package/dist/vite/node/chunks/node.js +42 -31
  58. package/dist/vite/node/module-runner.js +3 -3
  59. package/package.json +25 -25
  60. package/dist/tsdown/debug-CKcBYQLP-By_AQqN8.js +0 -157
  61. package/dist/tsdown/internal-DSmmwu4u.js +0 -3
  62. package/dist/tsdown/target-Bab3CUeB-8PBzMh3p.js +0 -582
@@ -1,12 +1,12 @@
1
- import { c as globalLogger, n as version$1, t as enableDebug } from "./debug-CKcBYQLP-By_AQqN8.js";
2
- import { a as resolveUserConfig, i as mergeConfig, n as buildWithConfigs, t as build$1 } from "./build-D_enfyvD-tOzhITac.js";
1
+ import { c as globalLogger, n as version$1, t as enableDebug } from "./debug-CpC4hV25-tvH_Dsg5.js";
2
+ import { a as resolveUserConfig, i as mergeConfig, n as buildWithConfigs, t as build$1 } from "./build-JVmLFaZt-kqQJ2U7s.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_4084c24f9f44f250d2b604ebc16f10f3/node_modules/tsdown/dist/config.mjs
4
+ //#region ../../node_modules/.pnpm/tsdown@0.23.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.0_@tsdown+exe@0.23.0_@type_b65333c86244131b40077d6429604210/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_4084c24f9f44f250d2b604ebc16f10f3/node_modules/tsdown/dist/index.mjs
9
+ //#region ../../node_modules/.pnpm/tsdown@0.23.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.0_@tsdown+exe@0.23.0_@type_b65333c86244131b40077d6429604210/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,29 @@
1
+ import { RUNTIME_MODULE_ID } from "@voidzero-dev/vite-plus-core/rolldown";
2
+ import { exactRegex } from "@voidzero-dev/vite-plus-core/rolldown/filter";
3
+ //#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.28.5_@typescript+native-preview@7.0.0-dev.20260605.1_oxc-resolver_395c84c3f0e463da1bb9023138bdcb2e/node_modules/rolldown-plugin-dts/dist/filename-BFg1q_t3.mjs
4
+ const RE_JS = /\.([cm]?)jsx?$/;
5
+ const RE_TS = /\.([cm]?)tsx?$/;
6
+ const RE_DTS = /\.d\.([cm]?)ts$/;
7
+ const RE_DTS_MAP = /\.d\.([cm]?)ts\.map$/;
8
+ const RE_NODE_MODULES = /[\\/]node_modules[\\/]/;
9
+ const RE_CSS = /\.(?:css|scss|sass|less|styl|stylus)$/;
10
+ const RE_JSON = /\.json$/;
11
+ const RE_ROLLDOWN_RUNTIME = exactRegex(RUNTIME_MODULE_ID);
12
+ function filename_js_to_dts(id) {
13
+ return id.replace(RE_JS, ".d.$1ts");
14
+ }
15
+ function filename_to_dts(id, languageContext) {
16
+ id = languageContext?.toTsFilename?.(id) ?? id;
17
+ return id.replace(RE_TS, ".d.$1ts").replace(RE_JS, ".d.$1ts").replace(RE_JSON, ".json.d.ts");
18
+ }
19
+ function filename_dts_to(id, ext) {
20
+ return id.replace(RE_DTS, `.$1${ext}`);
21
+ }
22
+ function resolveTemplateFn(fn, chunk) {
23
+ return typeof fn === "function" ? fn(chunk) : fn;
24
+ }
25
+ function replaceTemplateName(template, name) {
26
+ return template.replaceAll("[name]", name);
27
+ }
28
+ //#endregion
29
+ export { RE_JSON as a, RE_TS as c, filename_to_dts as d, replaceTemplateName as f, RE_JS as i, filename_dts_to as l, RE_DTS as n, RE_NODE_MODULES as o, resolveTemplateFn as p, RE_DTS_MAP as r, RE_ROLLDOWN_RUNTIME as s, RE_CSS as t, filename_js_to_dts as u };
@@ -0,0 +1,62 @@
1
+ import { r as createDebug } from "./main-CyNcZUzu.js";
2
+ import "./internal-D-JfB5uT.js";
3
+ import { createRequire } from "node:module";
4
+ import process from "node:process";
5
+ import { styleText } from "node:util";
6
+ import "node:path";
7
+ import "node:fs/promises";
8
+ import "node:os";
9
+ createRequire(import.meta.url)("./npm_entry_picomatch.cjs");
10
+ function toArray(val, defaultValue) {
11
+ if (Array.isArray(val)) return val;
12
+ else if (val == null) {
13
+ if (defaultValue) return [defaultValue];
14
+ return [];
15
+ } else return [val];
16
+ }
17
+ function resolveComma(arr) {
18
+ return arr.flatMap((format) => format.split(","));
19
+ }
20
+ async function importWithError(moduleName) {
21
+ try {
22
+ return await import(moduleName);
23
+ } catch (error) {
24
+ throw new Error(`Failed to import module "${moduleName}". Please ensure it is installed.`, { cause: error });
25
+ }
26
+ }
27
+ let supportRGB = !!process.stdout.hasColors?.(2 ** 24);
28
+ if (supportRGB) try {
29
+ styleText("#000", "");
30
+ } catch {
31
+ supportRGB = false;
32
+ }
33
+ const factory = (...formats) => new Proxy(styleText.bind(void 0, formats), { get: (_, format) => {
34
+ if (format[0] === "#") {
35
+ const [color, fallback] = format.split(",", 2);
36
+ if (!supportRGB) return fallback ? factory(...formats, fallback) : factory(...formats);
37
+ return factory(...formats, color);
38
+ }
39
+ return factory(...formats, format);
40
+ } });
41
+ factory();
42
+ //#endregion
43
+ //#region ../../node_modules/.pnpm/tsdown@0.23.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.0_@tsdown+exe@0.23.0_@type_fb7663f033a892291c41712eea6060f6/node_modules/tsdown/dist/target-DgdLrXba.mjs
44
+ const NODE_SEA_MIN_VERSION = "25.7.0";
45
+ const NODE_SEA_MIN_VERSION_PARSED = {
46
+ major: 25,
47
+ minor: 7,
48
+ patch: 0
49
+ };
50
+ createDebug("tsdown:exe");
51
+ const BASELINE_WIDELY_AVAILABLE_TARGET = [
52
+ "chrome111",
53
+ "edge111",
54
+ "firefox114",
55
+ "safari16.4",
56
+ "ios16.4"
57
+ ];
58
+ function expandBaselineTarget(targets) {
59
+ return targets.flatMap((t) => t === "baseline-widely-available" ? BASELINE_WIDELY_AVAILABLE_TARGET : t);
60
+ }
61
+ //#endregion
62
+ export { resolveComma as a, importWithError as i, NODE_SEA_MIN_VERSION_PARSED as n, toArray as o, expandBaselineTarget as r, NODE_SEA_MIN_VERSION as t };
@@ -1,220 +1,13 @@
1
- import { createRequire } from "node:module";
2
1
  import { cwd } from "node:process";
2
+ import { formatWithOptions, inspect } from "node:util";
3
3
  import readline from "node:readline";
4
4
  import { isatty } from "node:tty";
5
- import { formatWithOptions, inspect } from "node:util";
6
5
  import { spawn } from "node:child_process";
7
6
  import { basename, delimiter, dirname, normalize, resolve } from "node:path";
7
+ import { fileURLToPath } from "node:url";
8
8
  import { pipeline } from "node:stream/promises";
9
9
  import { PassThrough } from "node:stream";
10
10
  import { closeSync, openSync, readSync, statSync } from "node:fs";
11
- //#region \0rolldown/runtime.js
12
- var __create = Object.create;
13
- var __defProp = Object.defineProperty;
14
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
15
- var __getOwnPropNames = Object.getOwnPropertyNames;
16
- var __getProtoOf = Object.getPrototypeOf;
17
- var __hasOwnProp = Object.prototype.hasOwnProperty;
18
- var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
19
- var __exportAll = (all, no_symbols) => {
20
- let target = {};
21
- for (var name in all) __defProp(target, name, {
22
- get: all[name],
23
- enumerable: true
24
- });
25
- if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
26
- return target;
27
- };
28
- var __copyProps = (to, from, except, desc) => {
29
- if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
30
- key = keys[i];
31
- if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
32
- get: ((k) => from[k]).bind(null, key),
33
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
34
- });
35
- }
36
- return to;
37
- };
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
- value: mod,
40
- enumerable: true
41
- }) : target, mod));
42
- var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
43
- //#endregion
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_4084c24f9f44f250d2b604ebc16f10f3/node_modules/tsdown/dist/general-BbZk8B18.mjs
45
- const picomatch = createRequire(import.meta.url)("./npm_entry_picomatch.cjs");
46
- function toArray(val, defaultValue) {
47
- if (Array.isArray(val)) return val;
48
- else if (val == null) {
49
- if (defaultValue) return [defaultValue];
50
- return [];
51
- } else return [val];
52
- }
53
- function resolveComma(arr) {
54
- return arr.flatMap((format) => format.split(","));
55
- }
56
- function resolveRegex(str) {
57
- if (typeof str === "string" && str.length > 2 && str[0] === "/" && str.at(-1) === "/") return new RegExp(str.slice(1, -1));
58
- return str;
59
- }
60
- function slash(string) {
61
- return string.replaceAll("\\", "/");
62
- }
63
- const noop = (v) => v;
64
- function matchPattern(id, patterns) {
65
- return patterns.some((pattern) => {
66
- if (pattern instanceof RegExp) {
67
- pattern.lastIndex = 0;
68
- return pattern.test(id);
69
- }
70
- return id === pattern || picomatch(pattern)(id);
71
- });
72
- }
73
- function pkgExists(moduleName) {
74
- try {
75
- import.meta.resolve(moduleName);
76
- return true;
77
- } catch {}
78
- return false;
79
- }
80
- async function importWithError(moduleName) {
81
- try {
82
- return await import(moduleName);
83
- } catch (error) {
84
- throw new Error(`Failed to import module "${moduleName}". Please ensure it is installed.`, { cause: error });
85
- }
86
- }
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
- }
102
- };
103
- }
104
- function debounce(fn, delay) {
105
- let timer;
106
- const debounced = (...args) => {
107
- clearTimeout(timer);
108
- timer = setTimeout(() => fn(...args), delay);
109
- };
110
- debounced.cancel = () => clearTimeout(timer);
111
- return debounced;
112
- }
113
- const { Ansis, fg, bg, rgb, bgRgb, hex, bgHex, reset, inverse, hidden, visible, link, bold, dim, italic, underline, strikethrough, black, red, green, yellow, blue, magenta, cyan, white, gray, redBright, greenBright, yellowBright, blueBright, magentaBright, cyanBright, whiteBright, bgBlack, bgRed, bgGreen, bgYellow, bgBlue, bgMagenta, bgCyan, bgWhite, bgGray, bgRedBright, bgGreenBright, bgYellowBright, bgBlueBright, bgMagentaBright, bgCyanBright, bgWhiteBright } = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
114
- let e, { defineProperty: r, getPrototypeOf: t, setPrototypeOf: n, create: o, keys: l } = Object, i = "", { round: f, max: s } = Math, u = (e) => {
115
- let r = /([a-f\d]{3,6})/i.exec(e)?.[0], t = r?.length, n = "0x" + (6 ^ t ? 3 ^ t ? "0" : r[0] + r[0] + r[1] + r[1] + r[2] + r[2] : r) | 0;
116
- return [
117
- n >> 16,
118
- n >> 8 & 255,
119
- 255 & n
120
- ];
121
- }, a = (e) => {
122
- if (8 > e) return 30 + e;
123
- if (16 > e) return 82 + e;
124
- if (e > 231) return e > 243 ? 37 : 30;
125
- let r = (e -= 16) % 36, t = e / 36 | 0, n = r / 6 | 0, o = r % 6;
126
- return 30 + (t > 2 | (n > 2) << 1 | (o > 2) << 2) + (s(t, n, o) > 4 ? 60 : 0);
127
- }, c = {
128
- open: i,
129
- close: i
130
- }, g = (e, { open: r = "", close: o = "", f: l }) => {
131
- let f = (e.open || i) + r, s = o + (e.close || i), u = (e, ...t) => {
132
- if (!e) {
133
- if (!o) return r;
134
- if ((e ?? i) === i) return i;
135
- }
136
- let n, a = l ? l(e, ...t) : e.raw ? String.raw({ raw: e }, ...t) : i + e, c = u;
137
- if (a.includes("\x1B")) for (; c = c.p;) {
138
- let { t: e, o: r } = c, t = r.length, o = i, l = 0;
139
- if (t) for (; ~(n = a.indexOf(r, l)); l = n + t) o += a.slice(l, n) + e;
140
- a = o + a.slice(l);
141
- }
142
- return f + (a.includes("\n") ? a.replace(/(\r?\n)/g, s + "$1" + f) : a) + s;
143
- };
144
- return n(u, t(e)).p = {
145
- t: r,
146
- o,
147
- p: e.p
148
- }, u.open = f, u.close = s, u;
149
- };
150
- const d = new function t(s = globalThis) {
151
- let d = "number" == typeof s ? s : ((r) => {
152
- let t = r.process ?? {}, n = t.argv ?? [], o = t.env ?? {}, i = 0;
153
- try {
154
- i = ((r, t, n) => (e = t.TERM, {
155
- "24bit": 3,
156
- truecolor: 3,
157
- ansi256: 2,
158
- ansi: 1
159
- }[t.COLORTERM] || (t.CI ? /,GITHUB/.test(n) ? 3 : 1 : (t.PM2_HOME || /edge/.test(t.NEXT_RUNTIME) || r.stdout?.isTTY) && "dumb" !== e ? "win32" === r.platform ? 3 : /-256/.test(e) ? 2 : 1 : 0)))(t, o, "," + l(o).join(","));
160
- } catch (e) {
161
- o = {};
162
- }
163
- let f, s = i || 1, u = "FORCE_COLOR", a = {
164
- false: 0,
165
- 0: 0,
166
- 1: 1,
167
- 2: 2,
168
- 3: 3
169
- }[o[u]] ?? s, c = -1;
170
- for (f of n) /^--color=?(true|always)?$/.test(f) && (c = s), /^--(no-color|color=(false|never))$/.test(f) && (c = 0);
171
- return r.window?.chrome ? 3 : u in o ? a : ~c ? c : o.NO_COLOR ? 0 : i;
172
- })(s), b = {}, p = {
173
- Ansis: t,
174
- level: d,
175
- isSupported: () => m,
176
- strip: (e) => e.replace(/][^]*|[›][[()#;?]*(?:\d+(?:;\d*)*)?[\dA-ORZcf-nqry=><]/g, i),
177
- extend(e) {
178
- for (let r in e) {
179
- let t = e[r];
180
- "s" === (typeof t)[0] && (h(w(r), A(...u(t))), t = P(...u(t))), h(r, t);
181
- }
182
- return n(p, o({}, b));
183
- }
184
- }, h = (e, t) => {
185
- b[e] = { get() {
186
- return r(this, e, { value: t.call ? (...e) => g(this, t(...e)) : g(this, t) })[e];
187
- } };
188
- }, y = 1 ^ d, $ = d > 2, m = d > 0, O = (e, r) => m ? {
189
- open: `[${e}m`,
190
- close: r ? `[${r}m` : i
191
- } : c, w = (e) => "bg" + e[0].toUpperCase() + e.slice(1), v = (e) => (r) => e(...u(r)), x = (e, r) => (t, n, o) => O(`${e}8;2;${t};${n};${o}`, r), _ = (e) => (r, t, n) => e(((e, r, t) => e ^ r | r ^ t ? 16 + 36 * f(e / 51) + 6 * f(r / 51) + f(t / 51) : 8 > e ? 16 : e > 248 ? 231 : f(24 * (e - 8) / 247) + 232)(r, t, n)), k = (e) => O(y ? "38;5;" + e : a(e), 39), R = (e) => O(y ? "48;5;" + e : a(e) + 10, 49), P = $ ? x(3, 39) : _(k), A = $ ? x(4, 49) : _(R), B = {
192
- fg: k,
193
- bg: R,
194
- rgb: P,
195
- bgRgb: A,
196
- hex: v(P),
197
- bgHex: v(A),
198
- visible: c,
199
- reset: O(0, i),
200
- bold: O(1, 22),
201
- dim: O(2, 22),
202
- italic: O(3, 23),
203
- underline: O(4, 24),
204
- inverse: O(7, 27),
205
- hidden: O(8, 28),
206
- strikethrough: O(9, 29),
207
- link: { f: (e, r = e) => m ? `]8;;${e}${r}]8;;` : r != e ? r + ` (​${e}​)` : e }
208
- }, C = (e, r) => {
209
- B[e] = O(r, 39), B[w(e)] = O(r + 10, 49);
210
- };
211
- return "gray,black,red,green,yellow,blue,magenta,cyan,white".split(",").map(((e, r) => {
212
- r ? C(e + "Bright", 89 + r) : r = 61, C(e, 29 + r);
213
- })), p.extend(B);
214
- }();
215
- module.exports = d.default = d;
216
- })))(), 1)).default;
217
- //#endregion
218
11
  //#region ../../node_modules/.pnpm/obug@2.1.4/node_modules/obug/dist/core.js
219
12
  /**
220
13
  * Coerce `value`.
@@ -518,7 +311,7 @@ function enable(namespaces) {
518
311
  }
519
312
  enable$1(env.DEBUG || "");
520
313
  //#endregion
521
- //#region ../../node_modules/.pnpm/tinyexec@1.3.0/node_modules/tinyexec/dist/main.mjs
314
+ //#region ../../node_modules/.pnpm/tinyexec@1.3.1/node_modules/tinyexec/dist/main.mjs
522
315
  const isPathLikePattern = /^path$/i;
523
316
  const defaultEnvPathInfo = {
524
317
  key: "PATH",
@@ -539,7 +332,7 @@ function getPathFromEnv(env) {
539
332
  function addNodeBinToPath(cwd, path) {
540
333
  const parts = path.value.split(delimiter);
541
334
  const nodeBinPaths = [];
542
- let currentPath = cwd;
335
+ let currentPath = typeof cwd === "string" ? cwd : fileURLToPath(cwd, { windows: false });
543
336
  let lastPath;
544
337
  do {
545
338
  nodeBinPaths.push(resolve(currentPath, "node_modules", ".bin"));
@@ -665,7 +458,8 @@ function resolveCommand(command, options) {
665
458
  let pathExt = env.PATHEXT ? env.PATHEXT.split(delimiter) : defaultPathExt;
666
459
  if (command.includes(".") && pathExt[0] !== "") pathExt = ["", ...pathExt];
667
460
  for (const extensions of [pathExt, noPathExt]) for (const path of pathEnv) {
668
- const dest = resolve(cwd$3, path.startsWith("\"") && path.endsWith("\"") && path.length > 1 ? path.slice(1, -1) : path, command);
461
+ const unquoted = path.startsWith("\"") && path.endsWith("\"") && path.length > 1 ? path.slice(1, -1) : path;
462
+ const dest = resolve(cwd$3, unquoted, command);
669
463
  for (const ext of extensions) {
670
464
  const destWithExt = dest + ext;
671
465
  try {
@@ -807,12 +601,12 @@ var ExecProcess = class {
807
601
  _streamOut;
808
602
  _streamErr;
809
603
  spawn() {
810
- const cwd$1 = cwd();
811
604
  const options = this._options;
812
605
  const nodeOptions = {
813
606
  ...defaultNodeOptions,
814
607
  ...options.nodeOptions
815
608
  };
609
+ const cwd$1 = nodeOptions?.cwd ?? cwd();
816
610
  const signals = [];
817
611
  this._resetState();
818
612
  if (options.timeout !== void 0) signals.push(AbortSignal.timeout(options.timeout));
@@ -858,4 +652,4 @@ const x = (command, args, userOptions) => {
858
652
  };
859
653
  const exec = x;
860
654
  //#endregion
861
- 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, x as n, bgRed as o, red as p, createDebug as r, bgYellow as s, exec as t, dim as u, debounce as v, resolveRegex as w, noop as x, importWithError as y };
655
+ export { namespaces as a, enable as i, x as n, createDebug as r, exec as t };
@@ -1,9 +1,9 @@
1
- import { r as createDebug } from "./main-Bcv7jU2b.js";
2
- import { t as requireTS } from "./dist-BsS7BOcb.js";
1
+ import { r as createDebug } from "./main-CyNcZUzu.js";
2
+ import { t as requireTSApi } from "./dist-Cuw3Ngo4.js";
3
3
  import path from "node:path";
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
4
+ //#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.28.5_@typescript+native-preview@7.0.0-dev.20260605.1_oxc-resolver_395c84c3f0e463da1bb9023138bdcb2e/node_modules/rolldown-plugin-dts/dist/resolver-DE0_sy8o.mjs
5
5
  const debug = createDebug("rolldown-plugin-dts:tsc-resolver");
6
- const ts = requireTS();
6
+ const ts = requireTSApi();
7
7
  function tscResolve(id, importer, cwd, tsconfig, tsconfigRaw, reference) {
8
8
  const baseDir = tsconfig ? path.dirname(tsconfig) : cwd;
9
9
  const parsedConfig = ts.parseJsonConfigFileContent(tsconfigRaw, ts.sys, baseDir);
@@ -0,0 +1,35 @@
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 || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
30
+ value: mod,
31
+ enumerable: true
32
+ }) : target, mod));
33
+ var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
34
+ //#endregion
35
+ export { __toESM as i, __exportAll as n, __require as r, __commonJSMin as t };
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { c as blue, f as hex, n as x } from "./main-Bcv7jU2b.js";
3
- import { c as globalLogger, n as version, t as enableDebug } from "./debug-CKcBYQLP-By_AQqN8.js";
2
+ import { c as globalLogger, n as version, t as enableDebug, y as styleText$1 } from "./debug-CpC4hV25-tvH_Dsg5.js";
3
+ import { n as x } from "./main-CyNcZUzu.js";
4
4
  import module from "node:module";
5
5
  import process$1 from "node:process";
6
6
  import { VERSION } from "@voidzero-dev/vite-plus-core/rolldown";
@@ -622,16 +622,16 @@ var CAC = class extends EventTarget {
622
622
  */
623
623
  const cac = (name = "") => new CAC(name);
624
624
  //#endregion
625
- //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_4084c24f9f44f250d2b604ebc16f10f3/node_modules/tsdown/dist/run.mjs
625
+ //#region ../../node_modules/.pnpm/tsdown@0.23.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.0_@tsdown+exe@0.23.0_@type_b65333c86244131b40077d6429604210/node_modules/tsdown/dist/run.mjs
626
626
  const cli = cac("tsdown");
627
627
  cli.help().version(version);
628
628
  cli.command("[...files]", "Bundle files", {
629
629
  ignoreOptionDefaultValue: true,
630
630
  allowUnknownOptions: true
631
- }).option("-c, --config <filename>", "Use a custom config file").option("--config-loader <loader>", "Config loader to use: auto, native, tsx, unrun", { default: "auto" }).option("--no-config", "Disable config file").option("-f, --format <format>", "Bundle format: esm, cjs, iife, umd", { default: "esm" }).option("--clean", "Clean output directory, --no-clean to disable").option("--deps.never-bundle <module>", "Mark dependencies as external").option("--minify", "Minify output").option("--devtools", "Enable devtools integration").option("--debug [feat]", "Show debug logs").option("--target <target>", "Bundle target, e.g \"es2015\", \"esnext\"").option("-l, --logLevel <level>", "Set log level: info, warn, error, silent").option("--fail-on-warn", "Fail on warnings", { default: true }).option("--no-write", "Disable writing files to disk, incompatible with watch mode").option("-d, --out-dir <dir>", "Output directory", { default: "dist" }).option("--treeshake", "Tree-shake bundle", { default: true }).option("--sourcemap", "Generate source map", { default: false }).option("--shims", "Enable cjs and esm shims ", { default: false }).option("--platform <platform>", "Target platform", { default: "node" }).option("--dts", "Generate dts files").option("--publint", "Enable publint", { default: false }).option("--attw", "Enable Are the types wrong integration", { default: false }).option("--unused", "Enable unused dependencies check", { default: false }).option("-w, --watch [path]", "Watch mode").option("--ignore-watch <path>", "Ignore custom paths in watch mode").option("--from-vite [vitest]", "Reuse config from Vite or Vitest").option("--report", "Size report", { default: true }).option("--env.* <value>", "Define compile-time env variables").option("--env-file <file>", "Load environment variables from a file, when used together with --env, variables in --env take precedence").option("--env-prefix <prefix>", "Prefix for env variables to inject into the bundle", { default: "TSDOWN_" }).option("--on-success <command>", "Command to run on success").option("--copy <dir>", "Copy files to output dir").option("--public-dir <dir>", "Alias for --copy, deprecated").option("--tsconfig <tsconfig>", "Set tsconfig path").option("--unbundle", "Unbundle mode").option("--root <dir>", "Root directory of input files").option("--exe", "Bundle as executable").option("-W, --workspace [dir]", "Enable workspace mode").option("--concurrency <count>", "Maximum number of Rolldown builds to run in parallel").option("-F, --filter <pattern>", "Filter configs (cwd or name), e.g. /pkg-name$/ or pkg-name").option("--exports", "Generate package exports for package.json").action(async (input, flags) => {
631
+ }).option("-c, --config <filename>", "Use a custom config file").option("--config-loader <loader>", "Config loader to use: auto, native, tsx, unrun", { default: "auto" }).option("--no-config", "Disable config file").option("-f, --format <format>", "Bundle format: esm, cjs, iife, umd", { default: "esm" }).option("--clean", "Clean output directory, --no-clean to disable").option("--deps.never-bundle <module>", "Mark dependencies as external").option("--minify", "Minify output").option("--devtools", "Enable devtools integration").option("--debug [feat]", "Show debug logs").option("--target <target>", "Bundle target, e.g \"es2015\", \"esnext\"").option("-l, --logLevel <level>", "Set log level: info, warn, error, silent").option("--fail-on-warn", "Fail on warnings", { default: true }).option("--no-write", "Disable writing files to disk, incompatible with watch mode").option("-d, --out-dir <dir>", "Output directory", { default: "dist" }).option("--treeshake", "Tree-shake bundle", { default: true }).option("--sourcemap", "Generate source map", { default: false }).option("--shims", "Enable cjs and esm shims ", { default: false }).option("--platform <platform>", "Target platform", { default: "node" }).option("--dts", "Generate dts files").option("--publint", "Enable publint", { default: false }).option("--attw", "Enable Are the types wrong integration", { default: false }).option("--unused", "Enable unused dependencies check", { default: false }).option("-w, --watch [path]", "Watch mode").option("--ignore-watch <path>", "Ignore custom paths in watch mode").option("--from-vite [vitest]", "Reuse config from Vite or Vitest").option("--report", "Size report", { default: true }).option("--env.* <value>", "Define compile-time env variables").option("--env-file <file>", "Load environment variables from a file, when used together with --env, variables in --env take precedence").option("--env-prefix <prefix>", "Prefix for env variables to inject into the bundle", { default: "TSDOWN_" }).option("--on-success <command>", "Command to run on success").option("--copy <dir>", "Copy files to output dir").option("--tsconfig <tsconfig>", "Set tsconfig path").option("--unbundle", "Unbundle mode").option("--root <dir>", "Root directory of input files").option("--exe", "Bundle as executable").option("-W, --workspace [dir]", "Enable workspace mode").option("--concurrency <count>", "Maximum number of Rolldown builds to run in parallel").option("-F, --filter <pattern>", "Filter configs (cwd or name), e.g. /pkg-name$/ or pkg-name").option("--exports", "Generate package exports for package.json").action(async (input, flags) => {
632
632
  globalLogger.level = flags.logLevel || "info";
633
- globalLogger.info(`${blue`tsdown v${version}`} powered by ${hex("#ff7e17")`rolldown v${VERSION}`}`);
634
- const { build } = await import("./build-D_enfyvD-tOzhITac.js").then((n) => n.r).then((n) => n.r);
633
+ globalLogger.info(`${styleText$1.blue(`tsdown v${version}`)} powered by ${styleText$1["#ff7e17,yellow"](`rolldown v${VERSION}`)}`);
634
+ const { build } = await import("./build-JVmLFaZt-kqQJ2U7s.js").then((n) => n.r).then((n) => n.r);
635
635
  if (input.length > 0) flags.entry = input;
636
636
  await build(flags);
637
637
  });
@@ -653,9 +653,45 @@ cli.command("migrate", "[deprecated] Migrate from tsup to tsdown. Use \"npx tsdo
653
653
  ], { nodeOptions: { stdio: "inherit" } });
654
654
  process$1.exitCode = exitCode;
655
655
  });
656
+ /**
657
+ * Options whose nested keys are user-defined values (environment variable
658
+ * names, module ids, entry names, ...) instead of option names.
659
+ */
660
+ const VERBATIM_KEYS = /* @__PURE__ */ new Set([
661
+ "alias",
662
+ "define",
663
+ "entry",
664
+ "env",
665
+ "loader",
666
+ "inputOptions.moduleTypes",
667
+ "outputOptions.globals"
668
+ ]);
669
+ /**
670
+ * cac camel-cases only the first segment of a dotted flag, so
671
+ * `--deps.never-bundle` is parsed as `deps['never-bundle']` while the config
672
+ * expects `deps.neverBundle`. Camel-case the remaining segments here, leaving
673
+ * the keys of {@linkcode VERBATIM_KEYS} untouched.
674
+ */
675
+ function camelizeFlags(flags, path) {
676
+ for (const key of Object.keys(flags)) {
677
+ const camelKey = key.replaceAll(/([a-z])-([a-z])/g, (_, prev, next) => prev + next.toUpperCase());
678
+ const value = flags[key];
679
+ const childPath = path ? `${path}.${camelKey}` : camelKey;
680
+ if (value && typeof value === "object" && !Array.isArray(value) && !VERBATIM_KEYS.has(childPath)) camelizeFlags(value, childPath);
681
+ if (camelKey !== key) {
682
+ if (!(camelKey in flags)) flags[camelKey] = value;
683
+ delete flags[key];
684
+ }
685
+ }
686
+ }
687
+ function parseCLI(argv) {
688
+ const parsed = cli.parse(argv, { run: false });
689
+ camelizeFlags(parsed.options);
690
+ return parsed;
691
+ }
656
692
  async function runCLI() {
657
- cli.parse(process$1.argv, { run: false });
658
- enableDebug(cli.options.debug);
693
+ const { options } = parseCLI(process$1.argv);
694
+ enableDebug(options.debug);
659
695
  try {
660
696
  await cli.runMatchedCommand();
661
697
  } catch (error) {
@@ -1,4 +1,4 @@
1
- import { D as __commonJSMin, k as __require } from "./main-Bcv7jU2b.js";
1
+ import { r as __require, t as __commonJSMin } from "./rolldown-runtime-B4iAMlE-.js";
2
2
  //#region ../../node_modules/.pnpm/lilconfig@3.1.3/node_modules/lilconfig/src/index.js
3
3
  var require_src$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4
4
  const path = __require("path");
@@ -1,11 +1,11 @@
1
- import { r as createDebug } from "./main-Bcv7jU2b.js";
2
- import { h as RE_DTS_MAP, m as RE_DTS } from "./target-Bab3CUeB-8PBzMh3p.js";
3
- import { n as globalContext, t as requireTS } from "./dist-BsS7BOcb.js";
1
+ import { r as createDebug } from "./main-CyNcZUzu.js";
2
+ import { n as RE_DTS, r as RE_DTS_MAP } from "./internal-D-JfB5uT.js";
3
+ import { n as globalContext, t as requireTSApi } from "./dist-Cuw3Ngo4.js";
4
4
  import path from "node:path";
5
5
  import { pathToFileURL } from "node:url";
6
- //#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-KtFHcISk.mjs
6
+ //#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.28.5_@typescript+native-preview@7.0.0-dev.20260605.1_oxc-resolver_395c84c3f0e463da1bb9023138bdcb2e/node_modules/rolldown-plugin-dts/dist/tsc-9-3lXpbY.mjs
7
7
  const debug$3 = createDebug("rolldown-plugin-dts:tsc-system");
8
- const ts$3 = requireTS();
8
+ const ts$3 = requireTSApi();
9
9
  /**
10
10
  * A system that writes files to both memory and disk. It will try read files
11
11
  * from memory firstly and fallback to disk if not found.
@@ -21,7 +21,7 @@ function createFsSystem(files) {
21
21
  return ts$3.sys.resolvePath(path);
22
22
  },
23
23
  directoryExists(directory) {
24
- if (Array.from(files.keys()).some((path) => path.startsWith(directory))) return true;
24
+ if (files.keys().some((path) => path.startsWith(directory))) return true;
25
25
  return ts$3.sys.directoryExists(directory);
26
26
  },
27
27
  fileExists(fileName) {
@@ -53,7 +53,7 @@ function createMemorySystem(files) {
53
53
  }
54
54
  };
55
55
  }
56
- const ts$2 = requireTS();
56
+ const ts$2 = requireTSApi();
57
57
  const formatHost = {
58
58
  getCurrentDirectory: () => ts$2.sys.getCurrentDirectory(),
59
59
  getNewLine: () => ts$2.sys.newLine,
@@ -81,7 +81,7 @@ function setSourceMapRoot(map, originalFilePath, finalFilePath) {
81
81
  const finalDir = path.posix.dirname(pathToFileURL(finalFilePath).pathname);
82
82
  if (originalDir !== finalDir) map.sourceRoot = path.posix.relative(finalDir, originalDir);
83
83
  }
84
- const ts$1 = requireTS();
84
+ const ts$1 = requireTSApi();
85
85
  const debug$2 = createDebug("rolldown-plugin-dts:tsc-build");
86
86
  function tscEmitBuild(tscOptions) {
87
87
  const { id, tsconfig, incremental, context = globalContext, sourcemap } = tscOptions;
@@ -152,7 +152,11 @@ function buildProjects(fsSystem, tsconfig, force, sourcemap) {
152
152
  debug$2(`start building projects for ${tsconfig}`);
153
153
  const projects = collectProjectGraph(tsconfig, fsSystem, force, sourcemap);
154
154
  debug$2("collected %d projects: %j", projects.length, projects.map((project) => project.tsconfigPath));
155
- const host = ts$1.createSolutionBuilderHost(fsSystem, createProgramWithPatchedCompilerOptions);
155
+ const host = ts$1.createSolutionBuilderHost(fsSystem, createProgramWithPatchedCompilerOptions({
156
+ force,
157
+ sourcemap,
158
+ tsconfigPath: tsconfig
159
+ }));
156
160
  const exitStatus = ts$1.createSolutionBuilder(host, [tsconfig], {
157
161
  force,
158
162
  verbose: true
@@ -182,7 +186,7 @@ function collectProjectGraph(rootTsconfigPath, fsSystem, force, sourcemap) {
182
186
  parsedConfig.options = patchCompilerOptions(parsedConfig.options, {
183
187
  tsconfigPath,
184
188
  force,
185
- sourcemap
189
+ sourcemap: sourcemap && parsedConfig.fileNames.length > 0
186
190
  });
187
191
  projects.push({
188
192
  tsconfigPath,
@@ -231,11 +235,13 @@ function patchCompilerOptions(options, extraOptions) {
231
235
  }
232
236
  return options;
233
237
  }
234
- const createProgramWithPatchedCompilerOptions = (rootNames, options, ...args) => {
235
- return ts$1.createEmitAndSemanticDiagnosticsBuilderProgram(rootNames, patchCompilerOptions(options ?? {}, null), ...args);
236
- };
238
+ function createProgramWithPatchedCompilerOptions(patchOptions) {
239
+ return (rootNames, options, ...args) => {
240
+ return ts$1.createEmitAndSemanticDiagnosticsBuilderProgram(rootNames, patchCompilerOptions(options ?? {}, patchOptions), ...args);
241
+ };
242
+ }
237
243
  const debug$1 = createDebug("rolldown-plugin-dts:tsc-compiler");
238
- const ts = requireTS();
244
+ const ts = requireTSApi();
239
245
  const defaultCompilerOptions = {
240
246
  declaration: true,
241
247
  noEmit: false,
@@ -268,10 +274,10 @@ function createOrGetTsModule(options) {
268
274
  context.programs.push(module.program);
269
275
  return module;
270
276
  }
271
- function createTsProgram({ entries, id, tsconfig, tsconfigRaw, volarContext, cwd, context = globalContext }) {
277
+ function createTsProgram({ entries, id, tsconfig, tsconfigRaw, languageContext, cwd, context = globalContext }) {
272
278
  const fsSystem = createFsSystem(context.files);
273
279
  const baseDir = tsconfig ? path.dirname(tsconfig) : cwd;
274
- const parsedConfig = ts.parseJsonConfigFileContent(tsconfigRaw, fsSystem, baseDir, void 0, void 0, void 0, volarContext.getExtraFileExtensions());
280
+ const parsedConfig = ts.parseJsonConfigFileContent(tsconfigRaw, fsSystem, baseDir, void 0, void 0, void 0, languageContext.getExtraFileExtensions());
275
281
  debug$1(`creating program for root project: ${baseDir}`);
276
282
  return createTsProgramFromParsedConfig({
277
283
  parsedConfig,
@@ -279,20 +285,20 @@ function createTsProgram({ entries, id, tsconfig, tsconfigRaw, volarContext, cwd
279
285
  baseDir,
280
286
  id,
281
287
  entries,
282
- volarContext
288
+ languageContext
283
289
  });
284
290
  }
285
- function createTsProgramFromParsedConfig({ parsedConfig, fsSystem, baseDir, id, entries, volarContext }) {
291
+ function createTsProgramFromParsedConfig({ parsedConfig, fsSystem, baseDir, id, entries, languageContext }) {
286
292
  const compilerOptions = {
287
293
  ...defaultCompilerOptions,
288
294
  ...parsedConfig.options,
289
295
  $configRaw: parsedConfig.raw,
290
296
  $rootDir: baseDir,
291
- ...volarContext.plugins.length ? { allowNonTsExtensions: true } : void 0
297
+ ...languageContext.languages.length ? { allowNonTsExtensions: true } : void 0
292
298
  };
293
299
  const rootNames = [...new Set([id, ...entries || parsedConfig.fileNames].map((f) => fsSystem.resolvePath(f)))];
294
300
  const host = ts.createCompilerHost(compilerOptions, true);
295
- const program = volarContext.getCreateProgram(ts)({
301
+ const program = languageContext.getCreateProgram(ts)({
296
302
  rootNames,
297
303
  options: compilerOptions,
298
304
  host,