Just to be clear, I don't believe this issue is at all related to routing lazy-loading because this issue is in a bootstrapped component where this is failing to run as expected.
I have an ion-modal that is triggered from the base app.component for when no network is detected. I need to ensure that the ion-modal scripts are available after the initial payload is sent; however, when I load the app then turn off the network in the network debugger tab it is lazy-loading ion-modal.
vendor.js:41664 ChunkLoadError: Loading chunk 20 failed.
The script being referenced has the following in its webpack comments and appears to be entirely ion-modal code.
./node_modules/@ionic/core/dist/esm/ion-modal.entry.js
If I trigger a modal to show then hide, the chunk is successfully loaded and the following network error modal works as expected when triggered in the network debugger. When I try to search for articles around eager loading it's always about routing and that is not what I am looking for here.