-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Closed
Description
Currently, I develop a huge react project with
webpack@5.85.1.- Apple M1 Max
When edit some files to trigger HMR, in progress plugin output, finishModules step tooks long time. So I add https://github.com/jantimon/cpuprofile-webpack-plugin to find out which step cost a lot, here is cpu profile screenshot:
Any ideas to optimize it? I already tried:
- [Build Performance] chunk graph very much slow #8557 replace dynamic
importtopromise.resolve - disable cache and progress in dev mode
It does't help. But when I comments sortItemsWithChunkIds inside Compliation.js, e.g.
// this.sortItemsWithChunkIds();
It make finish module step from 7s to 2s.
Originally posted by @JiangWeixian in #17751
Reactions are currently unavailable

