Skip to content

Commit 6bd1240

Browse files
authored
Merge pull request webpack#6352 from webpack/replace_apply
Remove deprecated apply call
2 parents 2d7d5a0 + 6072c49 commit 6bd1240

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module.exports = class TestChildCompilationFailurePlugin {
1818
child.hooks.compilation.tap("TestChildCompilationFailurePlugin", childCompilation => {
1919
childCompilation.errors.push(new Error("forced error"));
2020
});
21-
child.apply(new SingleEntryPlugin(compiler.options.context, compiler.options.entry, "child"));
21+
new SingleEntryPlugin(compiler.options.context, compiler.options.entry, "child").apply(child);
2222
child.runAsChild(cb);
2323
});
2424
}

0 commit comments

Comments
 (0)