Skip to content

Commit

Permalink
adding _this3 to handle babel edge cases. fixes #928
Browse files Browse the repository at this point in the history
  • Loading branch information
theKashey committed Apr 18, 2018
1 parent 948138a commit 8a6f69d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/proxy/inject.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,9 @@ function inject(target, currentGeneration, injectedMembers) {
target[REGENERATE_METHOD](
key,
`(function REACT_HOT_LOADER_SANDBOX () {
var _this = this; // common babel transpile
var _this = this; // common babel transpile
var _this2 = this; // common babel transpile
var _this3 = this; // common babel transpile
return ${injectedMembers[key]};
}).call(this)`,
)
Expand Down

0 comments on commit 8a6f69d

Please sign in to comment.