mirror of https://github.com/webpack/webpack.git
use __webpack_require__.i to escape brakets
This commit is contained in:
parent
8b1f5f757f
commit
3b6ef1a7ab
|
|
@ -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(",") + "})";
|
||||
|
|
|
|||
Loading…
Reference in New Issue