Closed tran2 closed 9 years ago
I've also encountered this issue. This changes breaks rewireify
for anyone exporting a React component in a module, since React.createClass
returns a function.
My team has reverted to 0.2.2 for now until this issue is resolved.
Thanks for reporting this, a fix is imminent
Fixed in 059be2bc4ddcac4f69394ccca3b2c4985966c37d
In 0.2.3, there's a check
if typeof module.exports === 'object'
before injecting. In some of my codes,typeof module === 'object'
buttypeof module.exports === 'function'
so__get__
and__set__
never gets injected