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