babel-register run default register with global module cache (#12674)

Follow-up to PR #12665.
This commit is contained in:
overlookmotel
2021-01-25 20:51:16 +00:00
committed by GitHub
parent 446c70c6c3
commit b727e67347
2 changed files with 3 additions and 2 deletions

View File

@@ -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;