-
-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Closed
Labels
Description
Do you want to request a feature or report a bug?
Feature
What is the current behavior?
If optimization.runtimeChunk is set to true, multiple runtime chunks are created if there is more than one entrypoint. To avoid this, optimization.runtimeChunk has to be set to 'single' instead.
What is the expected behavior?
That optimization.runtimeChunk: true does the right thing even when there are multiple entrypoints, and the 'single' option be deprecated then eventually removed.
If this is a feature request, what is motivation or use case for changing the behavior?
- as an end-user it's confusing to have two options (
trueand'single') to switch on what is mostly the same feature, where one (true) is actually 'broken'/suboptimal for multi-entrypoints. (In the docs and blog posts, people often forget to emphasise the need to use'single') - I can't see a disadvantage for using
'single'even when there is only one entry-point - so why not make that be the behaviour fortrue?
Many thanks :-)