@voidzero-dev/vite-plus-core 0.1.1 → 0.1.3

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 (90) hide show
  1. package/dist/rolldown/cli.mjs +11 -22
  2. package/dist/rolldown/config.d.mts +1 -2
  3. package/dist/rolldown/config.mjs +10 -11
  4. package/dist/rolldown/experimental-index.d.mts +20 -6
  5. package/dist/rolldown/experimental-index.mjs +24 -22
  6. package/dist/rolldown/filter-index.d.mts +1 -2
  7. package/dist/rolldown/filter-index.mjs +2 -8
  8. package/dist/rolldown/get-log-filter.mjs +1 -2
  9. package/dist/rolldown/index.d.mts +3 -3
  10. package/dist/rolldown/index.mjs +10 -13
  11. package/dist/rolldown/parallel-plugin-worker.mjs +7 -9
  12. package/dist/rolldown/parallel-plugin.d.mts +1 -2
  13. package/dist/rolldown/parallel-plugin.mjs +1 -2
  14. package/dist/rolldown/parse-ast-index.d.mts +1 -1
  15. package/dist/rolldown/parse-ast-index.mjs +4 -6
  16. package/dist/rolldown/plugins-index.d.mts +3 -3
  17. package/dist/rolldown/plugins-index.mjs +4 -6
  18. package/dist/rolldown/shared/{binding-C4ZlFAt6.d.mts → binding-BohGL_65.d.mts} +10 -5
  19. package/dist/rolldown/shared/{binding-Bd04_f8P.mjs → binding-COZdHtee.mjs} +7 -16
  20. package/dist/rolldown/shared/{bindingify-input-options-ffqkmT9z.mjs → bindingify-input-options-DdW_FOGG.mjs} +33 -56
  21. package/dist/rolldown/shared/{constructors-C5a55nbY.mjs → constructors-CQlws1EK.mjs} +2 -4
  22. package/dist/rolldown/shared/{constructors-cPsD1J5w.d.mts → constructors-ColrbLxz.d.mts} +2 -2
  23. package/dist/rolldown/shared/{define-config-DX_4SBzo.d.mts → define-config-BqZZMLjO.d.mts} +66 -30
  24. package/dist/rolldown/shared/{define-config-BMj_QknW.mjs → define-config-DJOr6Iwt.mjs} +1 -2
  25. package/dist/rolldown/shared/{error-BYPsvVEN.mjs → error-FTNambir.mjs} +3 -8
  26. package/dist/rolldown/shared/{load-config-Oj1-3DPg.mjs → load-config-DBRCgd9m.mjs} +2 -4
  27. package/dist/rolldown/shared/{logs-CCc_0vhs.mjs → logs-D80CXhvg.mjs} +5 -8
  28. package/dist/rolldown/shared/{misc-Xty885dB.mjs → misc-DJYbNKZX.mjs} +1 -2
  29. package/dist/rolldown/shared/{normalize-string-or-regex-DoNa0azR.mjs → normalize-string-or-regex-CJTjKt5t.mjs} +3 -6
  30. package/dist/rolldown/shared/{parse-Wj8OTS4w.mjs → parse-q7gzDQmi.mjs} +2 -5
  31. package/dist/rolldown/shared/{prompt-CmNr0AI-.mjs → prompt-DZIXsnf9.mjs} +1 -3
  32. package/dist/rolldown/shared/{rolldown-y9H0nYAD.mjs → rolldown-BJMdRJb1.mjs} +2 -4
  33. package/dist/rolldown/shared/{rolldown-build-DkOWV5Vu.mjs → rolldown-build-DKv2K096.mjs} +424 -473
  34. package/dist/rolldown/shared/{transform-DoG7c5_r.d.mts → transform-BoJxrM-e.d.mts} +1 -1
  35. package/dist/rolldown/shared/{transform-D55YcCvB.mjs → transform-CQppMqL8.mjs} +3 -6
  36. package/dist/rolldown/shared/{watch-Cn-znpX_.mjs → watch-BeMWbIuq.mjs} +71 -77
  37. package/dist/rolldown/utils-index.d.mts +2 -2
  38. package/dist/rolldown/utils-index.mjs +9 -18
  39. package/dist/tsdown/{build-BjQ7Rt90-tMPZTflz.js → build-TmLngPCw-CBoVPzkZ.js} +312 -324
  40. package/dist/tsdown/build-gOkJM1H9-D9ngUBpk.js +5 -0
  41. package/dist/tsdown/{chunk-CdeBBKNj.js → chunk-CSNpwdVU.js} +13 -23
  42. package/dist/tsdown/{debug-BUVkFfEZ-D3UMJnif.js → debug-tOJ_PtrM-C-Do1Twv.js} +4 -6
  43. package/dist/tsdown/{detect-CCATtVj7-DhvBg5EF.js → detect-DK-FDZQ9-CHuRhyUG.js} +2 -4
  44. package/dist/tsdown/{dist-CFTDWtv2.js → dist-Ba2DZx1w.js} +7 -7
  45. package/dist/tsdown/{dist-DNcnO8LL.js → dist-DCol2bGA.js} +503 -568
  46. package/dist/tsdown/{dist-kuoe97DJ.js → dist-_l70jCqI.js} +1 -2
  47. package/dist/tsdown/{filename-CPj0AKvV.js → filename-BDcjeHGl.js} +3 -5
  48. package/dist/tsdown/{index-node-ShM0x2b6-Bt7Chc0I.js → index-node-Djp92Gzb-B-AUHI4t.js} +2 -4
  49. package/dist/tsdown/index-types.d.ts +180 -29
  50. package/dist/tsdown/index.js +7 -9
  51. package/dist/tsdown/{main-B3qcLRNf.js → main-DYgM-9Cb.js} +71 -83
  52. package/dist/tsdown/{node-Ba_UB_xO.js → node-B3Gdtau1.js} +1 -4
  53. package/dist/tsdown/npm_cjs_chunk_chunk.cjs +6 -8
  54. package/dist/tsdown/npm_cjs_chunk_lt.cjs +28 -0
  55. package/dist/tsdown/npm_cjs_chunk_range.cjs +22 -49
  56. package/dist/tsdown/npm_cjs_chunk_semver.cjs +54 -66
  57. package/dist/tsdown/npm_entry_picomatch.cjs +18 -30
  58. package/dist/tsdown/npm_entry_semver_functions_coerce.cjs +3 -7
  59. package/dist/tsdown/npm_entry_semver_functions_lt.cjs +5 -0
  60. package/dist/tsdown/npm_entry_semver_functions_satisfies.cjs +5 -7
  61. package/dist/tsdown/npm_entry_semver_ranges_min-version.cjs +5 -7
  62. package/dist/tsdown/npm_entry_tree-kill.cjs +2 -6
  63. package/dist/tsdown/{resolver-j7HY1N36-DHVsN9q6.js → resolver-CdD-yT15-3eaymYLw.js} +3 -5
  64. package/dist/tsdown/run.js +209 -74
  65. package/dist/tsdown/{tsc-CBjlgM2A.js → tsc-CberiTDq.js} +64 -71
  66. package/dist/tsdown/{tsc-context-D1h5oZB8.js → tsc-context-DiIjfXAG.js} +3 -5
  67. package/dist/vite/client/client.mjs +4 -19
  68. package/dist/vite/client/env.mjs +1 -2
  69. package/dist/vite/node/chunks/build.js +2 -3
  70. package/dist/vite/node/chunks/build2.js +91 -243
  71. package/dist/vite/node/chunks/chunk.js +7 -13
  72. package/dist/vite/node/chunks/config.js +2 -3
  73. package/dist/vite/node/chunks/dist.js +27 -61
  74. package/dist/vite/node/chunks/dist2.js +11 -95
  75. package/dist/vite/node/chunks/lib.js +1 -7
  76. package/dist/vite/node/chunks/logger.js +3 -8
  77. package/dist/vite/node/chunks/node.js +137 -428
  78. package/dist/vite/node/chunks/optimizer.js +2 -3
  79. package/dist/vite/node/chunks/postcss-import.js +1 -13
  80. package/dist/vite/node/chunks/preview.js +2 -3
  81. package/dist/vite/node/chunks/server.js +2 -3
  82. package/dist/vite/node/cli.js +1 -4
  83. package/dist/vite/node/index.d.ts +2 -2
  84. package/dist/vite/node/index.js +1 -2
  85. package/dist/vite/node/internal.js +1 -2
  86. package/dist/vite/node/module-runner.js +44 -3
  87. package/package.json +15 -11
  88. package/dist/rolldown/cli-setup.d.mts +0 -1
  89. package/dist/rolldown/cli-setup.mjs +0 -17
  90. package/dist/tsdown/build-2oRq4mfQ-YC_gzK3u.js +0 -6
