Promised wait for globals
yarn install await-global
import awaitGloabl from 'await-global';
awaitGlobal('SomeGlobal').then(SomeGlobal => {
console.log(SomeGlobal);
});
async function globalCheck() {
const AnotherGlobal = await awaitGlobal('AnotherGlobal');
console.log(AnotherGlobal);
}