diff --git a/lib/pipeline/webpackProcess.js b/lib/pipeline/webpackProcess.js index b53f11389..759b11572 100644 --- a/lib/pipeline/webpackProcess.js +++ b/lib/pipeline/webpackProcess.js @@ -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; diff --git a/lib/process/processWrapper.js b/lib/process/processWrapper.js index f045f3d89..30108fe45 100644 --- a/lib/process/processWrapper.js +++ b/lib/process/processWrapper.js @@ -21,7 +21,6 @@ class ProcessWrapper { */ constructor(_options) { this.interceptLogs(); - this.env = _options ? _options.env : 'development'; this.events = new Events(); this.pingParent();