babel-preset-futurify
A simple version of the future.
https://travis-ci.org/sethvincent/babel-preset-futurify
About
This preset is a subset of babel plugins focused on the most essential parts of es2015.
Plugins included
- babel-plugin-check-es2015-constants
- babel-plugin-transform-es2015-arrow-functions
- babel-plugin-transform-es2015-block-scoped-functions
- babel-plugin-transform-es2015-block-scoping
- babel-plugin-transform-es2015-function-name
- babel-plugin-transform-es2015-literals
- babel-plugin-transform-es2015-shorthand-properties
- babel-plugin-transform-es2015-template-literals
The future of the future
This preset will be modified as browser support changes and new versions of ecmascript are released.
Don't depend on this in npm packages
I recommend not using this preset, or using babel at all, for packages that are released on npm. If the only thing keeping your code from running in older browsers or in older versions of node is es2015+ syntax, refactor to remove that syntax. This is easier for everybody.
I've created this specifically for use in applications where the syntax improvements are helpful for browser code.
Install
npm install --save-dev babel-preset-futurify
Usage
Add the following line to your .babelrc file:
Conduct
It is important that this project contributes to a friendly, safe, and welcoming environment for all. Read this project's code of conduct