Completely updated React, fixed #11, (hopefully)
This commit is contained in:
4
goTorrentWebUI/node_modules/webpack/lib/NoEmitOnErrorsPlugin.js
generated
vendored
4
goTorrentWebUI/node_modules/webpack/lib/NoEmitOnErrorsPlugin.js
generated
vendored
@@ -7,12 +7,12 @@
|
||||
class NoEmitOnErrorsPlugin {
|
||||
apply(compiler) {
|
||||
compiler.plugin("should-emit", (compilation) => {
|
||||
if(compilation.errors.length > 0)
|
||||
if(compilation.getStats().hasErrors())
|
||||
return false;
|
||||
});
|
||||
compiler.plugin("compilation", (compilation) => {
|
||||
compilation.plugin("should-record", () => {
|
||||
if(compilation.errors.length > 0)
|
||||
if(compilation.getStats().hasErrors())
|
||||
return false;
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user