@@ -1,48 +1,47 @@
1
- import { t as createDebug } from "./node-Ba_UB_xO.js";
2
- import { n as RE_DTS, r as RE_DTS_MAP } from "./filename-CPj0AKvV.js";
3
- import { n as globalContext } from "./tsc-context-D1h5oZB8.js";
4
-
5
- //#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.22.1_@typescript+native-preview@7.0.0-dev.20260122.2_oxc-resolver_d2e4a246ecba2d40b4415d1b79df8dc9/node_modules/rolldown-plugin-dts/dist/emit-compiler-CfQ29zff.mjs
6
- const __cjs_require$1 = globalThis.process.getBuiltinModule("module").createRequire(import.meta.url);
1
+ import { t as createDebug } from "./node-B3Gdtau1.js";
2
+ import { n as RE_DTS, r as RE_DTS_MAP } from "./filename-BDcjeHGl.js";
3
+ import { n as globalContext } from "./tsc-context-DiIjfXAG.js";
4
+ //#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.22.4_@typescript+native-preview@7.0.0-dev.20260122.2_oxc-resolver_e2c498b62da30912fd0b48bf4746dbba/node_modules/rolldown-plugin-dts/dist/tsc-Bq8zpODY.mjs
5
+ const __cjs_require = globalThis.process.getBuiltinModule("module").createRequire(import.meta.url);
7
6
  const { createRequire } = globalThis.process.getBuiltinModule("node:module");
