React router base code-splitting (get first chunk and then get other chunks async in background)
问题 I am using create-react-app. I want to react-router base code-splitting but I want to get the first chunk which user open in browser and then get other chunks asynchronously in the background Routes const HomeModule = React.lazy(() => import('./modules/ft_home_module/src/main')); const AuthModule = React.lazy(() => import('./modules/ft_auth_module/src/main')); const ProfileModule = React.lazy(() => import('./modules/ft_profile_module/src/main')); const MerchantModule = React.lazy(() => import