Configure Build Tools to Work with TypeScript

Share this video with your friends

Send Tweet

There are a bunch of different ways that you can compile TypeScript and how you go about doing it will depend largely on what build tooling that you use. Since I'm using rollup and babel already to transpile my TypeScript code, I think it makes sense to utilize babel's typescript preset to handle all of our TypeScript compilation as well. So we will install it with npm i -D @babel/preset-typescript and configure it in our rollup.config.js.