You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: modernize dynamic-remotes example implementation
Critical improvements to address identified issues:
- **React 18 Upgrade**: Updated from 16.13.0 to 18.3.1 across all apps
- Enhanced security and performance
- Access to modern React features (Concurrent Mode, Suspense improvements)
- Updated react-redux and redux to compatible versions
- **Environment-based Configuration**: Replaced hardcoded URLs
- Dynamic remote entry generation based on NODE_ENV
- Support for REACT_APP_REMOTE_BASE_URL environment variable
- Production deployment flexibility
- **Enhanced Error Handling**: Comprehensive error boundary and loading states
- Custom ErrorBoundary component with retry functionality
- Loading states with visual feedback
- Detailed error reporting with user-friendly fallbacks
- Disabled buttons during loading to prevent race conditions
- **Optimized Shared Dependencies**: Standardized configurations
- Consistent React 18+ requirements across webpack/rspack configs
- Added react/jsx-runtime for modern JSX transform
- Proper strictVersion enforcement for singletons
- Moment.js configured as non-singleton for flexibility
- **Legacy Configuration Cleanup**: Removed deprecated patterns
- Removed unnecessary library configuration from app3
- Standardized ModuleFederationPlugin configurations
- Consistent shared dependency patterns
All applications now build successfully and follow Module Federation best practices.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments