babel-plugin-syntax-function-bind
Installation
npm install --save-dev babel-plugin-syntax-function-bind
Usage
.babelrc
(Recommended)
Via .babelrc
{
"plugins": ["syntax-function-bind"]
}
Via CLI
babel --plugins syntax-function-bind script.js
Via Node API
require("babel-core").transform("code", {
plugins: ["syntax-function-bind"]
});