A simple version of the future.
This browserify transform compiles a subset of es2015 to es5.
This preset will be modified as browser support changes and new versions of ecmascript are released.
I recommend not using this transform, 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.
npm install --save-dev futurify
{
"browserify": {
"transform": [
"futurify"
]
}
}
$ browserify client.js -t futurify -o bundle.js
const browserify = require('browserify')
browserify('./client.js')
.transform('futurify')
.bundle()
.pipe(process.stdout)
It is important that this project contributes to a friendly, safe, and welcoming environment for all. Read this project's code of conduct
- issues – Please open issues in the issues queue
Big thanks to @zertosh for letting me use the futurify package name on npm! Looking for the previous futurify package?