Hi! 👋 I'm an author of ForkTsCheckerWebpackPlugin. I recently removed support for EsLint in the plugin to focus on the TypeScript part. The eslint-webpack-plugin is a suggested replacement, but some users experience performance degradation when switching to this plugin (TypeStrong/fork-ts-checker-webpack-plugin#601) (for example from ~24s to ~40s).
Modification Proposal
Use compiler.modifiedFiles to get a list of files to lint and compiler.removedFiles to get a list of files to remove errors. This way you don't have to wait for compilation.hooks.finishModules to start the linting process.
Expected Behavior / Situation
The eslint-webpack-plugin has similar performance to fork-ts-checker-webpack-plugin@^6.0.0
Actual Behavior / Situation
The eslint-webpack-plugin is often significantly slower.
Please paste the results of npx webpack-cli info here, and mention other relevant information
I believe it's not related :)
Hi! 👋 I'm an author of ForkTsCheckerWebpackPlugin. I recently removed support for EsLint in the plugin to focus on the TypeScript part. The eslint-webpack-plugin is a suggested replacement, but some users experience performance degradation when switching to this plugin (TypeStrong/fork-ts-checker-webpack-plugin#601) (for example from ~24s to ~40s).
Modification Proposal
Use
compiler.modifiedFilesto get a list of files to lint andcompiler.removedFilesto get a list of files to remove errors. This way you don't have to wait forcompilation.hooks.finishModulesto start the linting process.Expected Behavior / Situation
The
eslint-webpack-pluginhas similar performance tofork-ts-checker-webpack-plugin@^6.0.0Actual Behavior / Situation
The
eslint-webpack-pluginis often significantly slower.Please paste the results of
npx webpack-cli infohere, and mention other relevant informationI believe it's not related :)