Skip to content

Commit 3b6ef1a

Browse files
authored
use __webpack_require__.i to escape brakets
1 parent 8b1f5f7 commit 3b6ef1a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/DefinePlugin.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class DefinePlugin {
3535
}(definitions, ""));
3636

3737
function stringifyObj(obj) {
38-
return "({" + Object.keys(obj).map((key) => {
38+
return "__webpack_require__.i({" + Object.keys(obj).map((key) => {
3939
let code = obj[key];
4040
return JSON.stringify(key) + ":" + toCode(code);
4141
}).join(",") + "})";

0 commit comments

Comments
 (0)