From c81484fa92536acaf3b05dddf091db7e72988770 Mon Sep 17 00:00:00 2001 From: Vasil Trifonov Date: Thu, 27 Sep 2018 16:18:28 +0300 Subject: [PATCH] fix: add a check for undefined environment values (#673) * add a check for undefined environment values --- lib/compiler.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/compiler.js b/lib/compiler.js index 159c366a..75c3da0f 100644 --- a/lib/compiler.js +++ b/lib/compiler.js @@ -135,6 +135,9 @@ function buildEnvCommandLineParams(config, envData, $logger) { const args = []; envFlagNames.map(item => { let envValue = envData[item]; + if (typeof envValue === "undefined") { + return; + } if (typeof envValue === "boolean") { if (envValue) { args.push(`--env.${item}`);