-
-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Open
Labels
Description
Description
Say I want to load a core part of the app before further features. import
makes this easy: I can just split out the further features, import
them, and they won't take up space in the core bundle or defer the core code from running. But now I've introduced a waterfall.
Here's a minimal example if you don't get what I mean: https://github.com/KTibow/viterepro
Suggested solution
If something is always going to be loaded, even if through top level import()
, always preload it. Maybe extend the same logic used to preload shared chunks.
Alternative
No response
Additional context
I believe this would always be the fastest approach:
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.