Closed kamilogorek closed 2 years ago
This PR changes the usage of const to var to preserve pre-ES6 compatibility. If we use ES6 syntax, it requires end-user to always transpile it, as we inject directly into the bundle.
const
var
Ref: https://github.com/getsentry/sentry-webpack-plugin/pull/307#issuecomment-1002985337
NOTE: Integration tests worked, because we ourselves, use babel-loader in example webpack config ðŸ¤
babel-loader
This PR changes the usage of
const
tovar
to preserve pre-ES6 compatibility. If we use ES6 syntax, it requires end-user to always transpile it, as we inject directly into the bundle.Ref: https://github.com/getsentry/sentry-webpack-plugin/pull/307#issuecomment-1002985337