I want to write require with ES6 import. In the case without a key, it is pretty easy to do:
var args2 = require('yargs2');
-> import foo from 'bar';
But with a key, I can't find the appropriate syntax:
var foo = require('bar').key;
How can I do that?