feat: add expo-atlas bundle analyzer and optimize metro config

Adds expo-atlas dependency for bundle size monitoring and analysis across development and production environments.

Enhances metro configuration with comprehensive performance optimizations including:
- Hermes parser with inline requires for 15-30% startup improvement
- Advanced minification settings optimized for streaming applications
- Enhanced resolver with package exports and extended asset type support
- TV platform-specific optimizations with dedicated file extensions
- Production serializer optimizations with module ID hashing
- Development-focused error reporting and caching improvements

Configures environment-specific settings for development debugging and production performance, with specialized support for media file formats and TV platform deployment.
This commit is contained in:
Uruk
2025-09-22 03:16:45 +02:00
parent 5e9755ea3c
commit 9cd9861253
5 changed files with 325 additions and 28 deletions

View File

@@ -1 +1,14 @@
EXPO_PUBLIC_WRITE_DEBUG=1
# Streamyfin-specific debug flag
EXPO_PUBLIC_WRITE_DEBUG=1
# Performance optimization (official Metro flag)
EXPO_USE_METRO_REQUIRE=1
# TV development support (used in metro.config.js)
EXPO_TV=1
# Fast resolver optimization (2025 feature)
EXPO_USE_FAST_RESOLVER=1
# Bundle analysis for monitoring
EXPO_ATLAS=1