Leave it to users to clear the require cache if they want to.

This commit is contained in:
Logan Smyth 2018-07-14 12:47:37 -07:00
parent 2854a187be
commit c4f67bfa57
2 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,6 @@ function hookExtensions(exts) {
export function revert() {
if (piratesRevert) piratesRevert();
delete require.cache[require.resolve(__filename)];
}
register();

View File

@ -52,6 +52,7 @@ describe("@babel/register", function() {
function revertRegister() {
if (babelRegister) {
babelRegister.revert();
delete require.cache[registerFile];
babelRegister = null;
}
}