webpack: 10x slowdown in sealing between `5.96.1` and `5.97.0`
Bug report
Something odd happened between 5.96.1 and 5.97.0: our build time increased by an order of magnitude. Specifically, the progress grinds to a halt at 70% (sealing), takes about five minutes, and then proceeds quickly to 100%.
What is the current behavior?
In 5.97.0:
webpack 5.97.0 compiled successfully in 305755 ms
If the current behavior is a bug, please provide the steps to reproduce.
Please forgive my lack of knowledge, but I don’t even know where to start to try to figure out what could be causing this. Webpack is a black box to me. At the very least, here is a semver dump of relevant build-time dependencies:
"@babel/cli": "^7.25.9",
"@babel/core": "^7.26.0",
"@babel/preset-env": "^7.26.0",
"@babel/preset-react": "^7.25.9",
"@babel/preset-typescript": "^7.26.0",
"@svgr/webpack": "^8.1.0",
"babel-loader": "^9.2.1",
"browserslist": "^4.24.2",
"css-loader": "^6.11.0",
"dotenv-webpack": "^8.1.0",
"loader-utils": "^3.3.1",
"mini-css-extract-plugin": "^2.9.2",
"postcss": "^8.4.49",
"postcss-loader": "^8.1.1",
"postcss-modules-values": "^4.0.0",
"postcss-normalize": "^13.0.1",
"postcss-preset-env": "^10.1.1",
"resolve-url-loader": "^5.0.0",
"sass": "~1.77.8",
"sass-loader": "^16.0.3",
"style-loader": "^4.0.0",
"webpack": "~5.96.1",
"webpack-bundle-analyzer": "^4.10.2",
"webpack-cli": "^5.1.4",
"webpack-manifest-plugin": "^5.0.0",
"webpack-node-externals": "^3.0.0"
What is the expected behavior?
In 5.96.1, this was the compilation time:
webpack 5.96.1 compiled successfully in 21454 ms
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 2
- Comments: 15 (6 by maintainers)
confirm that 5.97.1 works again
https://github.com/webpack/webpack/releases/tag/v5.97.1
Fixed by https://github.com/webpack/webpack/pull/19040, release will be soon
@alexander-akait #19040 brings a significant performance boost for me: v5.97.0:
✨ Done in 301.77s.issue-19035:✨ Done in 31.63sPlease provide the result - https://webpack.js.org/plugins/profiling-plugin/, because unfortunately it is impossible to determine the cause from your information
And please never miss the points from the issue template, otherwise it will be closed, thank you
The only thing which was changed between these versions is and can and related to
seal- https://github.com/webpack/webpack/blob/main/lib/util/Queue.js, but it shouldn’t have changed the time so much