Skip to content

Commit

Permalink
Merge pull request #937 from gaearon/this3
Browse files Browse the repository at this point in the history
adding _this3 to handle babel edge cases. fixes #928
  • Loading branch information
theKashey authored Apr 18, 2018
2 parents 948138a + 8a6f69d commit 86f785f
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 86f785f

Please sign in to comment.