<p dir="auto">deno version 1.1.0</p>
<h3 dir="auto">index.tsx</h3>
<div class="highlight highlight-source-tsx notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="//@deno-types=&quot;https://deno.land/x/types/react/v16.13.1/react.d.ts&quot;
import React from &quot;https://cdn.pika.dev/react@16.13.1&quot;;
console.log(React);
const App = () =&gt; {
  return &lt;div&gt;Hello deno&lt;/div&gt;;
};

console.log(&lt;App /&gt;);
"><pre class="notranslate"><span class="pl-c">//<span class="pl-k">@deno</span>-types="https://deno.land/x/types/react/v16.13.1/react.d.ts"</span>
<span class="pl-k">import</span> <span class="pl-smi">React</span> <span class="pl-k">from</span> <span class="pl-s">"https://cdn.pika.dev/react@16.13.1"</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-smi">React</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-smi">App</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span>
  <span class="pl-k">return</span> <span class="pl-c1">&lt;</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span>Hello deno<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span>

<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-c1">&lt;</span><span class="pl-smi">App</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<blockquote>
<p dir="auto">use <code class="notranslate">deno run index.tsx</code><br>
output:</p>
</blockquote>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
  $$typeof: Symbol(react.element),
  type: [Function: App],
  key: null,
  ref: null,
  props: {},
  _owner: null
}"><pre class="notranslate"><code class="notranslate">{
  $$typeof: Symbol(react.element),
  type: [Function: App],
  key: null,
  ref: null,
  props: {},
  _owner: null
}
</code></pre></div>
<blockquote>
<p dir="auto">no problem, but use <code class="notranslate">deno bundle index.tsx index.js</code>, then</p>
</blockquote>
<h3 dir="auto">browser to index.html</h3>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;body&gt;
    &lt;script src=&quot;index.js&quot;&gt;&lt;/script&gt;
&lt;/body&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">body</span><span class="pl-kos">&gt;</span>
    <span class="pl-kos">&lt;</span><span class="pl-ent">script</span> <span class="pl-c1">src</span>="<span class="pl-s">index.js</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span>
<span class="pl-kos">&lt;/</span><span class="pl-ent">body</span><span class="pl-kos">&gt;</span></pre></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/8503065/85918814-7a9ef900-b898-11ea-82ab-616ba38624f6.png"><img src="https://user-images.githubusercontent.com/8503065/85918814-7a9ef900-b898-11ea-82ab-616ba38624f6.png" alt="image" style="max-width: 100%;"></a></p>
<h2 dir="auto">Steps to reproduce</h2>
<p dir="auto">Run <code class="notranslate">deno bundle https://deno.land/x/once/index.js</code></p>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">It prints a bundled JavaScript code</p>
<h2 dir="auto">Actual behavior</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error TS5012: Cannot read file 'https://deno.land/x/once/index.js': Error: assert.

► 
error TS6053: File 'https://deno.land/x/once/index.js' not found.

► 

Found 2 errors."><pre class="notranslate"><code class="notranslate">error TS5012: Cannot read file 'https://deno.land/x/once/index.js': Error: assert.

► 
error TS6053: File 'https://deno.land/x/once/index.js' not found.

► 

Found 2 errors.
</code></pre></div>
<hr>
<p dir="auto">I didn't try to bundle remote URL at first, instead, I tried bundling a local file (<code class="notranslate">deps.ts</code>) that import remote JS file. No compile errors occur, but a runtime error (cannot read property of <code class="notranslate">undefined</code>) was thrown when attempting to run it in the browser and in Node.js.</p>