feat: use classpath load core js

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2020-04-22 09:23:21 +08:00
parent 87c78f7c6f
commit 351183ab3c
6 changed files with 25 additions and 39 deletions

View File

@ -382,6 +382,17 @@
}
}
}
require.disable = function __DynamicDisable__() {
for (var cacheModule in cacheModules) {
delete cacheModules[cacheModule]
}
cacheModules = undefined;
for (var cacheModule in cacheModuleIds) {
delete cacheModuleIds[cacheModule]
}
cacheModuleIds = undefined;
notFoundModules = undefined;
}
return require;
}