Firebase Cloud Functions with Typescript and Webpack

Recently Firebase launched Cloud Functions–a way to run your code on their servers. It’s a game changer! Now you can run code that you trust to manage many parts of your Firebase Project.

The downside of Cloud Functions is that it only supports NodeJs, forcing you to use Javascript. Fortunately, we can mitigate some of the issues that Javascript brings with Typescript.

In this post we’ll build Firebase Cloud Functions using Typescript and Webpack.