how to compile typescript to javascript in replit
1.Create a typescript file.
2.Add to your HTML file <script src="yourfile.js"></script>
. See, not .ts, only .js!
3.Add tsconfig.json file and write compiler configurations there.
4.Write your ts code!
1 Like