From 8a6f69d8c32ce588bf0f84d676134800540f5c5e Mon Sep 17 00:00:00 2001 From: Anton Korzunov Date: Wed, 18 Apr 2018 20:11:15 +1000 Subject: [PATCH] adding _this3 to handle babel edge cases. fixes #928 --- src/proxy/inject.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/proxy/inject.js b/src/proxy/inject.js index e5dbbfe11..8d5d316da 100644 --- a/src/proxy/inject.js +++ b/src/proxy/inject.js @@ -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)`, )