You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to be able to emit 1:1 ES module library. If you are making a library, it is not a good thing that Deno gives you only ability to bundle to a single file. The Deno.emit is not working for this purpose as of yet at least.
In general it would be cool if deno could provide a way to emit straightforward ES module library:
matrix.ts -> matrix.js vector.ts -> vector.js
...
This way the browser usage would be similar as with .ts files. You just import from .js files in your <script type="module"> tags. As an ES module library creator I can't assume everybody uses deno, and I want the ES library imports to be from individual files instead of a bundle for efficiency.
Things that need to change from Deno.emit for it to work:
The command line option is and will always be intended for reconsumption by Deno. Deno.emit() would be the way to do this and as mentioned denoland/deno_emit#41 would need to be addressed to avoid further post processing.
I'd like to be able to emit 1:1 ES module library. If you are making a library, it is not a good thing that Deno gives you only ability to bundle to a single file. The
Deno.emit
is not working for this purpose as of yet at least.In general it would be cool if deno could provide a way to emit straightforward ES module library:
matrix.ts
->matrix.js
vector.ts
->vector.js
...
This way the browser usage would be similar as with
.ts
files. You just import from .js files in your<script type="module">
tags. As an ES module library creator I can't assume everybody uses deno, and I want the ES library imports to be from individual files instead of a bundle for efficiency.Things that need to change from
Deno.emit
for it to work:.ts
statements behind, see Deno.emit should correct local import URLs deno_emit#41file.ts.js
extension, it should be just.js
The text was updated successfully, but these errors were encountered: