Skip to content

Commit f417ffe

Browse files
committed
fix(unplugin-dts): remove forceDtsEmit to support declarationMap
Remove the forceDtsEmit flag passed to program.emit() in transform(), which prevents TypeScript from emitting .d.ts.map files when declarationMap is enabled in tsconfig. fix #449
1 parent 63dc649 commit f417ffe

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

packages/unplugin-dts/src/core/runtime.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -432,9 +432,6 @@ export class Runtime {
432432
},
433433
undefined,
434434
true,
435-
undefined,
436-
// @ts-expect-error
437-
true,
438435
)
439436

440437
if (emitSkipped && diagnostics.length > 0) {

0 commit comments

Comments
 (0)