Browser SDK enforces strict mode

#1

Is there any way to turn this off?

I am updating from the Raven SDK in a legacy app that was not written in some places with ES6/use strict in mind. There are undeclared variables and I am getting an unrelenting chain of referenceErrors.

I have tried removing the use strict in bundle.js to no avail. Any ideas?

#2

Fixed it. Not using ES6 imports is the key.

const Sentry = require('@sentry/browser') rather than import * as Sentry from '@sentry/browser' for anyone that runs into this problem in the future.