-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
tsconfig.json
25 lines (24 loc) · 1.21 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
{
"extends": ["@tsconfig/strictest/tsconfig.json", "@tsconfig/node18/tsconfig.json"],
"exclude": ["node_modules", "benchmark", "static", "e2e-test", "fixtures", "fixtures-tmp", "dist", "bin", "tmp"],
"compilerOptions": {
"module": "Node16",
"moduleResolution": "node16",
"noEmit": true,
"incremental": true,
"tsBuildInfoFile": "node_modules/.cache/typescript/.tsbuildinfo",
/* Lint Options */
"noUnusedLocals": false, // Delegate to @typescript-eslint/no-unused-vars in eslint
"noUnusedParameters": false, // Delegate to @typescript-eslint/no-unused-vars in eslint
// 🤯🤯🤯 THIS IS SUPER HACK!!! 🤯🤯🤯
// - comlink provides an ESM module (ex. `comlink/dist/esm/node-adapter.mjs`)
// - Of course, comlink also provide type definitions (ex. `comlink/dist/esm/node-adapter.d.ts`)
// - However, the corresponding type definition for `xxx.mjs` is `xxx.d.mts` in `"module": "node12"` mode
// - Therefore, importing the ESM module causes compilation errors
// - So, use `paths` option to force `xxx.mjs` to be mapped to `xxx.d.ts`.
"baseUrl": ".",
"paths": {
"comlink/dist/esm/node-adapter.mjs": ["./node_modules/comlink/dist/esm/node-adapter.js"]
}
}
}