From 4ec56fc7ad802fbedcfb0cc500443bd34881f4c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ehrlich?= Date: Wed, 26 Feb 2020 14:56:16 +0100 Subject: [PATCH] fix: respect custom tsconfig path for esModuleInterop (#436) --- src/createRollupConfig.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/createRollupConfig.ts b/src/createRollupConfig.ts index f5f76525a..0092baf28 100644 --- a/src/createRollupConfig.ts +++ b/src/createRollupConfig.ts @@ -45,7 +45,7 @@ export async function createRollupConfig( let tsconfigJSON; try { - tsconfigJSON = await fs.readJSON(paths.tsconfigJson); + tsconfigJSON = await fs.readJSON(opts.tsconfig || paths.tsconfigJson); } catch (e) {} return {