Skip to content

Commit 238cb04

Browse files
committed
Use tapable in Stat test cases
1 parent 33daf64 commit 238cb04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/statsCases/no-emit-on-errors-plugin-with-child-error/TestChildCompilationFailurePlugin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ module.exports = class TestChildCompilationFailurePlugin {
1313
}
1414

1515
apply(compiler) {
16-
compiler.plugin("make", (compilation, cb) => {
16+
compiler.hooks.make.tapAsync("TestChildCompilationFailurePlugin", (compilation, cb) => {
1717
const child = compilation.createChildCompiler("child", this.output);
18-
child.plugin("compilation", childCompilation => {
18+
child.hooks.compilation.tap("TestChildCompilationFailurePlugin", childCompilation => {
1919
childCompilation.errors.push(new Error("forced error"));
2020
});
2121
child.apply(new SingleEntryPlugin(compiler.options.context, compiler.options.entry, "child"));

0 commit comments

Comments
 (0)