What is the current behavior?
When I run
yarn build component which is imported once is not extracted to separate chunk. Only after I import it more than once it is extracted to separate chunk file (despite having
minChunks: 1 option).
If the current behavior is a bug, please provide the steps to reproduce.
Minimal reproduced example created with vue-cli: https://github.com/folmert/minchunks
What is the expected behavior?
According to Webpack docs,
Minimum number of chunks that must share a module before splitting. (default value: 1)
So I would expect that if a module is shared even once it would still be generated into a separate chunk file.
Other relevant information:
webpack version: 4.16.0
Node.js version: v10.6.0
Operating System: Windows 10