File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -114,8 +114,6 @@ export const pluginDts = (options: PluginDtsOptions = {}): RsbuildPlugin => ({
114114 const { options : rawCompilerOptions } = tsConfigResult ;
115115 const { declarationDir, outDir, composite, incremental } =
116116 rawCompilerOptions ;
117- // the priority of dtsEmitPath is dts.distPath > declarationDir > output.distPath.root
118- // outDir is not considered since in multiple formats, the dts files may not in the same directory as the js files
119117 const dtsEmitPath = getDtsEmitPath (
120118 options . distPath ,
121119 declarationDir ,
Original file line number Diff line number Diff line change @@ -506,6 +506,8 @@ export async function cleanTsBuildInfoFile(
506506 }
507507}
508508
509+ // the priority of dtsEmitPath is dts.distPath > declarationDir > output.distPath.root
510+ // outDir is not considered since in multiple formats, the dts files may not in the same directory as the js files
509511export function getDtsEmitPath (
510512 pathFromPlugin : string | undefined ,
511513 declarationDir : string | undefined ,
You can’t perform that action at this time.
0 commit comments