TS 5.7 added support for ES2024. By keeping target: “esnext”, we would have accidentally set our minimum supported ES version to ES2024. This sets it to ES2022, which is the version supported by Node 18
34 lines
552 B
JSON
34 lines
552 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2022",
|
|
"lib": [
|
|
"DOM",
|
|
"DOM.Iterable",
|
|
"ES2022"
|
|
],
|
|
"allowJs": true,
|
|
"strict": false,
|
|
"esModuleInterop": true,
|
|
"skipLibCheck": true,
|
|
"outDir": "./dist",
|
|
"rootDir": "./src",
|
|
"jsx": "react",
|
|
"sourceMap": true,
|
|
"resolveJsonModule": true,
|
|
"paths": {
|
|
"node_modules/*": ["./node_modules/*"]
|
|
},
|
|
},
|
|
"include": [
|
|
"src"
|
|
],
|
|
"exclude": [
|
|
"node_modules",
|
|
"dist",
|
|
"build",
|
|
],
|
|
"ts-node": {
|
|
"transpileOnly": true
|
|
}
|
|
}
|