Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit 56a0a10

Browse files
vtrifonovsis0k0
authored andcommitted
fix: add a check for undefined environment values (#673)
* add a check for undefined environment values
1 parent 7a308ca commit 56a0a10

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/compiler.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@ function buildEnvCommandLineParams(config, envData, $logger) {
135135
const args = [];
136136
envFlagNames.map(item => {
137137
let envValue = envData[item];
138+
if (typeof envValue === "undefined") {
139+
return;
140+
}
138141
if (typeof envValue === "boolean") {
139142
if (envValue) {
140143
args.push(`--env.${item}`);

0 commit comments

Comments
 (0)