babel-register run default register with global module cache (#12674)
Follow-up to PR #12665.
This commit is contained in:
parent
446c70c6c3
commit
b727e67347
@ -112,8 +112,6 @@ export function revert() {
|
||||
if (piratesRevert) piratesRevert();
|
||||
}
|
||||
|
||||
register();
|
||||
|
||||
export default function register(opts?: Object = {}) {
|
||||
// Clone to avoid mutating the arguments object with the 'delete's below.
|
||||
opts = {
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user