mirror of
https://github.com/apache/superset.git
synced 2024-09-19 20:19:37 -04:00
3d8a2b859e
* Fix hot reload for charts * Override tsc options for plugins Plugins will sometimes have their own `tsconfig.json`, which will interfere with the dev server config if configured inappropriately. This change makes sure `tsc` (and `ts-loader`) always compiles to `esnext` modules, so we don't get "Uncaught ReferenceError: exports is not defined" error.
35 lines
940 B
JSON
35 lines
940 B
JSON
{
|
|
"compilerOptions": {
|
|
"allowJs": true,
|
|
"allowSyntheticDefaultImports": true,
|
|
"baseUrl": ".",
|
|
"esModuleInterop": false,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"importHelpers": false,
|
|
"jsx": "preserve",
|
|
"lib": ["dom", "esnext"],
|
|
"module": "esnext",
|
|
"moduleResolution": "node",
|
|
"noImplicitAny": true,
|
|
"noImplicitReturns": true,
|
|
"noImplicitThis": true,
|
|
"noUnusedLocals": true,
|
|
"outDir": "./dist",
|
|
"pretty": true,
|
|
"skipLibCheck": true,
|
|
"sourceMap": true,
|
|
"strictNullChecks": true,
|
|
"suppressImplicitAnyIndexErrors": true,
|
|
"target": "esnext"
|
|
},
|
|
"include": [
|
|
"./src/**/*",
|
|
"./spec/**/*",
|
|
// include the source code of each plugin
|
|
"./node_modules/*superset-ui*/**/src/**/*",
|
|
"./node_modules/*superset-ui*/**/types/**/*",
|
|
// and the type defs of their dependencies
|
|
"./node_modules/*superset-ui*/**/node_modules/**/*.d.ts"
|
|
]
|
|
}
|