0

I decided to use React.lazy in my React app (16.6.3) with React Router 4.3.1 for lazy loading with Webpack 3.12.0, but when I used it, I observed huge speed bundling decrease. In other words, now it takes about 7 times slower to rebuilt component than before, it increases a bit every time I add new route (new lazy loaded component).

Does it mean that React.lazy works good only with Webpack 4?

turkus
  • 4,637
  • 2
  • 24
  • 28

0 Answers0