typescript(option): build: fixed rollup not reading tsconfig.json while emiting the declarations
Signed-off-by: prescientmoon <git@moonythm.dev>
This commit is contained in:
parent
664a46319d
commit
0350517b71
|
@ -42,7 +42,10 @@ export default [
|
|||
plugins: [
|
||||
ts({
|
||||
tsconfig: {
|
||||
declaration: true
|
||||
declaration: true,
|
||||
...require(resolve(__dirname, 'tsconfig.json'))[
|
||||
'compilerOptions'
|
||||
]
|
||||
}
|
||||
}),
|
||||
!dev && terser()
|
||||
|
|
Loading…
Reference in a new issue