forked from KCMertens/xonomy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
43 lines (36 loc) · 1.35 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
33
34
35
36
37
38
39
40
41
42
43
{
"compilerOptions": {
"outDir": "./dist/",
"module": "ES6",
"target": "es6",
"allowJs": true,
"moduleResolution": "node",
"sourceMap": true,
"strict": true,
"lib": [
"ES2020",
"dom",
"dom.iterable",
],
"baseUrl": "src",
"paths": {
"@/*": ["./*"]
},
"types": [
// Only declare "global" typings here (or typings that augment other typings, such as jqueryui, which adds methods)
// Other typings are automatically attached to things that manually imported
// Normally typescript picks up all type declarations in node_modules/@types
// However the nodejs definitions are pulled in by a transitive dependency (webpack-dev-server -> del -> glob)
// causing all sorts of issues where DOM functions such as setTimeout are resolved to the nodejs version, which is slightly different
// additionally, it declares a bunch of global variables to exist, and throws off autocompletion
// making it easy to think code works when it actually wouldn't (and thus cause runtime errors)
// So only autoload those typings we actually want and need.
// See https://github.com/sindresorhus/del/issues/88
"@types/jquery"
],
// "allowSyntheticDefaultImports": true,
// Output type definitions for exported functions as separate .d.ts files in the /dist/ dir.
"declaration": true,
"declarationDir": "dist",
}
}