tsconfig.json 1.2 KB
Newer Older
1
{
2 3 4 5 6 7 8 9 10
    "include": [
        "src",
        "test",
        "types"
    ],
    "exclude": [
        "node_modules"
    ],
    "extends": "@snowpack/app-scripts-react/tsconfig.base.json",
11
    "compilerOptions": {
12 13 14 15 16 17 18
        // You can't currently define paths in your 'extends' config,
        // so we have to set 'baseUrl' & 'paths' here.
        // Don't change these unless you know what you're doing.
        // See: https://github.com/microsoft/TypeScript/issues/25430
        "baseUrl": "./",
        /* more strict checking for errors that per-file transpilers like `esbuild` would crash */
        "isolatedModules": true,
19
        "paths": {
20 21 22
            "*": [
                "web_modules/.types/*"
            ],
23
            "~/*": [
24
                "./src/*"
25
            ]
P
Peter Pan 已提交
26
        },
27 28
        // Feel free to add/edit new config options below:
        // ...
P
Peter Pan 已提交
29 30 31 32 33 34 35 36 37 38 39 40 41 42
        "lib": [
            "DOM",
            "DOM.Iterable",
            "ESNext",
            "ESNext.Array",
            "ESNext.AsyncIterable",
            "ESNext.BigInt",
            "ESNext.Intl",
            "ESNext.Promise",
            "ESNext.String",
            "ESNext.Symbol",
            "ScriptHost",
            "WebWorker"
        ]
43
    }
44
}