mirror of https://github.com/webpack/webpack.git
remove unnecessary target assign
This commit is contained in:
parent
afc128c663
commit
ab72cce994
|
|
@ -10,9 +10,8 @@ class LoaderTargetPlugin {
|
|||
}
|
||||
|
||||
apply(compiler) {
|
||||
let target = this.target;
|
||||
compiler.plugin("compilation", (compilation) => {
|
||||
compilation.plugin("normal-module-loader", (loaderContext) => loaderContext.target = target);
|
||||
compilation.plugin("normal-module-loader", (loaderContext) => loaderContext.target = this.target);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue