Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(integrations): Emit ES5 code in ES5 bundles #4769

Merged

Conversation

lobsterkatie
Copy link
Member

In #4718, a change was made to use an environment variable to control the version of JS emitted when building integration bundles. Unfortunately, the values then given to that variable were uppercase, whereas our code assumes a lowercase version. Further, the default output is ES6 (in preparation for going ES6-first in v7), so when the version flag ES5 doesn't match the checked-for es5, we emit ES6 in the supposedly-ES5 bundle.

This controls for casing by casting the value to lowercase before comparison.

Fixes #4768.

Verified

This commit was signed with the committer’s verified signature.
AbhiPrasad Abhijeet Prasad
@lobsterkatie lobsterkatie merged commit b56c577 into master Mar 23, 2022
@lobsterkatie lobsterkatie deleted the kmclb-make-integration-es5-bundles-actually-es5 branch March 23, 2022 18:07
@AbhiPrasad AbhiPrasad added this to the Pre 7.0.0 Work milestone Apr 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

capture console not IE11 compatible
2 participants