Replace old-style require(console) with a global object (#3623)
Replace old-style require(console) with a global object (#3623)

Co-authored-by: Kamil Ogórek <59300dd2b06c4e7947324b3afad619b61d08b63c@gmail.com>
getsentry/raven-js,getsentry/raven-js,getsentry/raven-js,getsentry/raven-js