how to use .ts files (or their compiled .js equivalents) in the browser?

Does Deno have a builtin way to compile ts into js for such purposes, or is there a design pattern that is recommended to make this possible, or am I stuck using webpack? I am playing with the Node crypto lib and I want to use the functions I've written in the browser's socket.io client-side code to encrypt the data that gets sent to the socket.io/deno server-side code.
2 Replies
marvinh.
marvinh.3w ago
no built in patter. Most folks use vite or esbuild + their respective deno plugin
Jasmine Boba'tea
Jasmine Boba'teaOP3w ago
thanks. I'll look more into the tutorials around vite and deno.

Did you find this page helpful?