Webpack 5 is consistently ~30% slower for all our packages compared to Webpack 4 #12475
Unanswered
JonWallsten
asked this question in
Q&A
Replies: 2 comments 42 replies
-
|
Please record profiling and put it here #12102 |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
In the benchmark of esbuild, webpack 5 is indeed slower than webpack 4: |
Beta Was this translation helpful? Give feedback.
40 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
After migrating from Webpack 4 to Webpack 5 i started to notice increased build times.
I have not measured anything in development mode, but I have made lots of testing in production mode (less plugins and bloat).
I have measured with different settings and plugins and Webpack 5 is consistently around at least 30% slower for both our core library build and our Angular app bild.
I have not yet figured out a way to decrease the time in the Webpack 5 build with any modifications.
I have tried to remove all loaders besides ts-loader, which is of course essential for this to run at all.
Before I create a bug report I wanted to start a discussion about possible sources of this issue.
Measurements:
Core Library
Angular App
My config for Webpack 4
https://pastebin.com/ZbUG3fp4
** Versions for Webpack 4**
Build log for Webpack 4
My config for Webpack 5
https://pastebin.com/5QMP7XPJ
** Versions for Webpack 5**
Build log for Webpack 5
Please let me know if you need anything else.
Beta Was this translation helpful? Give feedback.
All reactions