1
Fork 0

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:
Matei Adriel 2019-12-25 16:33:05 +02:00 committed by prescientmoon
parent 664a46319d
commit 0350517b71
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4

View file

@ -42,7 +42,10 @@ export default [
plugins: [ plugins: [
ts({ ts({
tsconfig: { tsconfig: {
declaration: true declaration: true,
...require(resolve(__dirname, 'tsconfig.json'))[
'compilerOptions'
]
} }
}), }),
!dev && terser() !dev && terser()