@bilue/babel-preset
This package provides a shared base configuration for our various Babel presets.
Installation
# Yarn
yarn add --dev @bilue/babel-preset
# npm
npm save --dev @bilue/babel-preset
Usage
In your Babel configuration, usually a .babelrc
file at the root of your project, add the following:
{
"presets": ["@bilue/babel-preset"]
}
Features
- Support for the proposed object rest spread and class fields syntax in Vanilla JavaScript
- All TypesScript features supported by the Babel TypeScript preset, which at this point includes everything except
namespace
s andconst enum
s.