I am importing some modules
import foo from 'foo.js'
import bar from 'bar.js'
I want to be able to select them dynamically, using a string to refer to their name, so instead of:
setConfig(foo)
I want to do something like:
setConfig( context['foo'])
Is this possible? what is the context (ie. the equivalent of 'this', 'global', 'window') where the module might be resolved?