From 202567bf058880a96d6afe90a552bd99cdf2ca3f Mon Sep 17 00:00:00 2001 From: Evie Gauthier Date: Mon, 6 Apr 2026 12:35:25 -0400 Subject: [PATCH 1/2] fix(pwa): re-enable Workbox precaching (remove if guard and injectionPoint override) --- src/sw.ts | 4 +--- vite.config.ts | 6 +++++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/sw.ts b/src/sw.ts index bd09cd8d3..d843963bd 100644 --- a/src/sw.ts +++ b/src/sw.ts @@ -902,7 +902,5 @@ self.addEventListener('notificationclick', (event: NotificationEvent) => { ); }); -if (self.__WB_MANIFEST) { - precacheAndRoute(self.__WB_MANIFEST); -} +precacheAndRoute(self.__WB_MANIFEST); cleanupOutdatedCaches(); diff --git a/vite.config.ts b/vite.config.ts index a130df507..9b32ceac9 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -176,7 +176,11 @@ export default defineConfig(({ command }) => ({ injectRegister: false, manifest: false, injectManifest: { - injectionPoint: undefined, + // element-call is a self-contained embedded app; exclude its large assets + // from the SW precache manifest (they are not part of the Sable shell). + globIgnores: ['public/element-call/**'], + // The app's own crypto WASM and main bundle exceed the 2 MiB default. + maximumFileSizeToCacheInBytes: 10 * 1024 * 1024, // 10 MiB }, devOptions: { enabled: true, From 58176a610e4b23a6d0c39a83f2cd00f557326cb9 Mon Sep 17 00:00:00 2001 From: Evie Gauthier Date: Mon, 6 Apr 2026 12:35:26 -0400 Subject: [PATCH 2/2] chore: add changeset for workbox-precaching --- .changeset/workbox-precaching.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/workbox-precaching.md diff --git a/.changeset/workbox-precaching.md b/.changeset/workbox-precaching.md new file mode 100644 index 000000000..2537469a5 --- /dev/null +++ b/.changeset/workbox-precaching.md @@ -0,0 +1,5 @@ +--- +default: patch +--- + +Fix Workbox precaching by removing injectionPoint override that was silently disabling all precache entries