mirror of https://github.com/grafana/grafana
- using tslib reduces bundle sizes - add compiler option for easier default imports of CJS modules - remove double entry of fork-ts-checker-plugin - speed up hot reload by using exprimental ts-loader APIpull/12718/head
parent
7e773e2d5e
commit
84e431d377
@ -1,32 +1,43 @@ |
|||||||
{ |
{ |
||||||
"compilerOptions": { |
"compilerOptions": { |
||||||
"moduleResolution": "node", |
"moduleResolution": "node", |
||||||
"outDir": "public/dist", |
"outDir": "public/dist", |
||||||
"target": "es5", |
"target": "es5", |
||||||
"lib": ["es6", "dom"], |
"lib": [ |
||||||
"rootDir": "public/", |
"es6", |
||||||
"jsx": "react", |
"dom" |
||||||
"module": "esnext", |
], |
||||||
"declaration": false, |
"rootDir": "public/", |
||||||
"allowSyntheticDefaultImports": true, |
"jsx": "react", |
||||||
"inlineSourceMap": false, |
"module": "esnext", |
||||||
"sourceMap": true, |
"declaration": false, |
||||||
"noEmitOnError": false, |
"allowSyntheticDefaultImports": true, |
||||||
"emitDecoratorMetadata": false, |
"esModuleInterop": true, |
||||||
"experimentalDecorators": true, |
"forceConsistentCasingInFileNames": true, |
||||||
"noImplicitReturns": true, |
"importHelpers": true, // importing helper functions from tslib |
||||||
"noImplicitThis": false, |
"noEmitHelpers": true, // disable emitting inline helper functions |
||||||
"noImplicitUseStrict":false, |
"removeComments": false, // comments are needed by angular injections |
||||||
"noImplicitAny": false, |
"inlineSourceMap": false, |
||||||
"noUnusedLocals": true, |
"sourceMap": true, |
||||||
"baseUrl": "public", |
"noEmitOnError": false, |
||||||
"paths": { |
"emitDecoratorMetadata": false, |
||||||
"app": ["app"] |
"experimentalDecorators": true, |
||||||
} |
"noImplicitReturns": true, |
||||||
}, |
"noImplicitThis": false, |
||||||
"include": [ |
"noImplicitUseStrict": false, |
||||||
"public/app/**/*.ts", |
"noImplicitAny": false, |
||||||
"public/app/**/*.tsx", |
"noUnusedLocals": true, |
||||||
"public/test/**/*.ts" |
"baseUrl": "public", |
||||||
] |
"pretty": true, |
||||||
|
"paths": { |
||||||
|
"app": [ |
||||||
|
"app" |
||||||
|
] |
||||||
|
} |
||||||
|
}, |
||||||
|
"include": [ |
||||||
|
"public/app/**/*.ts", |
||||||
|
"public/app/**/*.tsx", |
||||||
|
"public/test/**/*.ts" |
||||||
|
] |
||||||
} |
} |
Loading…
Reference in new issue