@enonic/react4xp
Version:
Build tools for React4xp
45 lines (42 loc) • 990 B
JSON
{
// This file should only be used for types in the Code Editor!
// Which is why noEmit is set to true
"compilerOptions": {
"baseUrl": "./",
// "allowUmdGlobalAccess": true,
// "allowSyntheticDefaultImports": true, // Does this affect swc-loader?
"esModuleInterop": true,
"jsx": "react-jsx",
"module": "commonjs",
// "module": "ESNext", // Nope, doesn't fix test error: TS2821: Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'.
"moduleResolution": "node",
"noEmit": true,
// "outDir": "/dev/null",
"paths": {
"@enonic/js-utils/*": ["./node_modules/@enonic/js-utils/src/*"]
},
"rootDir": "./",
"rootDirs": [
"./",
"./src"
],
"skipLibCheck": true,
"target": "es2015",
// "typeRoots": [
// "node_modules/@types"
// ],
"types": [
"node",
"react",
"react-dom"
]
},
"include": [
"./*.ts",
"./src/**/*.ts",
"./src/**/*.tsx"
],
// "exclude": [
// "node_modules"
// ]
}