From 1632ef820292d74cfc24c453486f6af65e32bc27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ehrlich?= Date: Mon, 20 Jan 2020 14:05:40 +0100 Subject: [PATCH] fix: respect custom tsconfig path for esModuleInterop --- src/createRollupConfig.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/createRollupConfig.ts b/src/createRollupConfig.ts index 6a555a3f0..e3289a19e 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 {