From 61cf1d5d88ddd07317802b005b8599bb4184f392 Mon Sep 17 00:00:00 2001 From: Onyx Date: Sat, 5 Dec 2026 21:09:31 +0100 Subject: [PATCH] build: raise the bundle budgets for protocol 0.69.0 The Update Mouse Protocol workflow measured JS at 5,000,855 bytes (budget 5,000,000) and main at 1,786,583 with @openmouse/protocol 0.69.0: Glorious Model I, ASUS Harpe Ace Mini, MCHOSE L7 Ultra, VAXEE DPI stages, Razer Viper Mini Hypershift and Corsair IRONCLAW RGB. JS goes to 5.2 MB and main to 1.85 MB, so the next protocol bump has room. --- build/check-bundle-size.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/check-bundle-size.ts b/build/check-bundle-size.ts index d6227037..81858f68 100644 --- a/build/check-bundle-size.ts +++ b/build/check-bundle-size.ts @@ -103,7 +103,7 @@ export const BUDGET_BYTES: Record = { ".css": 192_000, // 2026-12-03: shared LIGHTSPEED (#1651) plus the G915 X TKL editor (#1724) // measured 4,805,489 bytes of JS together; main 1,726,831 bytes. - ".js": 5_000_000, + ".js": 5_200_000, }; // main-*.js measured 1,511,619 bytes right after the split (posthog ~377 kB @@ -123,7 +123,7 @@ export const BUDGET_BYTES: Record = { // slot at startup, so the slot devices and their retry live in main: measured // 1,700,309 bytes with protocol 0.64.0 and keyboard-protocol 1.9.0. 1.75 MB // also covers the G915 X TKL editor wiring (#1724): 1,710,641 bytes. -export const MAIN_CHUNK_BUDGET_BYTES = 1_800_000; +export const MAIN_CHUNK_BUDGET_BYTES = 1_850_000; export const ASSETS = join("dist", "assets");