Skip to content

Chore/reduce mobile bundle size - #57

Merged
snhsish merged 2 commits into
mainfrom
chore/reduce-mobile-bundle-size
Aug 23, 2026
Merged

Chore/reduce mobile bundle size#57
snhsish merged 2 commits into
mainfrom
chore/reduce-mobile-bundle-size

Conversation

@snhsish

@snhsish snhsish commented Aug 23, 2026

Copy link
Copy Markdown
Owner

No description provided.

- convert onboarding PNGs to WebP (~1.2MB -> ~0.6MB)
- ship only 3 Manrope weights via subpath imports (barrel pulled all 7 TTFs)
- remap tailwind font weight utilities to loaded weights
- set EXPO_ROUTER_DISABLE_NATIVE_TABS_MD=1 to drop unused 934KB Material Symbols font
- configure expo-build-properties: arm64-only ABIs, R8 minify, resource shrinking
- codemod lucide-react-native barrel imports to deep per-icon imports
  across 37 files (1570 -> 83 icon modules, ~1.9MB less bytecode)
- add ambient module declaration for deep icon imports in types.d.ts
- lazy-load Prism grammars on first code block render instead of startup
- drop fast-text-encoding polyfill (Hermes provides TextEncoder)
@snhsish
snhsish merged commit 42a2fd8 into main Aug 23, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant