prevent loading unpatched webpack loader

This commit is contained in:
Jean Ouina 2020-08-11 13:21:51 +02:00
parent ef8f005dfd
commit 0cf2aa12c6
1 changed files with 5 additions and 1 deletions

View File

@ -48,8 +48,12 @@ let hasPrivateInit = false
async function privateInit(){
if(!hasInit)return
if(hasPrivateInit)return
installReactDevtools()
hasPrivateInit = true
installReactDevtools()
let cached = require.cache[path.join(__dirname, "loaders", "modules.js")]
if(cached){
cached.exports = window.BDModules
}
//disabling sentry
ModuleLoader.get(e => e.getCurrentHub)[0].getCurrentHub().getClient().getOptions().enabled = false