-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
42 lines (42 loc) · 1.71 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
{
/* Common TS compiler settings for compilation outputs, IDEs (like VSCode) and test runner (Mocha) */
"compilerOptions": {
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "Node",
"lib": [
"DOM", // APIs used: setTimeout, clearTimeout
"ES2015", // APIs used: Promise (.race) (polyfilled)
"ES2017.Object", // APIs used: Object.values (polyfilled), Object.entries (polyfilled)
"ES2021.WeakRef", // APIs used: WeakRef (only used if available)
"ES2021.Promise" // APIs used: AggregateError (only used if available)
],
"paths": {
// Keep this in sync with the imports listed in package.json!
"#lib/browser": ["./lib/esm/browser/index"],
"#lib/bun": ["./lib/esm/bun/index"],
"#lib/chromium-extension": ["./lib/esm/chromium-extension/index"],
"#lib/cloudflare-worker": ["./lib/esm/cloudflare-worker/index"],
"#lib/deno": ["./lib/esm/deno/index"],
"#lib/node": ["./lib/esm/node/index"],
"#lib": ["./lib/esm/index"],
"#lib/*": ["./lib/esm/*"]
},
// Prevent typings for tests (mocha, chai, etc.) from bleeding into build source files.
// (Wish we had more fine-grained control over what typings are included in what part of
// the project... Something like this: https://github.com/microsoft/TypeScript/issues/33407)
"types": ["chrome", "node", "tunnel"],
// We only use const enums internally (to reduce build output size) but we want to provide
// normal enums for consumers, so we strip const from enums during build (see gulpfile.js).
"preserveConstEnums": true,
"strict": true
},
"exclude": [
"node_modules/",
"dist/",
"extra-checks/",
"lib/",
"samples/",
"types/"
]
}