Closed gautier-lefebvre closed 7 years ago
I believe babel 6 (maybe 7) no longer retrofits module.exports
, so if ur using autobind via require
u'd have to do require('autobind-decorator').default
Yeah you're probably right, but that's a breaking change, since previous versions were working fine with babel 6. That would be great if you released these changes as a new major version.
@stevemao ^^
unpublished 1.4.4
and published 2.0.0
.
With the latest release 1.4.4, we get an error when using the autobind on a method, and building with webpack and
babel-plugin-transform-decorators-legacy
:inside _applyDecoratedDescriptor (from webpack plugin) ->