webpack: Build time degradation in webpack@5.0.0-beta.0

Bug report

What is the current behavior?

I met huge build time degradation in new beta release. For example, node target in prod mode took

Version: webpack 5.0.0-beta.0
Time: 231016ms

instead of

Version: webpack 4.40.2
Time: 147028ms

If the current behavior is a bug, please provide the steps to reproduce.

I recorded graphs via webpack.debug.ProfilingPlugin for browser and node targets in both modes (dev and prod). I tried to open it but chrome stucks in the processing phase and closes devtool after that. Could you try to open it?

https://drive.google.com/file/d/13HA58298lrtX6FjJ833YuHkPqhYSU8Fj/view?usp=sharing

Link to config: https://github.com/7rulnik/webpack-config-v5-beta-built-time-issue/pull/1/files

What is the expected behavior?

Seems that it should take same or less time

Other relevant information: webpack version: v5.0.0-beta.0 Node.js version: v12.10.0 Operating System: macOS 10.15

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 23 (23 by maintainers)

Most upvoted comments

https://github.com/mozilla/source-map moved to webassembly so It will be much faster after upgrade