Skip to content

refactor(export): remove manual window export - #835

Open
hughrawlinson wants to merge 1 commit into
mainfrom
remove-manual-window-export
Open

refactor(export): remove manual window export#835
hughrawlinson wants to merge 1 commit into
mainfrom
remove-manual-window-export

Conversation

@hughrawlinson

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member Author

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

@hughrawlinson

Copy link
Copy Markdown
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 force-pushed the remove-manual-window-export branch from 78cb9f5 to a254669 Compare July 17, 2021 19:46
@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