Skip to content

Commit 6cfc098

Browse files
cscheidclaude
andcommitted
fix(hub-client): raise PWA precache size limit so WASM growth stops breaking CI
The workbox `maximumFileSizeToCacheInBytes` ceiling was 35MB while the `wasm_quarto_hub_client_bg.wasm` artifact had crept to ~36.7MB. When a globbed precache asset exceeds the limit, workbox emits a warning that vite-plugin-pwa's `logWorkboxResult` throws as a fatal build error, failing `vite build` (and thus the TS Test Suite's Build WASM step). The boundary was razor-thin: the local/ubuntu build landed just under 35MiB while the macOS CI build produced ~990 bytes over, so main went red only on macOS after #379 (render_printable + self-contained inliner) grew the WASM. Raise the ceiling to 64MB to restore generous headroom for continued WASM growth. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 29e4ace commit 6cfc098

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

hub-client/vite.config.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,12 @@ export default defineConfig({
114114
workbox: {
115115
// Precache all static assets including JS/CSS bundles and WASM
116116
globPatterns: ['**/*.{html,js,css,svg,woff,woff2,wasm}'],
117-
// Increase limit to 35MB to include WASM files (largest is ~32MB)
118-
maximumFileSizeToCacheInBytes: 35 * 1024 * 1024,
117+
// Increase limit to include WASM files (largest is ~37MB and growing).
118+
// Keep generous headroom: when a globbed asset exceeds this limit
119+
// workbox emits a warning that vite-plugin-pwa throws as a fatal
120+
// build error, so a too-tight ceiling breaks CI the moment the WASM
121+
// creeps past it (see the 35MB ceiling that broke main after #379).
122+
maximumFileSizeToCacheInBytes: 64 * 1024 * 1024,
119123
// Don't warn about large files - we know they're big
120124
dontCacheBustURLsMatching: /\.[0-9a-f]{8}\./,
121125
runtimeCaching: [

0 commit comments

Comments
 (0)