1.0.1 • Published 7 years ago

babel-preset-urban v1.0.1

Weekly downloads
3
License
ISC
Repository
github
Last release
7 years ago

npm License Dependency
Status js-standard-style

babel-preset-urban

Babel preset for es2015 transforms, with a bit of react, class props and async shizzle thrown in

Install

npm i -D babel-preset-urban

Usage

Add the following preset to your babel config

"babel": {
  "presets": [ "urban" ]
}

Polyfill

The async transformation uses regenerator so any code transformed using this preset requires the runtime. The easiest way to include this is to use the babel-polyfill.

The polyfill is only required if you actually write any async code.

npm i babel-polyfill
import 'babel-polyfill'