more conservative: only modify webpack's subclass of ProcessWrapper

This commit is contained in:
Michael Bradley, Jr 2018-07-25 19:58:24 -05:00 committed by Iuri Matias
parent 250d80e0ff
commit b0638d6585
2 changed files with 5 additions and 1 deletions

View File

@ -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;

View File

@ -17,7 +17,6 @@ class ProcessWrapper {
*/
constructor(_options) {
this.interceptLogs();
this.env = _options ? _options.env : 'development';
this.events = new Events();
this.pingParent();