Skip to content

Commit c472440

Browse files
fix: child compiler lint
1 parent 18e4042 commit c472440

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@ class ESLintWebpackPlugin {
7979
// Do not re-hook
8080
if (
8181
// @ts-ignore
82-
compiler.hooks.thisCompilation.taps.find(({ name }) => name === this.key)
82+
compiler.hooks.compilation.taps.find(({ name }) => name === this.key)
8383
) {
8484
return;
8585
}
8686

87-
compiler.hooks.thisCompilation.tap(this.key, (compilation) => {
87+
compiler.hooks.compilation.tap(this.key, (compilation) => {
8888
/** @type {import('./linter').Linter} */
8989
let lint;
9090
/** @type {import('./linter').Reporter} */

0 commit comments

Comments
 (0)