Skip to content
This repository has been archived by the owner on Nov 20, 2023. It is now read-only.

ref: Use var instead of const for module loader for ES5-compat #338

Merged
merged 1 commit into from
Jan 11, 2022

Conversation

kamilogorek
Copy link
Contributor

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.

Ref: #307 (comment)

@kamilogorek kamilogorek requested review from a team, rhcarvalho and AbhiPrasad and removed request for a team January 11, 2022 11:43
@kamilogorek
Copy link
Contributor Author

NOTE: Integration tests worked, because we ourselves, use babel-loader in example webpack config 🤭

@kamilogorek kamilogorek merged commit c688a7f into master Jan 11, 2022
@kamilogorek kamilogorek deleted the remove-es6-syntax branch January 11, 2022 12:20
lobsterkatie pushed a commit to getsentry/sentry-javascript that referenced this pull request Jan 28, 2022
This will pull in getsentry/sentry-webpack-plugin#338, which improved compatibility with ES5 environments.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants