We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9ac043 commit 14e9664Copy full SHA for 14e9664
1 file changed
lib/DefinePlugin.js
@@ -35,10 +35,10 @@ class DefinePlugin {
35
}(definitions, ""));
36
37
function stringifyObj(obj) {
38
- return "{" + Object.keys(obj).map((key) => {
+ return "({" + Object.keys(obj).map((key) => {
39
let code = obj[key];
40
return JSON.stringify(key) + ":" + toCode(code);
41
- }).join(",") + "}";
+ }).join(",") + "})";
42
}
43
44
function toCode(code) {
0 commit comments