question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Deno uses swc transpiler. Replace ts transpiler with rust swc deno plugin.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
timreichencommented, Feb 17, 2021

No that was a good question. I asked on deno discord about a transfomer option for Deno.emit, seems to have gone lost. I would like to use either Deno.emit rather than the ts module, so if that became a thing I’d gladly switch.

1reaction
timreichencommented, Feb 17, 2021

@shadowtime2000 A few reasons:

  1. Deno.emit will bundle all resources together into one file. If there are multiple entry files that share dependencies, there will be duplicate code. I think a better way in browsers is to allow for code splitting explained here, which is not currently possible with Deno.emit.
  2. Since this bundler supports different file types such as images, css and html etc., the correct output paths need to be injected, which is done by a typescript transformer. Deno.emit does not allow transformer hooks as of now.
  3. Deno.emit does not use system modules anymore, though browsers do not yet support top level await.

But I am playing with the idea of using Deno.bundle if none of the upper arguments apply.

Read more comments on GitHub >

github_iconTop Results From Across the Web

SWC Suggestions and Feedback - Discuss Scratch
No points, but I hope you have fun! Describe your favorite food. Try to show what you love about it! Post at least...
Read more >
Academic Tutoring - Southwestern College
Online tutoring available. Online Writing Lab. Email tutoring service that offers constructive feedback and suggestions to improve your papers. Writing Center.
Read more >
3+ minute wait in SWC suggestion : r/Smite - Reddit
Pretty decent suggestion. I usually step away for those 3 minutes, which is long enough for me to forget and not come back...
Read more >
Suggestion Box - SayWhatClub
Donations to SWC are tax deductible. Donors should consult their tax advisor for questions regarding tax deductibility. A copy of the SWC determination...
Read more >
Suggestion: Don't rewrite unicode escape sequences to ...
Describe the feature Over at esbuild (which is often used in conjunction with swc to target ES5), the decision was recently made to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found