GitHub · npm · Edit this page
Syntax only
This plugin only allows Babel to parse this syntax. If you want to transform it then see transform-function-bind.
This plugin allows Babel to parse function bind syntax.
npm install --save-dev babel-plugin-syntax-function-bind
.babelrc
(Recommended).babelrc
{
"plugins": ["syntax-function-bind"]
}
babel --plugins syntax-function-bind script.js
require("babel-core").transform("code", {
plugins: ["syntax-function-bind"]
});