amis-rpc-design/node_modules/@babel/register/lib/nodeWrapper.js

14 lines
452 B
JavaScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
const Module = require("module");
const globalModuleCache = Module._cache;
const internalModuleCache = Object.create(null);
Module._cache = internalModuleCache;
const node = require("./node.js");
Module._cache = globalModuleCache;
const smsPath = require.resolve("source-map-support");
globalModuleCache[smsPath] = internalModuleCache[smsPath];
const register = node.default;
register();
module.exports = node;
//# sourceMappingURL=nodeWrapper.js.map