title: Using a full URL in a dynamic import()
body: <p>Is it possible to use a full URL in a dynamic <code>import()</code> statement in ES6/Typescript?</p>
  
  <pre><code>import('https://foo.com/mymodule.js').then(() =&gt; {
      console.log('mymodule is loaded');
  });
  </code></pre>
  
  <p>I get an error</p>
  
  <pre><code>//Cannot find module 'https://foo.com/mymodule.js'.
  </code></pre>
  
  <p>With Webpack and Typescript, we're already successfully using a relative path with a dynamic import</p>
  
  <pre><code>import(/* webpackChunkName: "mymodule" */ '../mymodule');
  </code></pre>
  
  <p>so it seems that Webpack already does module loading at runtime.</p>