8
7
  const path = globalThis.process.getBuiltinModule("node:path");
9
- const ts$1 = __cjs_require$1("typescript");
8
+ const ts = __cjs_require("typescript");
10
9
  const { pathToFileURL } = globalThis.process.getBuiltinModule("node:url");
11
10
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
12
- const debug$3 = createDebug("rolldown-plugin-dts:tsc-system");
11
+ const debug$4 = createDebug("rolldown-plugin-dts:tsc-system");
13
12
  /**
14
13
  * A system that writes files to both memory and disk. It will try read files
15
14
  * from memory firstly and fallback to disk if not found.
16
15
  */
17
16
  function createFsSystem(files) {
18
17
  return {
19
- ...ts$1.sys,
18
+ ...ts.sys,
20
19
  write(message) {
21
- debug$3(message);
20
+ debug$4(message);
22
21
  },
23
22
  resolvePath(path) {
24
23
  if (files.has(path)) return path;
25
- return ts$1.sys.resolvePath(path);
24
+ return ts.sys.resolvePath(path);
26
25
  },
27
26
  directoryExists(directory) {
28
27
  if (Array.from(files.keys()).some((path) => path.startsWith(directory))) return true;
29
- return ts$1.sys.directoryExists(directory);
28
+ return ts.sys.directoryExists(directory);
30
29
  },
31
30
  fileExists(fileName) {
32
31
  if (files.has(fileName)) return true;
33
- return ts$1.sys.fileExists(fileName);
32
+ return ts.sys.fileExists(fileName);
34
33
  },
35
34
  readFile(fileName, ...args) {
36
35
  if (files.has(fileName)) return files.get(fileName);
37
- return ts$1.sys.readFile(fileName, ...args);
36
+ return ts.sys.readFile(fileName, ...args);
38
37
  },
39
38
  writeFile(path, data, ...args) {
40
39
  files.set(path, data);
41
- ts$1.sys.writeFile(path, data, ...args);
40
+ ts.sys.writeFile(path, data, ...args);
42
41
  },
43
42
  deleteFile(fileName, ...args) {
44
43
  files.delete(fileName);
45
- ts$1.sys.deleteFile?.(fileName, ...args);
44
+ ts.sys.deleteFile?.(fileName, ...args);
46
45
  }
47
46
  };
48
47
  }
@@ -58,16 +57,16 @@ function createMemorySystem(files) {
58
57
  };
59
58
  }
60
59
  const formatHost = {
61
- getCurrentDirectory: () => ts$1.sys.getCurrentDirectory(),
62
- getNewLine: () => ts$1.sys.newLine,
63
- getCanonicalFileName: ts$1.sys.useCaseSensitiveFileNames ? (f) => f : (f) => f.toLowerCase()
60
+ getCurrentDirectory: () => ts.sys.getCurrentDirectory(),
61
+ getNewLine: () => ts.sys.newLine,
62
+ getCanonicalFileName: ts.sys.useCaseSensitiveFileNames ? (f) => f : (f) => f.toLowerCase()
64
63
  };
65
64
  const stripPrivateFields = (ctx) => {
66
65
  const visitor = (node) => {
67
- if (ts$1.isPropertySignature(node) && ts$1.isPrivateIdentifier(node.name)) return ctx.factory.updatePropertySignature(node, node.modifiers, ctx.factory.createStringLiteral(node.name.text), node.questionToken, node.type);
68
- return ts$1.visitEachChild(node, visitor, ctx);
66
+ if (ts.isPropertySignature(node) && ts.isPrivateIdentifier(node.name)) return ctx.factory.updatePropertySignature(node, node.modifiers, ctx.factory.createStringLiteral(node.name.text), node.questionToken, node.type);
67
+ return ts.visitEachChild(node, visitor, ctx);
69
68
  };
70
- return (sourceFile) => ts$1.visitNode(sourceFile, visitor, ts$1.isSourceFile) ?? sourceFile;
69
+ return (sourceFile) => ts.visitNode(sourceFile, visitor, ts.isSourceFile) ?? sourceFile;
71
70
  };
72
71
  const customTransformers = { afterDeclarations: [stripPrivateFields] };
