babel/packages/babel-plugin-transform-function-bind
Logan Smyth b53864c569 Merge pull request #3334 from loganfsmyth/bind-callee-ref
Check BindExpression callee for reference - fixes T6984
2016-02-10 22:42:50 -07:00
..
2015-10-29 17:51:24 +00:00
2016-02-06 19:06:41 -05:00
2015-09-15 06:12:46 +01:00

babel-plugin-transform-function-bind

Compile function bind operator to ES5

Installation

$ npm install babel-plugin-transform-function-bind

Usage

.babelrc

{
  "plugins": ["transform-function-bind"]
}

Via CLI

$ babel --plugins transform-function-bind script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["transform-function-bind"]
});