react/scripts/babel
Dan Abramov f9358c51c8
Change warning() to automatically inject the stack, and add warningWithoutStack() as opt-out (#13161)
* Use %s in the console calls

* Add shared/warningWithStack

* Convert some warning callsites to warningWithStack

* Use warningInStack in shared utilities and remove unnecessary checks

* Replace more warning() calls with warningWithStack()

* Fixes after rebase + use warningWithStack in react

* Make warning have stack by default; warningWithoutStack opts out

* Forbid builds that may not use internals

* Revert newly added stacks

I changed my mind and want to keep this PR without functional changes. So we won't "fix" any warnings that are already missing stacks. We'll do it in follow-ups instead.

* Fix silly find/replace mistake

* Reorder imports

* Add protection against warning argument count mismatches

* Address review
2018-07-16 22:31:59 +01:00
..
__tests__ Change warning() to automatically inject the stack, and add warningWithoutStack() as opt-out (#13161) 2018-07-16 22:31:59 +01:00
transform-object-assign-require.js use different eslint config for es6 and es5 (#11794) 2017-12-11 15:52:46 +00:00
transform-prevent-infinite-loops.js Minor typos fixed (#12005) 2018-01-11 12:24:49 +00:00
wrap-warning-with-env-check.js Change warning() to automatically inject the stack, and add warningWithoutStack() as opt-out (#13161) 2018-07-16 22:31:59 +01:00