☄️

Optimizing a TypeScript compiler for Meteor

Published
June 2, 2014
Tags
web frameworks

I started working on a new Meteor project and wanted to catch more JavaScript errors at compile time, so I switched to TypeScript.

Unfortunately, Meteor recompiles every file whenever you make a change, which slows down dev cycles at scale and defeat the purpose of live reloads in Meteor. So I decided to help Olivier Refalo with the Meteor package for compiling TypeScript files, and the result is an optimized compiler that caches JavaScript and runs much faster, depending on how many files you have. (With around 10 files, after changing 1, you get a little under a 10x speedup.)

The Atmosphere project is at https://atmospherejs.com/meteortypescript/compiler