Webpack splitChunks optimization is throwing errors when i integrate its build into another project

76 Views Asked by At

I have a common components project and to its webpack i added chunk splitting to reduse bundle size. When i integrate this project to the other project and run it i get errors that components are undefined, why? without splitChunks optimization it works fine.

`splitChunks: {
   chunks: "all",
}`

Also my project doesn't have index.html, because its made of only components, maybe that means something.

I want it to work with spliCHunks as well, why this spliiting makes my componenets undefined

0

There are 0 best solutions below