babel-preset-pundits
v2.0.3
Published
Babel preset to make node5 utilize es7 with additional enhancements
Downloads
43
Maintainers
Readme
Babel Preset Pundits
A simple babel preset that eases setup and configuration of projects. This module will be maintained to keep up with the new plugins, presets, and other babel utilities.
Install
$ npm install --save-dev babel-preset-pundits
Usage
.babelrc
(Preferred)
{
"presets": "pundits"
}
CLI
$ babel script.js --presets pundits
Node Module (API)
require('babel-core').transform('code', {
presets: ['pundits']
});
Presets and Plugin
Presets
- babel-preset-es2016-node6 - Sets up node5 to be compatible with ES2016 and async
- babel-preset-async-to-bluebird -Converts async functions to bluebird coroutines
Plugins
- babel-plugin-add-module-exports - Ensures the module.exports = module.default
- babel-plugin-transform-class-properties - Gives classes the ability to have more sensible properties
- babel-plugin-transform-decorators - Class annotations
- babel-plugin-transform-export-extensions - Additional Import/Export functionality
- babel-plugin-transform-object-rest-spread - Rest spread
Node Modules
- Bluebird