Skip to content

Commit 13063ef

Browse files
committed
chore: update
1 parent 9d76780 commit 13063ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/plugin-dts/src/tsc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ export async function emitDts(
202202
}
203203

204204
if (fileName.endsWith('.d.ts.map')) {
205-
return content.replace(/\.d\.ts/, dtsExtension);
205+
return content.replace(/("file":"[^"]*)\.d\.ts"/g, `$1${dtsExtension}"`);
206206
}
207207

208208
return content;

0 commit comments

Comments
 (0)