Skip to content

[1.x] Fix IIFE build #344

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

Merged
merged 2 commits into from
Jun 29, 2022
Merged

[1.x] Fix IIFE build #344

merged 2 commits into from
Jun 29, 2022

Conversation

timacdonald
Copy link
Member

As reported in #343, the IIFE functionality had a breaking change recently that saw the usage of window.Echo break. The manual fix was to start referencing window.Echo.default.

This break was caused by the additional exports from echo to improve the packages usage within Typescript packages, which I believe in theory is a good idea.

This PR introduces an additional build config for the IIFE version which allows us to only export the Echo class, thus returning to the original window.Echo functionality for IIFE usage.

Verified

This commit was signed with the committer’s verified signature.
esbenbjerre Esben Bjerre
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.

None yet

3 participants