babel-plugin-autobind-class-methods

v5.0.1
Babel plugin that binds every class method to "this" with hot reload support
Babel class autobind this bind arrow react method property and 1 more...

clean

rm -rf lib

build

babel src -d lib

example

npm run build && babel example/input.js -o example/output.js

test

mocha --compilers js:babel-register

test:watch

npm run test -- --watch

prepublish

npm run clean && npm run build
npm i babel-plugin-autobind-class-methods

Metadata

  • MIT
  • Whatever
  • Karolis Masiulis & Chris Lock
  • released 2/2/2017

Downloads

Maintainers