This repository has been archived by the owner on Feb 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 310
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug: Fix issues with react-hot-loader (#50)
There are a couple of things going on with #48 -- - We have all this weird `_REACT_HOT_LOADER__` in our `umd` and `lib` builds. I'm guessing that _shouldn't_ be there as we only would want that in `demo` land. - We get some infinite recursion error with `Uncaught RangeError: Maximum call stack size exceeded at Stage.__setDimensions__REACT_HOT_LOADER__` in the actual demo as reported in #48 This looks like an upstream issue with arrow member functions in gaearon/react-hot-loader#698 This PR fixes this and does a little bit of infrastructure housecleaning. - Fixes #48 - Updates the webpack configs to be a little more modern. - Lints root JS files in the repository. - Only babel builds `react-hot-loader` in the _demo_ and not for our produced `lib` or `umd` files. - Converts all arrow member functions to real member functions to get around the hot loading issues. - _Note_: I didn't change the arrow member functions in the `*.example` files. - Harmonizes `umd` and `build` tasks in `package.json:scripts` to be symmetrical. - Updates `react-hot-loader` dep and drops `node@4` in Travis due to engines restriction on new RHL.
- Loading branch information
1 parent
f1e176f
commit 50bc485
Showing
20 changed files
with
7,129 additions
and
266 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,11 @@ | ||
{ | ||
"presets": ["es2015", "react", "stage-0"], | ||
"plugins": ["transform-flow-strip-types", "transform-decorators-legacy", "react-hot-loader/babel"] | ||
"presets": [ | ||
"es2015", | ||
"react", | ||
"stage-0" | ||
], | ||
"plugins": [ | ||
"transform-flow-strip-types", | ||
"transform-decorators-legacy" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.