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
{{ message }}
This repository has been archived by the owner on Jan 21, 2021. It is now read-only.
As of 4.6.0 webpack will generate links based on webpackPreload/webpackPrefetch magic comments. However where we are attempting to preload/prefetch chunks from an entrypoint loading will not start until the parent as finished (See webpack/webpack#8342 (comment))
It would be great if chunks preloaded from an entrypoint were added as link tags by this plugin. I was thinking of adding an additional includeOption like initialAndChildren.
We would need to use data exposed in stats.entrypoints[].childAssets. The use of the stats api can slow down builds but only calling getStats if the consumer opts in through includeOption: initialAndChildren seems reasonable to me.
Happy to put up a PR if this is acceptable.
The text was updated successfully, but these errors were encountered:
As of 4.6.0 webpack will generate links based on webpackPreload/webpackPrefetch magic comments. However where we are attempting to preload/prefetch chunks from an entrypoint loading will not start until the parent as finished (See webpack/webpack#8342 (comment))
It would be great if chunks preloaded from an entrypoint were added as link tags by this plugin. I was thinking of adding an additional includeOption like
initialAndChildren
.We would need to use data exposed in
stats.entrypoints[].childAssets
. The use of the stats api can slow down builds but only callinggetStats
if the consumer opts in throughincludeOption: initialAndChildren
seems reasonable to me.Happy to put up a PR if this is acceptable.
The text was updated successfully, but these errors were encountered: