From d410ca22d2761e9d2e3f79da461f39a8fe9af424 Mon Sep 17 00:00:00 2001 From: Carl Vuorinen Date: Wed, 13 Dec 2017 23:46:25 +0200 Subject: [PATCH] Add preact path to tsconfig Workaround for typescript duplicate identifier errors when using npm link (to get preact-material-components typings branch) More info: https://github.com/Microsoft/typescript/issues/6496 Workaround: https://github.com/ReactiveX/rxjs/issues/1858 --- tsconfig.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index fba229c..aa25194 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,6 +7,10 @@ "sourceMap": true, "jsx": "react", "jsxFactory": "h", - "allowJs": true + "allowJs": true, + "baseUrl": "", + "paths": { + "preact": ["node_modules/preact"] + } } }