Skip to content

Commit b25ccfc

Browse files
author
einarlove
committed
Triple-check if value is not undefined
1 parent b8d0917 commit b25ccfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/EnvironmentPlugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ EnvironmentPlugin.prototype.apply = function(compiler) {
3434
});
3535
}
3636

37-
defs["process.env." + key] = value ? JSON.stringify(value) : "undefined";
37+
defs["process.env." + key] = value === 'undefined' ? 'undefined' : JSON.stringify(value);
3838

3939
return defs;
4040
}.bind(this), {});

0 commit comments

Comments
 (0)