Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance: 4.0 Hot Module Replacement build very slow #209

Closed
yoyo837 opened this issue Feb 21, 2023 · 5 comments
Closed

Performance: 4.0 Hot Module Replacement build very slow #209

yoyo837 opened this issue Feb 21, 2023 · 5 comments

Comments

@yoyo837
Copy link

yoyo837 commented Feb 21, 2023

Bug report

#197 changes caused Hot Module Replacement build to be very slow after save files in dev mode.

Actual Behavior

HMR consumes a lot of time.

Expected Behavior

Need to be as responsive fast as before.

How Do We Reproduce?

Please paste the results of npx webpack-cli info here, and mention other relevant information

  System:
    OS: macOS 13.2.1
    CPU: (10) arm64 Apple M1 Max
    Memory: 7.29 GB / 32.00 GB
  Binaries:
    Node: 16.19.1 - /opt/homebrew/opt/node@16/bin/node
    Yarn: 1.22.19 - /opt/homebrew/bin/yarn
    npm: 8.19.3 - /opt/homebrew/opt/node@16/bin/npm
  Browsers:
    Chrome: 110.0.5481.100
    Firefox: 109.0.1
    Safari: 16.3
  Packages:
    eslint-import-resolver-webpack: ^0.13.2 => 0.13.2 
@VQH-cmd
Copy link

VQH-cmd commented Feb 23, 2023

Solution here

new ESLintPlugin({
...
cache: true, // 👈
...
})

@yoyo837
Copy link
Author

yoyo837 commented Feb 23, 2023

Solution here

new ESLintPlugin({
...
cache: true, // 👈
...
})

Thanks.

@yoyo837
Copy link
Author

yoyo837 commented Feb 23, 2023

Duplicate of #208

@MaximeCheramy
Copy link

I already have cache: true and the update to version 4.0.0 is now very slow (0.5s with version 3.2.0 to 5s now) when touching a file.

@FujitaKyotaka
Copy link

FujitaKyotaka commented Dec 4, 2023

still slow even if i set cache: true.
but with threads: false it solved the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants