Skip to content

Commit

Permalink
🐛 fix browser env
Browse files Browse the repository at this point in the history
  • Loading branch information
dudeofawesome committed May 8, 2024
1 parent ea433fa commit 46854de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 3 additions & 1 deletion packages/typescript-configs/layers/react.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"compilerOptions": {
// enable React JSX transpilation.
"jsx": "react"
"jsx": "react",
// load React global types
"types": ["react"]
}
}
5 changes: 2 additions & 3 deletions packages/typescript-configs/roles/browser.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"extends": "./base.json",
"compilerOptions": {
// TODO(0): does this layer onto the lib from base?
// defines environment
"lib": ["DOM"],
// defines environment, which does not inherit from extended configs.
"lib": ["ES2022", "DOM"],
// transpiles TS to es2019
"target": "ES2019" // TODO: what browsers do we want to support?
}
Expand Down

0 comments on commit 46854de

Please sign in to comment.