0.2.0 • Published 6 years ago

@nehrdani/babel-preset-kickstart v0.2.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

babel-preset-kickstart

This package includes the Babel preset used by Kickstart.

Usage in Kickstart Projects

The easiest way to use this configuration is with Kickstart, which includes it by default. You don’t need to install it separately in Kickstart projects.

Usage Outside of Kickstart

If you want to use this Babel preset in a project not built with Kickstart, you can install it with following steps.

First, install Babel.

Then install babel-preset-kickstart.

yarn babel-preset-kickstart -D

Then create a file named .babelrc with following contents in the root folder of your project:

{
  "presets": ["kickstart"]
}

This preset uses the useBuiltIns option with transform-object-rest-spread and transform-react-jsx, which assumes that Object.assign is available or polyfilled.