DenoDDeno
Powered by
jsoldiJ
Denoβ€’17mo agoβ€’
3 replies
jsoldi

How to transpile typescript to javascript?

I just read the Deno 2 announcement and would like to get started using it to replace npm+tsc+node. The problem is I usually work on projects that I transpile to javascript so they can run on a browser, and I do this with tsc. But tsc expects my local imports to end with '.js', while Deno expects my local imports to end with '.ts'. Is there a way to transpile a project where local imports ends in '.ts' (so they're compatible with Deno) into javascript. I read that Deno used to include a bundler but not anymore. What's the recommended way to use Deno to generate browser compatible JavaScript? Feel like I must just be missing something obvious here, unless Deno is just meant to be used for backend code.
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,944Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Can I transpile TypeScript Code to JavaScript Code with Deno like Bun
XiΓ  πŸ‡΅πŸ‡ΈXXiΓ  πŸ‡΅πŸ‡Έ / help
2y ago
Can I use deno_ast to transpile arbitrary typescript?
circuitsaculCcircuitsacul / help
3y ago
Transpile TS to JS
HametHHamet / help
17mo ago
How to integrate a legacy JavaScript project with Deno TypeScript.
RobWRRobW / help
6mo ago