Skip to content

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.

@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

3 participants