-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
32 lines (28 loc) · 1.11 KB
/
tsconfig.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
// https://www.typescriptlang.org/docs/handbook/compiler-options.html
"compilerOptions": {
// rules
"forceConsistentCasingInFileNames": true,
"noImplicitReturns": false,
"noUnusedLocals": true,
"strict": true,
// decorators
"experimentalDecorators": true,
// output & paths
"outDir": "./dist/",
"module": "ESNext", // changed from commonjs to ESNext to ensure typescript outputs code that can be split by webpack (with commonjs, the dynamic imports were removed)
"target": "ES2019",
"removeComments": false, // to be sure comments required by webpack to split are still present
"moduleResolution": "node", // https://vuejs.org/v2/guide/typescript.html
"allowSyntheticDefaultImports": true,
"esModuleInterop": true, // for lodash imports (https://github.com/lodash/lodash/issues/3192)
"allowJs": true,
"sourceMap": true,
"declaration": true,
// "declarationDir": "./dist/types", // declarationDir cannot be set if declaration is false
"importHelpers": true,
"lib": ["dom", "es2019.array"]
// "typeRoots": []
},
"exclude": ["node_modules", "modules", "dist", "public", "webpack"]
}