Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Latest commit

 

History

History
17 lines (11 loc) · 841 Bytes

README.md

File metadata and controls

17 lines (11 loc) · 841 Bytes

About

Zero-config TypeScript compilation for web browsers. Sped substantially thanks to web workers and service workers, ts-browser is equipped for production use in small projects. Beyond its speed, the minified build is ~4kb gzipped!

Usage

<!-- include ts-browser -->
<script type="text/javascript" src="https://unpkg.com/ts-browser"></script>

<!-- include your TypeScript file -->
<script type="text/typescript" src="your/typescript/file.ts"></script>

Can I use?

Web Workers are––at the time of writing this README––supported by 92.74% of web browsers. Blobs (another API used by ts-browser) are supported by 93.02% of browsers. Here's a common opinion on this debate, in case you're undecided.