I'm just going to make a note of this for Future Paul, because I spent way too long trying to get this working. If anyone has a better version of this workflow let me know.
Here's the rough idea:
- Have some TypeScript
- With some RxJS. Only include the bits of RxJS that we actually need because bundle sizes.
- Combine to a bundle using Closure Compiler (because it's super good at crushing down JS).
Because Future Paul will want it, here's the installs needed: