Skip to content

Instantly share code, notes, and snippets.

@nfcampos
Created September 4, 2016 10:30
Show Gist options
  • Save nfcampos/275ada99b630ee9524b374b0588b36c3 to your computer and use it in GitHub Desktop.
Save nfcampos/275ada99b630ee9524b374b0588b36c3 to your computer and use it in GitHub Desktop.
more isolated test
{
"plugins": ["syntax-class-properties", "../../../../../src/babel"]
}
class Foo {
bar = (a, b) => {
return a(b);
};
}
var _this = this;
class Foo {
bar = (...params) => _this.__bar__REACT_HOT_LOADER__(...params);
__bar__REACT_HOT_LOADER__(a, b) {
return a(b);
}
}
;
(function () {
if (typeof __REACT_HOT_LOADER__ === 'undefined') {
return;
}
__REACT_HOT_LOADER__.register(Foo, "Foo", __FILENAME__);
})();
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment