The Vanilla babel preset. Supports Typescript, React, & Polyfills.

Usage no npm install needed!

<script type="module">
  import vanillaBabelPreset from 'https://cdn.skypack.dev/@vanilla/babel-preset';



A babel preset for transforming your JavaScript for Vanilla Forums.

Currently contains transforms for all standard syntax that is stage 4 (ES2017).

We have also enabled the following additional plugins:


$ yarn add --dev @vanilla/babel-preset


Via .babelrc (Recommended)


    "presets": ["@vanilla/babel-preset"]

Targeting Environments

This module uses @babel/preset-env to target specific environments.

For a list of browsers please see browserlist.

Currently targetted environments are:

["ie > 10", "last 4 versions"];