Is it possible to access a global variable inside an es6 module using the bracket notation, basically doing something like this:
const GLOBAL = 'something'
console.log(this['GLOBAL']) // evaluates to undefined, of course
Doesn't seem to be working
console.log(GLOBAL)will work - if it's in another module thenexport\importwill work - it's a bit unclear what you mean byglobal