more conservative: only modify webpack's subclass of ProcessWrapper
This commit is contained in:
parent
250d80e0ff
commit
b0638d6585
|
@ -10,6 +10,11 @@ const path = require('path');
|
|||
let webpackProcess;
|
||||
|
||||
class WebpackProcess extends ProcessWrapper {
|
||||
constructor(options) {
|
||||
super(options);
|
||||
this.env = options.env;
|
||||
}
|
||||
|
||||
build(file, importsList, callback) {
|
||||
const self = this;
|
||||
let realCwd;
|
||||
|
|
|
@ -17,7 +17,6 @@ class ProcessWrapper {
|
|||
*/
|
||||
constructor(_options) {
|
||||
this.interceptLogs();
|
||||
this.env = _options ? _options.env : 'development';
|
||||
this.events = new Events();
|
||||
|
||||
this.pingParent();
|
||||
|
|
Loading…
Reference in New Issue