73
72
  function setSourceMapRoot(map, originalFilePath, finalFilePath) {
@@ -77,22 +76,22 @@ function setSourceMapRoot(map, originalFilePath, finalFilePath) {
77
76
  const finalDir = path.posix.dirname(pathToFileURL(finalFilePath).pathname);
78
77
  if (originalDir !== finalDir) map.sourceRoot = path.posix.relative(finalDir, originalDir);
79
78
  }
80
- const debug$2 = createDebug("rolldown-plugin-dts:tsc-build");
79
+ const debug$3 = createDebug("rolldown-plugin-dts:tsc-build");
81
80
  function tscEmitBuild(tscOptions) {
82
81
  const { id, tsconfig, incremental, context = globalContext, sourcemap } = tscOptions;
83
- debug$2(`running tscEmitBuild id: ${id}, tsconfig: ${tsconfig}, incremental: ${incremental}`);
82
+ debug$3(`running tscEmitBuild id: ${id}, tsconfig: ${tsconfig}, incremental: ${incremental}`);
84
83
  if (!tsconfig) return { error: "[rolldown-plugin-dts] build mode requires a tsconfig path" };
85
84
  const fsSystem = (incremental ? createFsSystem : createMemorySystem)(context.files);
86
85
  const resolvedId = fsSystem.resolvePath(id);
87
- if (resolvedId !== id) debug$2(`resolved id from ${id} to ${resolvedId}`);
86
+ if (resolvedId !== id) debug$3(`resolved id from ${id} to ${resolvedId}`);
88
87
  const project = getOrBuildProjects(context, fsSystem, tsconfig, !incremental, sourcemap).get(resolvedId);
89
88
  if (!project) {
90
- debug$2(`unable to locate a project containing ${resolvedId}`);
89
+ debug$3(`unable to locate a project containing ${resolvedId}`);
91
90
  return { error: `Unable to locate ${id} from the given tsconfig file ${tsconfig}` };
92
91
  }
93
- debug$2(`loaded project ${project.tsconfigPath} for ${id}`);
92
+ debug$3(`loaded project ${project.tsconfigPath} for ${id}`);
94
93
  const ignoreCase = !fsSystem.useCaseSensitiveFileNames;
95
- const outputFiles = ts$1.getOutputFileNames(project.parsedConfig, resolvedId, ignoreCase);
94
+ const outputFiles = ts.getOutputFileNames(project.parsedConfig, resolvedId, ignoreCase);
96
95
  let code;
97
96
  let map;
98
97
  for (const outputFile of outputFiles) {
@@ -120,20 +119,20 @@ function tscEmitBuild(tscOptions) {
120
119
  map
121
120
  };
122
121
  if (incremental) {
123
- debug$2(`incremental build failed`);
122
+ debug$3(`incremental build failed`);
124
123
  return tscEmitBuild({
125
124
  ...tscOptions,
126
125
  incremental: false
127
126
  });
128
127
  }
129
- debug$2(`unable to build .d.ts file for ${id}`);
128
+ debug$3(`unable to build .d.ts file for ${id}`);
130
129
  if (project.parsedConfig.options.declaration !== true) return { error: `Unable to build .d.ts file for ${id}; Make sure the "declaration" option is set to true in ${project.tsconfigPath}` };
131
130
  return { error: `Unable to build .d.ts file for ${id}; This seems like a bug of rolldown-plugin-dts. Please report this issue to https://github.com/sxzz/rolldown-plugin-dts/issues` };
132
131
  }
133
132
  function getOrBuildProjects(context, fsSystem, tsconfig, force, sourcemap) {
134
133
  let projectMap = context.projects.get(tsconfig);
135
134
  if (projectMap) {
136
- debug$2(`skip building projects for ${tsconfig}`);
135
+ debug$3(`skip building projects for ${tsconfig}`);
137
136
  return projectMap;
138
137
  }
139
138
  projectMap = buildProjects(fsSystem, tsconfig, force, sourcemap);
@@ -144,15 +143,15 @@ function getOrBuildProjects(context, fsSystem, tsconfig, force, sourcemap) {
144
143
  * Use TypeScript compiler to build all projects referenced
145
144
  */
146
145
  function buildProjects(fsSystem, tsconfig, force, sourcemap) {
147
- debug$2(`start building projects for ${tsconfig}`);
146
+ debug$3(`start building projects for ${tsconfig}`);
148
147
  const projects = collectProjectGraph(tsconfig, fsSystem, force, sourcemap);
149
- debug$2("collected %d projects: %j", projects.length, projects.map((project) => project.tsconfigPath));
150
- const host = ts$1.createSolutionBuilderHost(fsSystem, createProgramWithPatchedCompilerOptions);
151
- debug$2(`built solution for ${tsconfig} with exit status ${ts$1.createSolutionBuilder(host, [tsconfig], {
148
+ debug$3("collected %d projects: %j", projects.length, projects.map((project) => project.tsconfigPath));
149
+ const host = ts.createSolutionBuilderHost(fsSystem, createProgramWithPatchedCompilerOptions);
150
+ debug$3(`built solution for ${tsconfig} with exit status ${ts.createSolutionBuilder(host, [tsconfig], {
152
151
  force,
153
152
  verbose: true
154
153
  }).build(void 0, void 0, void 0, (project) => {
155
- debug$2(`transforming project ${project}`);
154
+ debug$3(`transforming project ${project}`);
156
155
  return customTransformers;
157
156
  })}`);
158
157
  const sourceFileToProjectMap = /* @__PURE__ */ new Map();
@@ -182,19 +181,19 @@ function collectProjectGraph(rootTsconfigPath, fsSystem, force, sourcemap) {
182
181
  tsconfigPath,
183
182
  parsedConfig
184
183
  });
185
- for (const ref of parsedConfig.projectReferences ?? []) stack.push(ts$1.resolveProjectReferencePath(ref));
184
+ for (const ref of parsedConfig.projectReferences ?? []) stack.push(ts.resolveProjectReferencePath(ref));
186
185
  }
187
186
  return projects;
188
187
  }
189
188
  function parseTsconfig(tsconfigPath, fsSystem) {
190
189
  const diagnostics = [];
191
- const parsedConfig = ts$1.getParsedCommandLineOfConfigFile(tsconfigPath, void 0, {
190
+ const parsedConfig = ts.getParsedCommandLineOfConfigFile(tsconfigPath, void 0, {
192
191
  ...fsSystem,
193
192
  onUnRecoverableConfigFileDiagnostic: (diagnostic) => {
194
193
  diagnostics.push(diagnostic);
195
194
  }
196
195
  });
197
- if (diagnostics.length) throw new Error(`[rolldown-plugin-dts] Unable to read ${tsconfigPath}: ${ts$1.formatDiagnostics(diagnostics, formatHost)}`);
196
+ if (diagnostics.length) throw new Error(`[rolldown-plugin-dts] Unable to read ${tsconfigPath}: ${ts.formatDiagnostics(diagnostics, formatHost)}`);
198
197
  return parsedConfig;
199
198
  }
200
199
  function patchCompilerOptions(options, extraOptions) {
@@ -226,11 +225,11 @@ function patchCompilerOptions(options, extraOptions) {
226
225
  return options;
227
226
  }
228
227
  const createProgramWithPatchedCompilerOptions = (rootNames, options, ...args) => {
229
- return ts$1.createEmitAndSemanticDiagnosticsBuilderProgram(rootNames, patchCompilerOptions(options ?? {}, null), ...args);
228
+ return ts.createEmitAndSemanticDiagnosticsBuilderProgram(rootNames, patchCompilerOptions(options ?? {}, null), ...args);
230
229
  };
231
- const debug$1 = createDebug("rolldown-plugin-dts:volar");
230
+ const debug$2 = createDebug("rolldown-plugin-dts:volar");
232
231
  function loadVueLanguageTools() {
233
- debug$1("loading vue language tools");
232
+ debug$2("loading vue language tools");
234
233
  try {
235
234
  const vueTscPath = __require.resolve("vue-tsc");
236
235
  return {
@@ -238,8 +237,8 @@ function loadVueLanguageTools() {
238
237
  vue: __require(__require.resolve("@vue/language-core", { paths: [vueTscPath] }))
239
238
  };
240
239
  } catch (error) {
241
- debug$1("vue language tools not found", error);
242
- throw new Error("Failed to load vue language tools. Please manually install vue-tsc.");
240
+ debug$2("vue language tools not found", error);
241
+ throw new Error("Failed to load vue language tools. Please manually install vue-tsc.", { cause: error });
243
242
  }
244
243
  }
245
244
  function initVueLanguageTools() {
@@ -275,7 +274,7 @@ function initTsMacro() {
275
274
  };
276
275
  } catch (error) {
277
276
  debug("ts-macro language tools not found", error);
278
- throw new Error("Failed to load ts-macro language tools. Please manually install @ts-macro/tsc.");
277
+ throw new Error("Failed to load ts-macro language tools. Please manually install @ts-macro/tsc.", { cause: error });
279
278
  }
280
279
  }
281
280
  function createProgramFactory(ts, options) {
@@ -290,7 +289,7 @@ function createProgramFactory(ts, options) {
290
289
  return { languagePlugins };
291
290
  });
292
291
  }
293
- const debug$4 = createDebug("rolldown-plugin-dts:tsc-compiler");
292
+ const debug$1 = createDebug("rolldown-plugin-dts:tsc-compiler");
294
293
  const defaultCompilerOptions = {
295
294
  declaration: true,
296
295
  noEmit: false,
@@ -301,7 +300,7 @@ const defaultCompilerOptions = {
301
300
  skipLibCheck: true,
302
301
  target: 99,
303
302
  resolveJsonModule: true,
304
- moduleResolution: ts$1.ModuleResolutionKind.Bundler
303
+ moduleResolution: ts.ModuleResolutionKind.Bundler
305
304
  };
306
305
  function createOrGetTsModule(options) {
307
306
  const { id, entries, context = globalContext } = options;
@@ -317,21 +316,21 @@ function createOrGetTsModule(options) {
317
316
  file: sourceFile
318
317
  };
319
318
  }
320
- debug$4(`create program for module: ${id}`);
319
+ debug$1(`create program for module: ${id}`);
321
320
  const module = createTsProgram(options);
322
- debug$4(`created program for module: ${id}`);
321
+ debug$1(`created program for module: ${id}`);
323
322
  context.programs.push(module.program);
324
323
  return module;
325
324
  }
326
325
  function createTsProgram({ entries, id, tsconfig, tsconfigRaw, vue, tsMacro, cwd, context = globalContext }) {
327
326
  const fsSystem = createFsSystem(context.files);
328
327
  const baseDir = tsconfig ? path.dirname(tsconfig) : cwd;
329
- const parsedConfig = ts$1.parseJsonConfigFileContent(tsconfigRaw, fsSystem, baseDir, void 0, void 0, void 0, vue ? [{
328
+ const parsedConfig = ts.parseJsonConfigFileContent(tsconfigRaw, fsSystem, baseDir, void 0, void 0, void 0, vue ? [{
330
329
  extension: "vue",
331
330
  isMixedContent: true,
332
- scriptKind: ts$1.ScriptKind.Deferred
331
+ scriptKind: ts.ScriptKind.Deferred
333
332
  }] : void 0);
334
- debug$4(`creating program for root project: ${baseDir}`);
333
+ debug$1(`creating program for root project: ${baseDir}`);
335
334
  return createTsProgramFromParsedConfig({
336
335
  parsedConfig,
337
336
  fsSystem,
@@ -350,8 +349,8 @@ function createTsProgramFromParsedConfig({ parsedConfig, fsSystem, baseDir, id,
350
349
  $rootDir: baseDir
351
350
  };
352
351
  const rootNames = [...new Set([id, ...entries || parsedConfig.fileNames].map((f) => fsSystem.resolvePath(f)))];
353
- const host = ts$1.createCompilerHost(compilerOptions, true);
354
- const program = createProgramFactory(ts$1, {
352
+ const host = ts.createCompilerHost(compilerOptions, true);
353
+ const program = createProgramFactory(ts, {
355
354
  vue,
356
355
  tsMacro
357
356
  })({
@@ -362,13 +361,13 @@ function createTsProgramFromParsedConfig({ parsedConfig, fsSystem, baseDir, id,
362
361
  });
363
362
  const sourceFile = program.getSourceFile(id);
364
363
  if (!sourceFile) {
365
- debug$4(`source file not found in program: ${id}`);
364
+ debug$1(`source file not found in program: ${id}`);
366
365
  if (!!parsedConfig.projectReferences?.length) throw new Error(`[rolldown-plugin-dts] Unable to load ${id}; You have "references" in your tsconfig file. Perhaps you want to add \`dts: { build: true }\` in your config?`);
367
366
  if (fsSystem.fileExists(id)) {
368
- debug$4(`File ${id} exists on disk.`);
367
+ debug$1(`File ${id} exists on disk.`);
369
368
  throw new Error(`Unable to load file ${id} from the program. This seems like a bug of rolldown-plugin-dts. Please report this issue to https://github.com/sxzz/rolldown-plugin-dts/issues`);
370
369
  } else {
371
- debug$4(`File ${id} does not exist on disk.`);
370
+ debug$1(`File ${id} does not exist on disk.`);
372
371
  throw new Error(`Source file not found: ${id}`);
373
372
  }
374
373
  }
@@ -378,26 +377,26 @@ function createTsProgramFromParsedConfig({ parsedConfig, fsSystem, baseDir, id,
378
377
  };
379
378
  }
380
379
  function tscEmitCompiler(tscOptions) {
381
- debug$4(`running tscEmitCompiler ${tscOptions.id}`);
380
+ debug$1(`running tscEmitCompiler ${tscOptions.id}`);
382
381
  const { program, file } = createOrGetTsModule(tscOptions);
383
- debug$4(`got source file: ${file.fileName}`);
382
+ debug$1(`got source file: ${file.fileName}`);
384
383
  let dtsCode;
385
384
  let map;
386
385
  const { emitSkipped, diagnostics } = program.emit(file, (fileName, code) => {
387
386
  if (fileName.endsWith(".map")) {
388
- debug$4(`emit dts sourcemap: ${fileName}`);
387
+ debug$1(`emit dts sourcemap: ${fileName}`);
389
388
  map = JSON.parse(code);
390
389
  setSourceMapRoot(map, fileName, tscOptions.id);
391
390
  } else {
392
- debug$4(`emit dts: ${fileName}`);
391
+ debug$1(`emit dts: ${fileName}`);
393
392
  dtsCode = code;
394
393
  }
395
394
  }, void 0, true, customTransformers, true);
396
- if (emitSkipped && diagnostics.length) return { error: ts$1.formatDiagnostics(diagnostics, formatHost) };
395
+ if (emitSkipped && diagnostics.length) return { error: ts.formatDiagnostics(diagnostics, formatHost) };
397
396
  if (!dtsCode) {
398
- debug$4("nothing was emitted.");
397
+ debug$1("nothing was emitted.");
399
398
  if (file.isDeclarationFile) {
400
- debug$4("source file is a declaration file.");
399
+ debug$1("source file is a declaration file.");
401
400
  dtsCode = file.getFullText();
402
401
  } else console.warn("[rolldown-plugin-dts] Warning: Failed to emit declaration file. Please try to enable `eager` option (`dts.eager` for tsdown).");
403
402
  }
@@ -406,11 +405,6 @@ function tscEmitCompiler(tscOptions) {
406
405
  map
407
406
  };
408
407
  }
409
-
410
- //#endregion
411
- //#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.22.1_@typescript+native-preview@7.0.0-dev.20260122.2_oxc-resolver_d2e4a246ecba2d40b4415d1b79df8dc9/node_modules/rolldown-plugin-dts/dist/tsc.mjs
412
- const __cjs_require = globalThis.process.getBuiltinModule("module").createRequire(import.meta.url);
413
- const ts = __cjs_require("typescript");
414
408
  const debug = createDebug("rolldown-plugin-dts:tsc");
415
409
  debug(`loaded typescript: ${ts.version}`);
416
410
  function tscEmit(tscOptions) {
@@ -418,6 +412,5 @@ function tscEmit(tscOptions) {
418
412
  if (tscOptions.build) return tscEmitBuild(tscOptions);
419
413
  else return tscEmitCompiler(tscOptions);
420
414
  }
421
-
422
415
  //#endregion
423
- export { tscEmit };
416
+ export { tscEmit };
@@ -1,6 +1,5 @@
1
- import { t as createDebug } from "./node-Ba_UB_xO.js";
2
-
3
- //#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.22.1_@typescript+native-preview@7.0.0-dev.20260122.2_oxc-resolver_d2e4a246ecba2d40b4415d1b79df8dc9/node_modules/rolldown-plugin-dts/dist/tsc-context.mjs
1
+ import { t as createDebug } from "./node-B3Gdtau1.js";
2
+ //#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.22.4_@typescript+native-preview@7.0.0-dev.20260122.2_oxc-resolver_e2c498b62da30912fd0b48bf4746dbba/node_modules/rolldown-plugin-dts/dist/tsc-context.mjs
4
3
  const path = globalThis.process.getBuiltinModule("node:path");
5
4
  const debug = createDebug("rolldown-plugin-dts:tsc-context");
6
5
  function createContext() {
@@ -20,6 +19,5 @@ function invalidateContextFile(context, file) {
20
19
  context.projects.clear();
21
20
  }
22
21
  const globalContext = createContext();
23
-
24
22
  //#endregion
25
- export { globalContext as n, invalidateContextFile as r, createContext as t };
23
+ export { globalContext as n, invalidateContextFile as r, createContext as t };
@@ -1,5 +1,4 @@
1
1
  import "@vite/env";
2
-
3
2
  //#region \0@oxc-project+runtime@0.115.0/helpers/typeof.js
4
3
  function _typeof(o) {
5
4
  "@babel/helpers - typeof";
@@ -9,7 +8,6 @@ function _typeof(o) {
9
8
  return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
10
9
  }, _typeof(o);
11
10
  }
12
-
13
11
  //#endregion
14
12
  //#region \0@oxc-project+runtime@0.115.0/helpers/toPrimitive.js
15
13
  function toPrimitive(t, r) {
@@ -22,14 +20,12 @@ function toPrimitive(t, r) {
22
20
  }
23
21
  return ("string" === r ? String : Number)(t);
24
22
  }
25
-
26
23
  //#endregion
27
24
  //#region \0@oxc-project+runtime@0.115.0/helpers/toPropertyKey.js
28
25
  function toPropertyKey(t) {
29
26
  var i = toPrimitive(t, "string");
30
27
  return "symbol" == _typeof(i) ? i : i + "";
31
28
  }
32
-
33
29
  //#endregion
34
30
  //#region \0@oxc-project+runtime@0.115.0/helpers/defineProperty.js
35
31
  function _defineProperty(e, r, t) {
@@ -40,7 +36,6 @@ function _defineProperty(e, r, t) {
40
36
  writable: !0
41
37
  }) : e[r] = t, e;
42
38
  }
43
-
44
39
  //#endregion
45
40
  //#region ../../rolldown-vite/packages/vite/src/shared/hmr.ts
46
41
  var HMRContext = class {
@@ -224,7 +219,6 @@ var HMRClient = class {
224
219
  };
225
220
  }
226
221
  };
227
-
228
222
  //#endregion
229
223
  //#region ../../node_modules/.pnpm/nanoid@5.1.6/node_modules/nanoid/non-secure/index.js
230
224
  let urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
@@ -234,16 +228,12 @@ let nanoid = (size = 21) => {
234
228
  while (i--) id += urlAlphabet[Math.random() * 64 | 0];
235
229
  return id;
236
230
  };
237
-
238
231
  //#endregion
239
232
  //#region ../../rolldown-vite/packages/vite/src/shared/constants.ts
240
233
  let SOURCEMAPPING_URL = "sourceMa";
241
234
  SOURCEMAPPING_URL += "ppingURL";
242
-
243
- //#endregion
244
- //#region ../../rolldown-vite/packages/vite/src/shared/utils.ts
245
- const isWindows = typeof process !== "undefined" && process.platform === "win32";
246
- const AsyncFunction = async function() {}.constructor;
235
+ typeof process !== "undefined" && process.platform;
236
+ (async function() {}).constructor;
247
237
  function promiseWithResolvers() {
248
238
  let resolve;
249
239
  let reject;
@@ -256,7 +246,6 @@ function promiseWithResolvers() {
256
246
  reject
257
247
  };
258
248
  }
259
-
260
249
  //#endregion
261
250
  //#region ../../rolldown-vite/packages/vite/src/shared/moduleRunnerTransport.ts
262
251
  function reviveInvokeError(e) {
@@ -450,7 +439,6 @@ const createWebSocketModuleRunnerTransport = (options) => {
450
439
  }
451
440
  };
452
441
  };
453
-
454
442
  //#endregion
455
443
  //#region ../../rolldown-vite/packages/vite/src/shared/hmrHandler.ts
456
444
  function createHMRHandler(handler) {
@@ -484,7 +472,6 @@ var Queue = class {
484
472
  return true;
485
473
  }
486
474
  };
487
-
488
475
  //#endregion
489
476
  //#region ../../rolldown-vite/packages/vite/src/client/overlay.ts
490
477
  const hmrConfigName = __HMR_CONFIG_NAME__;
@@ -726,8 +713,7 @@ var ErrorOverlay = class extends HTMLElement {
726
713
  };
727
714
  const overlayId = "vite-error-overlay";
728
715
  const { customElements } = globalThis;
729
- if (customElements && !customElements.get(overlayId)) customElements.define(overlayId, ErrorOverlay);
730
-
716
+ if (customElements && !customElements.get("vite-error-overlay")) customElements.define(overlayId, ErrorOverlay);
731
717
  //#endregion
732
718
  //#region ../../rolldown-vite/packages/vite/src/client/client.ts
733
719
  console.debug("[vite] connecting...");
@@ -1135,6 +1121,5 @@ if (isBundleMode && typeof DevRuntime !== "undefined") {
1135
1121
  }
1136
1122
  } }));
