babel-preset-urban
v1.0.1
Published
Babel preset for es2015, react, class props and async
Downloads
8
Maintainers
Readme
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'