@vanilla/babel-preset
v3.0.1
Published
The Vanilla babel preset. Supports Typescript, React, & Polyfills.
Downloads
8
Keywords
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:
- Rest/Spread Properties
- React JSX support
- Babel Typescript
- ES Dynamic Import Syntax (actual import is provided by webpack)
- Class Properties
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"];