use __webpack_require__.i to escape brakets

This commit is contained in:
Tobias Koppers 2017-01-26 00:17:31 +01:00 committed by GitHub
parent 8b1f5f757f
commit 3b6ef1a7ab
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ class DefinePlugin {
}(definitions, ""));
function stringifyObj(obj) {
return "({" + Object.keys(obj).map((key) => {
return "__webpack_require__.i({" + Object.keys(obj).map((key) => {
let code = obj[key];
return JSON.stringify(key) + ":" + toCode(code);
}).join(",") + "})";