babel-register run default register with global module cache (#12674)
Follow-up to PR #12665.
This commit is contained in:
@@ -18,4 +18,7 @@ Module._cache = globalModuleCache;
|
||||
const smsPath = require.resolve("source-map-support");
|
||||
globalModuleCache[smsPath] = internalModuleCache[smsPath];
|
||||
|
||||
const register = node.default;
|
||||
register();
|
||||
|
||||
module.exports = node;
|
||||
|
||||
Reference in New Issue
Block a user