#48 Fixed tsconfig for module loading

This commit is contained in:
Serraniel 2020-12-29 16:59:53 +01:00
parent 71c5b6ae55
commit 96000452cf
Signed by: Serraniel
GPG key ID: 3690B4E7364525D3

View file

@ -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).