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

Commit c81484f

Browse files
authored
fix: add a check for undefined environment values (#673)
* add a check for undefined environment values
1 parent d3d155d commit c81484f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: lib/compiler.js

+3
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)