webpack-contrib / eslint-webpack-plugin

A ESLint plugin for webpack
MIT License
254 stars 47 forks source link

Performance: 4.0 Hot Module Replacement build very slow #209

Closed yoyo837 closed 1 year ago

yoyo837 commented 1 year ago

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 commented 1 year ago

Solution here

new ESLintPlugin({
...
cache: true, // 👈
...
})
yoyo837 commented 1 year ago

Solution here

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

Thanks.

yoyo837 commented 1 year ago

Duplicate of #208

MaximeCheramy commented 1 year ago

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 commented 7 months ago

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