Created
January 22, 2018 03:05
-
-
Save seanf/1f62beb8c9fb5a6ddec2b6260dfc2a11 to your computer and use it in GitHub Desktop.
Enables stack traces for React warnings
This file contains hidden or 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
| #!/bin/sh -e | |
| sed -i 's/console.warn(/console.trace(/g' node_modules/react/lib/lowPriorityWarning.js | |
| sed -i 's/console.error(/console.trace(/g' node_modules/fbjs/lib/warning.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment