@vanilla/babel-preset

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';
</script>

README

@vanillaforums/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:

Install

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

Usage

Via .babelrc (Recommended)

.babelrc

{
    "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"];