The HubSpot Sales Chrome extension (v3.1.0.40456) weighs in at 219MB per version. Chrome sometimes retains two versions, bringing the total to nearly 440MB for a single extension!
I did a breakdown of what’s taking up space:
- 171MB — JavaScript source maps (.js.map files)
- 75MB — JavaScript bundles
- 4MB — CSS
The Gmail integration alone accounts for ~44MB of JS and ~96MB of source maps. That’s… unreasonably large.
Source maps are development/debugging artifacts and should not be shipped in a production Chrome extension. Removing them alone would cut the extension size by ~78%. Most extensions of
comparable complexity are well under 20MB.
For comparison, other extensions I use: 1Password is 54MB, uBlock Origin Lite is 41MB, LanguageTool is 35MB — and none of these ship source maps.
Suggestion: Strip .js.map files from production builds. This would bring the extension from 219MB down to ~48MB, which is still on the large side but much more reasonable.