Webpack generating child chunks for dynamic imported modules

97 Views Asked by At

I'm using react-loadable to dynamically import the route component, webpack is generating the chunk file but the issue is that the child modules that are imported inside the dynamically imported component is also generated in a separate chunk file. So it's generating multiple chunk files. I tried /* webpackChunkName: "lazyComponent" */ but it didn't worked

0

There are 0 best solutions below