<p dir="auto">Version:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="deno 0.41.0
v8 8.2.308
typescript 3.8.3"><pre class="notranslate"><code class="notranslate">deno 0.41.0
v8 8.2.308
typescript 3.8.3
</code></pre></div>
<p dir="auto">How to reproduce:<br>
<code class="notranslate">deno bundle https://unpkg.com/@vaadin/router@1.7.1/dist/vaadin-router.js output.js</code><br>
The following error is produced:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: Uncaught URIError: relative import path &quot;my-view.js&quot; not prefixed with / or ./ or ../ Imported from &quot;https://unpkg.com/@vaadin/router@1.7.1/dist/vaadin-router.js&quot;
► $deno$/ops/dispatch_json.ts:43:11
    at unwrapResponse ($deno$/ops/dispatch_json.ts:43:11)
    at Object.sendSync ($deno$/ops/dispatch_json.ts:72:10)
    at Object.resolveModules ($deno$/ops/compiler.ts:11:10)
    at resolveModules ($deno$/compiler/imports.ts:63:22)
    at processImports ($deno$/compiler/imports.ts:147:27)
    at Object.processImports ($deno$/compiler/imports.ts:156:13)
    at async compile (file:///Users/runner/runners/2.169.0/work/deno/deno/cli/js/compiler.ts:131:31)
    at async tsCompilerOnMessage (file:///Users/runner/runners/2.169.0/work/deno/deno/cli/js/compiler.ts:338:22)
    at async workerMessageRecvCallback ($deno$/runtime_worker.ts:62:9)"><pre class="notranslate"><code class="notranslate">error: Uncaught URIError: relative import path "my-view.js" not prefixed with / or ./ or ../ Imported from "https://unpkg.com/@vaadin/router@1.7.1/dist/vaadin-router.js"
► $deno$/ops/dispatch_json.ts:43:11
    at unwrapResponse ($deno$/ops/dispatch_json.ts:43:11)
    at Object.sendSync ($deno$/ops/dispatch_json.ts:72:10)
    at Object.resolveModules ($deno$/ops/compiler.ts:11:10)
    at resolveModules ($deno$/compiler/imports.ts:63:22)
    at processImports ($deno$/compiler/imports.ts:147:27)
    at Object.processImports ($deno$/compiler/imports.ts:156:13)
    at async compile (file:///Users/runner/runners/2.169.0/work/deno/deno/cli/js/compiler.ts:131:31)
    at async tsCompilerOnMessage (file:///Users/runner/runners/2.169.0/work/deno/deno/cli/js/compiler.ts:338:22)
    at async workerMessageRecvCallback ($deno$/runtime_worker.ts:62:9)
</code></pre></div>
<p dir="auto">deno bundle appears to get caught up on this part of <a href="https://unpkg.com/@vaadin/router@1.7.1/dist/vaadin-router.js" rel="nofollow">https://unpkg.com/@vaadin/router@1.7.1/dist/vaadin-router.js</a>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="// Actions like `() =&gt; import('my-view.js')` are not expected to
// end the resolution, despite the result is not empty. Checking
// the result with a whitelist of values that end the resolution."><pre class="notranslate"><code class="notranslate">// Actions like `() =&gt; import('my-view.js')` are not expected to
// end the resolution, despite the result is not empty. Checking
// the result with a whitelist of values that end the resolution.
</code></pre></div>
<p dir="auto">When this chunk of comments is removed from a local version of the file and <code class="notranslate">deno bundle</code> is attempted again it works without issue.</p>
<p dir="auto">Desired behavior:<br>
Deno bundle should ignore comments while looking for imports.</p>
<p dir="auto">Also, thank you for creating such an incredible tool!</p>
<ul dir="auto">
<li>v0.20.0</li>
<li>Parser doesn't find declarations correctly?</li>
</ul>
<p dir="auto"><strong>[EDITED]</strong></p>
<p dir="auto">Previous example has unrelated mistake but I don' know which code can reproduce error I met.</p>
<p dir="auto">I met this error when I ran  -&gt;  <a href="https://raw.githubusercontent.com/keroxp/dink/v0.5.1/main.ts" rel="nofollow">https://raw.githubusercontent.com/keroxp/dink/v0.5.1/main.ts</a><br>
That can be compiled with deno@v0.19.0. But got error below with v0.20.0:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: Uncaught ImportPrefixMissing: relative import path &quot;${resp.url}&quot; not prefixed with / or ./ or ../
► $deno$/dispatch_json.ts:40:11
    at DenoError ($deno$/errors.ts:20:5)
    at unwrapResponse ($deno$/dispatch_json.ts:40:11)
    at sendAsync ($deno$/dispatch_json.ts:85:10)"><pre class="notranslate"><code class="notranslate">error: Uncaught ImportPrefixMissing: relative import path "${resp.url}" not prefixed with / or ./ or ../
► $deno$/dispatch_json.ts:40:11
    at DenoError ($deno$/errors.ts:20:5)
    at unwrapResponse ($deno$/dispatch_json.ts:40:11)
    at sendAsync ($deno$/dispatch_json.ts:85:10)
</code></pre></div>