From 96000452cf6ddc6bdd9081fa85b696674c4dd06c Mon Sep 17 00:00:00 2001 From: Serraniel Date: Tue, 29 Dec 2020 16:59:53 +0100 Subject: [PATCH] #48 Fixed tsconfig for module loading --- tsconfig.json | 1 + 1 file changed, 1 insertion(+) diff --git a/tsconfig.json b/tsconfig.json index b989c89..c7e9ab4 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,5 +1,6 @@ { "compilerOptions": { + "esModuleInterop": true, // You have to explicitly set @types to get DefinitelyTyped type definitions "typeRoots": ["node_modules/@types", "node_modules/web-ext-types"], // Default would be DOM,ES6,DOM.Iterable,ScriptHost (see https://www.typescriptlang.org/docs/handbook/compiler-options.html). However the ES 2020 is required for string.prototype.matchAll (see https://stackoverflow.com/a/57298833).