1137
1123
  }
1138
-
1139
1124
  //#endregion
1140
- export { ErrorOverlay, createHotContext, injectQuery, removeStyle, updateStyle };
1125
+ export { ErrorOverlay, createHotContext, injectQuery, removeStyle, updateStyle };
@@ -15,5 +15,4 @@ Object.keys(defines).forEach((key) => {
15
15
  else target = target[segment] || (target[segment] = {});
16
16
  }
17
17
  });
18
-
19
- //#endregion
18
+ //#endregion
@@ -1,4 +1,3 @@
1
1
  import "./logger.js";
2
- import { A as builderOptionsDefaults, B as resolveBuilderOptions, D as ChunkMetadataMap, E as BuildEnvironment, F as injectEnvironmentToHooks, G as toOutputFilePathInHtml, H as resolveRolldownOptions, I as onRollupLog, K as toOutputFilePathInJS, L as resolveBuildEnvironmentOptions, M as createBuilder, N as createToImportMetaURLBasedRelativeRuntime, O as build, P as enhanceRollupError, R as resolveBuildOutputs, U as resolveUserExternal, V as resolveLibFilename, W as toOutputFilePathInCss, j as clearLine, k as buildEnvironmentOptionsDefaults, q as toOutputFilePathWithoutRuntime, z as resolveBuildPlugins } from "./node.js";
3
-
4
- export { createBuilder, resolveBuildPlugins };
2
+ import { M as createBuilder, z as resolveBuildPlugins } from "./node.js";
3
+ export { createBuilder, resolveBuildPlugins };