Don't include dom typings in extensions (#89942)

**Problem**
All of our extensions currently are built using the dom typings. This can lead to runtime errors if you mistakenly use `window` or similar

**Fix**
Exclude the dom typings from compile. Then explicitly import the node types for `URL` and `TextEncoder`
This commit is contained in:
Matt Bierner
2020-02-04 11:08:22 -08:00
committed by GitHub
parent a861520a49
commit b1c5e2f19b
4 changed files with 15 additions and 2 deletions

View File

@@ -2,6 +2,11 @@
"extends": "../../shared.tsconfig.json",
"compilerOptions": {
"outDir": "./dist/",
"jsx": "react"
"jsx": "react",
"lib": [
"es2018",
"DOM",
"DOM.Iterable"
]
}
}