<p dir="auto">IS:<br>
As the title says the output of deno bundle when including something from pika.dev seems to ignore pika atleast partially.</p>
<p dir="auto">I created a little test repo with a "bundle.sh" script: <a href="https://github.com/katywings/deno-pika-bundle-test">https://github.com/katywings/deno-pika-bundle-test</a></p>
<p dir="auto">What I try to bundle looks something like this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import { css } from 'https://cdn.pika.dev/otion@^0.3.1/runtime-deno'

css({ backgroundColor: 'black' })"><pre class="notranslate"><code class="notranslate">import { css } from 'https://cdn.pika.dev/otion@^0.3.1/runtime-deno'

css({ backgroundColor: 'black' })
</code></pre></div>
<p dir="auto">The result bundle actually includes the code from "<a href="https://cdn.pika.dev/otion@%5E0.3.1/runtime-deno" rel="nofollow">https://cdn.pika.dev/otion@^0.3.1/runtime-deno</a>", but then the nested exports from the lines of runtime-deno are missing. So it looks like deno bundle is ignoring stuff like this:<br>
<code class="notranslate">export * from '/-/otion@v0.3.1-5j8xeqtzaBPg93oc5Bwe/dist=es2017,mode=exports/server-deno';</code></p>
<p dir="auto">SHOULD:<br>
deno bundle should include all imported dependencies from pika.</p>
<p dir="auto">DETAILS:</p>
<ul dir="auto">
<li>Execution of deno bundle does not give any errors</li>
<li>My random guess would be that this could be related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="591088352" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/4542" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/4542/hovercard" href="https://github.com/denoland/deno/issues/4542">#4542</a> because <code class="notranslate">/-/otion@v0.3.1-5j8xeqtzaBPg93oc5Bwe/dist=es2017,mode=exports/server-deno</code> also seems to be using the <code class="notranslate">export X as Y</code> syntax, but I am not sure</li>
</ul>
<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>