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

Use globalThis instead of global dependency #383

Merged
merged 1 commit into from
May 18, 2022
Merged

Use globalThis instead of global dependency #383

merged 1 commit into from
May 18, 2022

Conversation

IanVS
Copy link
Member

@IanVS IanVS commented May 18, 2022

We were using global because it's installed with storybook, but that might change someday, and it causes problems in yarn pnp and probably pnpm as well, since we don't explicitly depend on it.

Rather than add it to our dependencies, this just swaps it out for globalThis instead, which has good support aside from IE11, which vite doesn't support anyway.

@IanVS IanVS changed the title Use globalThis instead of global project Use globalThis instead of global dependency May 18, 2022
@IanVS IanVS requested a review from joshwooding May 18, 2022 16:52
@joshwooding joshwooding merged commit f3e50ed into main May 18, 2022
@joshwooding joshwooding deleted the globalThis branch May 18, 2022 17:04
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.

2 participants