In this chapter, I’ll give a few tips for using TypeScript to write apps.
Even with plain JavaScript, most projects use build tools for frontend web apps, for various reasons. Most of those build tools support TypeScript out of the box.
If you:
Then you can take a look at the “Getting Started” page for Vite, a popular frontend build tool.
But there are many other build tools for JavaScript. These are some of them:
--experimental-transform-types
. Type stripping will remain the default.
Getting started with Node.js:
nodejs-type-stripping
demonstrates how type stripping works in Node.js.