| 1 | { |
| 2 | // The service worker: sw.js plus the one file it importScripts. It keeps the |
| 3 | // DOM lib even though a worker has no DOM — picker.js only *defines* |
| 4 | // tbPickElement here; the body runs in the page, injected by |
| 5 | // scripting.executeScript, and has to be checked against the page's globals. |
| 6 | // (lib.webworker and lib.dom cannot both be loaded — they redeclare each |
| 7 | // other. `importScripts` is declared in types/worker.d.ts instead.) |
| 8 | "extends": "./jsconfig.base.json", |
| 9 | "compilerOptions": { |
| 10 | "lib": ["ES2022", "DOM", "DOM.Iterable"] |
| 11 | }, |
| 12 | "include": [ |
| 13 | "sw.js", |
| 14 | "picker.js", |
| 15 | "lib/shot.js", |
| 16 | "lib/split.js", |
| 17 | "types/globals.d.ts", |
| 18 | "types/worker.d.ts" |
| 19 | ] |
| 20 | } |