From 5dc4cad03d6e29f6d40421ecc9652acae962dd10 Mon Sep 17 00:00:00 2001 From: "Michael Bradley, Jr" Date: Wed, 25 Jul 2018 19:58:24 -0500 Subject: [PATCH] more conservative: only modify webpack's subclass of ProcessWrapper --- lib/pipeline/webpackProcess.js | 5 +++++ lib/process/processWrapper.js | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/pipeline/webpackProcess.js b/lib/pipeline/webpackProcess.js index b53f1138..759b1157 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 f045f3d8..30108fe4 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();