UNPKG

412 BJavaScriptView Raw
1const Module = require("module");
2
3const globalModuleCache = Module._cache;
4const internalModuleCache = Object.create(null);
5Module._cache = internalModuleCache;
6
7const node = require("./node");
8
9Module._cache = globalModuleCache;
10
11const smsPath = require.resolve("source-map-support");
12
13globalModuleCache[smsPath] = internalModuleCache[smsPath];
14const register = node.default;
15register();
16module.exports = node;
\No newline at end of file