$ gnpm install babel-plugin-transform-function-bind
Compile function bind operator to ES5
$ npm install babel-plugin-transform-function-bind
.babelrc
(Recommended).babelrc
{
"plugins": ["transform-function-bind"]
}
$ babel --plugins transform-function-bind script.js
require("babel-core").transform("code", {
plugins: ["transform-function-bind"]
});
Copyright 2013 - present © cnpmjs.org | Home |