title: Import ES6 module from http url in Typescript
body: <p>I am writing a ES6 module which depends on other ES6 module specified with http url like this:</p>
  
  <pre><code>import { el, mount } from "https://cdnjs.cloudflare.com/ajax/libs/redom/3.26.0/redom.es.js";
  const pElem = el("p") // definitely works in Javascript
  </code></pre>
  
  <p>When I tried to translate my module in Typescript, I got this error:</p>
  
  <blockquote>
    <p>Cannot find module '<a href="https://cdnjs.cloudflare.com/ajax/libs/redom/3.26.0/redom.es.js" rel="noreferrer">https://cdnjs.cloudflare.com/ajax/libs/redom/3.26.0/redom.es.js</a>' or its corresponding type declarations.</p>
  </blockquote>
  
  <p>I'm using <code>ts-watch</code> npm module to compile Typescript, and it works fine unless I don't use the <code>import</code> from <code>https://...</code>.</p>
  
  <p>I also know that if I tried to import npm module (e.g. <code>import {el} from "redom"</code>) it works as well. But what I write is a module for web browser, not that of npm. With this this reason, using <code>webpack</code> is not an option.</p>