$ npm 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"]
});
© 2010 - cnpmjs.org x YWFE | Home | YWFE