Skip to content

Commit

Permalink
fix: child compiler lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardogobbosouza committed Nov 12, 2021
1 parent 18e4042 commit c472440
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ class ESLintWebpackPlugin {
// Do not re-hook
if (
// @ts-ignore
compiler.hooks.thisCompilation.taps.find(({ name }) => name === this.key)
compiler.hooks.compilation.taps.find(({ name }) => name === this.key)
) {
return;
}

compiler.hooks.thisCompilation.tap(this.key, (compilation) => {
compiler.hooks.compilation.tap(this.key, (compilation) => {
/** @type {import('./linter').Linter} */
let lint;
/** @type {import('./linter').Reporter} */
Expand Down

0 comments on commit c472440

Please sign in to comment.