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
parent dd46765154
commit 5dc4cad03d
2 changed files with 5 additions and 1 deletions

View File

@ -10,6 +10,11 @@ const path = require('path');
let webpackProcess; let webpackProcess;
class WebpackProcess extends ProcessWrapper { class WebpackProcess extends ProcessWrapper {
constructor(options) {
super(options);
this.env = options.env;
}
build(file, importsList, callback) { build(file, importsList, callback) {
const self = this; const self = this;
let realCwd; let realCwd;

View File

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