mirror of
https://github.com/zulip/zulip.git
synced 2025-10-30 19:43:47 +00:00
Now the caller simply imports the debug ‘require’ function as a module, deciding for itself how to expose it and with what name (in our case, we expose it as ‘require’ with expose-loader). Also, remove a stray console.log. Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
12 lines
235 B
JavaScript
12 lines
235 B
JavaScript
/* global __webpack_require__ */
|
|
|
|
function debugRequire(request) {
|
|
return __webpack_require__(debugRequire.ids[request]);
|
|
}
|
|
|
|
debugRequire.initialize = function (ids) {
|
|
debugRequire.ids = ids;
|
|
};
|
|
|
|
module.exports = debugRequire;
|