<p dir="auto">When using Deno.compile (v1.1.1), the output doesn't have the import paths with the correct ext</p>
<h3 dir="auto">Compile config:</h3>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const [messages, result] = await Deno.compile(input, undefined, {
    target: 'es6',
    module: 'es6',
    lib: ['dom', 'esnext'],
  })"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-kos">[</span><span class="pl-s1">messages</span><span class="pl-kos">,</span> <span class="pl-s1">result</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-smi">Deno</span><span class="pl-kos">.</span><span class="pl-en">compile</span><span class="pl-kos">(</span><span class="pl-s1">input</span><span class="pl-kos">,</span> <span class="pl-c1">undefined</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>
    <span class="pl-c1">target</span>: <span class="pl-s">'es6'</span><span class="pl-kos">,</span>
    <span class="pl-c1">module</span>: <span class="pl-s">'es6'</span><span class="pl-kos">,</span>
    <span class="pl-c1">lib</span>: <span class="pl-kos">[</span><span class="pl-s">'dom'</span><span class="pl-kos">,</span> <span class="pl-s">'esnext'</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
  <span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div>
<h3 dir="auto">Source:</h3>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/16139979/85190319-a49b5e80-b28d-11ea-95bd-d5a6f24dd6ae.png"><img src="https://user-images.githubusercontent.com/16139979/85190319-a49b5e80-b28d-11ea-95bd-d5a6f24dd6ae.png" alt="image" style="max-width: 100%;"></a></p>
<h3 dir="auto">Output:</h3>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/16139979/85190292-4cfcf300-b28d-11ea-85fd-f40b229ecdd6.png"><img src="https://user-images.githubusercontent.com/16139979/85190292-4cfcf300-b28d-11ea-85fd-f40b229ecdd6.png" alt="image" style="max-width: 100%;"></a></p>
<h2 dir="auto">Problem</h2>
<p dir="auto"><code class="notranslate">Deno.compile()</code> does not convert local import URLs from <code class="notranslate">.ts</code> extension to <code class="notranslate">.js</code> extension, making it impossible to use inside browser and Node.js.</p>
<h2 dir="auto">Steps to reproduce</h2>
<p dir="auto">Run <a href="https://gist.github.com/KSXGitHub/c94a9d7eb8e976f1126b4b9dfeba0497">this file</a> (<code class="notranslate">deno run https://gist.githubusercontent.com/KSXGitHub/c94a9d7eb8e976f1126b4b9dfeba0497/raw/004a9ddb6872b9a2f05506f13f3efdfd6edd6d69/tmp.ts</code>).</p>
<h2 dir="auto">Expected behavior</h2>
<ol dir="auto">
<li>All local import URLs in output JS files should have <code class="notranslate">.js</code> extension.</li>
</ol>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// foo.js should look like this
export * from &quot;./bar.js&quot;;"><pre class="notranslate"><span class="pl-c">// foo.js should look like this</span>
<span class="pl-k">export</span> <span class="pl-c1">*</span> <span class="pl-k">from</span> <span class="pl-s">"./bar.js"</span><span class="pl-kos">;</span></pre></div>
<ol start="2" dir="auto">
<li>All local import URLs in output TypeScript definition files (<code class="notranslate">.d.ts</code>) should have no extension.</li>
</ol>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// foo.d.ts should look like this
export * from &quot;./bar&quot;;"><pre class="notranslate"><span class="pl-c">// foo.d.ts should look like this</span>
<span class="pl-k">export</span> <span class="pl-c1">*</span> <span class="pl-k">from</span> <span class="pl-s">"./bar"</span><span class="pl-kos">;</span></pre></div>
<h2 dir="auto">Actual behavior</h2>
<p dir="auto">All local import URLs are preserved, which is incorrect.</p>