Skip to content

Commit e549660

Browse files
authored
check typeof value
1 parent be40f6d commit e549660

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/EnvironmentPlugin.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class EnvironmentPlugin {
3838
});
3939
}
4040

41-
defs[`process.env.${key}`] = value === undefined ? "undefined" : JSON.stringify(value);
41+
defs[`process.env.${key}`] = typeof value === undefined ? "undefined" : JSON.stringify(value);
4242

4343
return defs;
4444
}, {});

0 commit comments

Comments
 (0)