File tree 1 file changed +14
-1
lines changed
1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import type { NormalizedFormat, ResolvedOptions } from '../options'
10
10
import { ExternalPlugin } from './external'
11
11
import type { OutputExtension } from './output'
12
12
import type { PackageJson } from 'pkg-types'
13
+ import type { ScriptTarget } from 'typescript'
13
14
import type { Options as IsolatedDeclOptions } from 'unplugin-isolated-decl'
14
15
15
16
const debug = Debug ( 'tsdown:dts' )
@@ -46,7 +47,19 @@ export async function bundleDts(
46
47
plugins : [
47
48
ExternalPlugin ( options , pkg ) as any ,
48
49
ResolveDtsPlugin ( ) ,
49
- DtsPlugin ( ) ,
50
+ DtsPlugin ( {
51
+ compilerOptions : {
52
+ declaration : true ,
53
+ noEmit : false ,
54
+ emitDeclarationOnly : true ,
55
+ noEmitOnError : true ,
56
+ checkJs : false ,
57
+ declarationMap : false ,
58
+ skipLibCheck : true ,
59
+ preserveSymlinks : false ,
60
+ target : 99 satisfies ScriptTarget . ESNext ,
61
+ } ,
62
+ } ) ,
50
63
] ,
51
64
} )
52
65
You can’t perform that action at this time.
0 commit comments