Update the tsconfig to handle JSX.
This commit is contained in:
parent
6ce78c9a0d
commit
0088295288
|
@ -1,21 +1,19 @@
|
||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
|
"jsx": "react-jsx",
|
||||||
|
"jsxImportSource": "preact",
|
||||||
"lib": [
|
"lib": [
|
||||||
"ES2020"
|
"DOM",
|
||||||
|
"ES2022"
|
||||||
],
|
],
|
||||||
"module": "esnext",
|
"module": "ES2022",
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "Node",
|
||||||
"noEmit": true,
|
"resolveJsonModule": true,
|
||||||
"outDir": "build/",
|
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"target": "esnext"
|
"target": "ES2022"
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"source/**/*.ts",
|
"source"
|
||||||
"vite.config.ts"
|
|
||||||
],
|
|
||||||
"exclude": [
|
|
||||||
"node_modules/"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue