Closed JohnnyFun closed 3 years ago
If I watch a single file with npx esw -w --clear src\app.js, it responds relatively quickly.
npx esw -w --clear src\app.js
But if I watch an entire directory, it's pretty slow. npx esw -w --clear src --ext .js,.svelte
npx esw -w --clear src --ext .js,.svelte
If it helps, webpack's eslint-loader in watch mode is immediate when a file is changed, so might help to look at what they're doing.
I just needed to use --cache --cache-strategy content and was faster.
--cache --cache-strategy content
Environment
Basic Description of the problem
If I watch a single file with
npx esw -w --clear src\app.js
, it responds relatively quickly.But if I watch an entire directory, it's pretty slow.
npx esw -w --clear src --ext .js,.svelte
If it helps, webpack's eslint-loader in watch mode is immediate when a file is changed, so might help to look at what they're doing.