<p dir="auto">Hi, I am observing that <code class="notranslate">deno bundle</code> does not bundle imports that have the <code class="notranslate">@deno-types</code> annotation. This may be related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="621722537" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/5665" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/5665/hovercard" href="https://github.com/denoland/deno/issues/5665">#5665</a>.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="// @deno-types=&quot;https://unpkg.com/rollup@2.16.0/dist/rollup.d.ts&quot;
import { rollup } from 'https://unpkg.com/rollup@2.16.0/dist/es/rollup.browser.js'
console.log(rollup)"><pre class="notranslate"><code class="notranslate">// @deno-types="https://unpkg.com/rollup@2.16.0/dist/rollup.d.ts"
import { rollup } from 'https://unpkg.com/rollup@2.16.0/dist/es/rollup.browser.js'
console.log(rollup)
</code></pre></div>
<p dir="auto"><code class="notranslate">deno bundle test.js &gt; out.js &amp;&amp; deno run out.js</code></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: Uncaught TypeError: Cannot read property 'rollup' of undefined
            console.log(rollup_browser_js_1.rollup);"><pre class="notranslate"><code class="notranslate">error: Uncaught TypeError: Cannot read property 'rollup' of undefined
            console.log(rollup_browser_js_1.rollup);
</code></pre></div>
<p dir="auto">If I omit the <code class="notranslate">@deno-types</code> annotation, the <code class="notranslate">out.js</code> file is significantly larger and it works fine.</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>