-
-
Notifications
You must be signed in to change notification settings - Fork 50
eslint-webpack-plugin is 2.5 times slower than eslint-loader #30
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
Comments
Howe can reproduce or investigate this? Please provide more infromation |
I can confirm this. It seems that No special step is needed to reproduce. If you want, you can build my project.
const eslintFormatter = require('react-dev-utils/eslintFormatter');
{
enforce: 'pre',
test: /\.(ts|js)x?$/,
exclude: /node_modules/,
use: [
{
loader: 'eslint-loader',
options: {
formatter: eslintFormatter,
emitWarning: true,
},
},
],
},
new ESLintPlugin({
extensions: ['js', 'jsx', 'ts', 'tsx'],
emitWarning: true,
}), |
Faced the exact same issue while migrating. In our case, the recompile times increased by more than 10x. |
As someone looking to switch from |
Hi @hecontreraso |
Upgrading 2.1.0 -> 2.2.0 broke for me. When building I get an error about a missing module:
Not sure why it's now trying to lint node_modules files? Running |
ultra slow, both new webpack-dev-server and eslint-plugin |
Upgrading to 2.2.1 appears to solve the problem. Using 2.1.0
Using 2.2.1
|
Hi @decademoon |
Hi @ricardogobbosouza, it looks like this issue is still relevant Event though, those apps are relatively small, the initial build takes about 1 - 1.5 minutes and rebuild after each change takes approximately from 30sec to > than 1 minute However, if we disable We used: All of us use MacBooks Pro 15 2017-2019 Our config .eslintrc It seems, like with current performance of Might a problem be in our .eslintrc? If you need any additional info, please, let me know. |
Any updates on this issue @ricardogobbosouza? |
Hi @jgomezhidalgo, @OlehRb |
I've ran a few tests for a small-to-middle size project, which my team is currently working on: eslint-loader eslint-webpack-plugin^2.4.0 (my previous tests used this version as well) eslint-webpack-plugin^2.5.1 My machine: MacBooks Pro 15 2018 macOS Big Sur 11.2.1 At the first glance it looks like the performance of 2.5.1 drastically improved, when compared to 2.4.0 I guess we will try to switch back to eslint-webpack-plugin for a while to see if it is going to improve our development experience Nevertheless, awesome work @ricardogobbosouza, thank you very much |
When I run webpack it takes waaay more time than eslint-loaded. Is this normal?
I just followed the "Migrate from eslint-loader" instructions from the docs
Expected Behavior
Webpack compilation time is the same as before
Actual Behavior
Webpack compilation time is the 2.5 times higher
Code
The text was updated successfully, but these errors were encountered: