From c57b9ede345dd0a6c6cd17870a735ebea8325741 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Thu, 19 Oct 2023 12:00:08 -0700 Subject: [PATCH] build: remove worker types from global Signed-off-by: Varun Patil --- src/components/frame/XImgWorker.ts | 2 ++ src/service-worker.ts | 2 ++ tsconfig.json | 1 - 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/frame/XImgWorker.ts b/src/components/frame/XImgWorker.ts index 6b5d3f33..ae238184 100644 --- a/src/components/frame/XImgWorker.ts +++ b/src/components/frame/XImgWorker.ts @@ -1,3 +1,5 @@ +/// + import { CacheExpiration } from 'workbox-expiration'; import { workerExport } from '../../worker'; diff --git a/src/service-worker.ts b/src/service-worker.ts index bfafb885..2196a683 100644 --- a/src/service-worker.ts +++ b/src/service-worker.ts @@ -1,3 +1,5 @@ +/// + import { precacheAndRoute, cleanupOutdatedCaches } from 'workbox-precaching'; import { NetworkFirst, CacheFirst } from 'workbox-strategies'; import { registerRoute } from 'workbox-routing'; diff --git a/tsconfig.json b/tsconfig.json index 5fd8843c..ea8055d2 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,7 +2,6 @@ "compilerOptions": { "lib": [ "dom", - "WebWorker", "es2017" ], "target": "ES2017",