tsconfig.json 871 字节
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
            ]
26 27 28 29
        }
        // Feel free to add/edit new config options below:
        // ...
    }
30
}