A highly compatible Babel config for Typescript

Usage no npm install needed!

<script type="module">
  import adhawkBabelPresetCompatibleTypescript from 'https://cdn.skypack.dev/@adhawk/babel-preset-compatible-typescript';



This package contains a Babel preset for Typescript which is optimized for maximum compatibility in US browsers. It should cover 99.5% of all US browsers.


First, run:

yarn add --dev @adhawk/babel-preset-compatible-typescript

Then, add this to your babel config.

  "presets": ["@adhawk/babel-preset-compatible-typescript"]