Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replaces source map to allow cross-origin handling
The `eval-source-map` loader causes the React development tools to throw a cross-origin error if anything is thrown, even if the error is caug ht and handled (or would have been). The resulting cross-origin error is thrown in place of whatever else was thrown: as a result, the error b eing thrown is opaque because of how the browser handles cross-origin requests, and thus removes any ability to parse or handle differing erro rs or other throwables such as `Promise`s, etc. This is because of the `eval` nature of the loader, and the fix is to use a different loader, such as `cheap-source-map-loader`, as suggested by React [here](https://reactjs.org/docs/cross-origin-errors.html#source-maps) and as referenc ed in this [issue](facebook/react#10441).
- Loading branch information