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

refactor(export): remove manual window export #835

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hughrawlinson
Copy link
Member

We were manually putting the Meyda object on the window, if it existed. Our bundler does this for
us, so we don't need to do it. This commit removes that line.

fix #831

@hughrawlinson
Copy link
Member Author

Ooh the plot thickens - our bundler doesn't do window exports by default! I'll investigate and learn something new about bundling. No rush though.

@hughrawlinson
Copy link
Member Author

Glad we have the tests now! They'll be useful for #824 too.

@hughrawlinson
Copy link
Member Author

I've been trying this out in the Rollup branch and it looks like this is an issue in jsdom but not necessarily in browsers (it works fine in Firefox). I'll do some Googling and see if there's something about jsdom globalThis assignments that I don't understand.

We were manually putting the Meyda object on the window, if it existed. Our bundler does this for
us, so we don't need to do it. This commit removes that line.

fix #831
@hughrawlinson hughrawlinson changed the base branch from master to main October 31, 2021 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Remove manual window export
1 participant