However your code that does this is most likely a shorthand switch statement:
let module switch(name) { case 'awesome': module = require('my-awesome') }
Because you do not really want to load an arbitrary module, but one that is very
much already known.