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.
4 replies