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

fix: authorize global assignment of window in PostCSS file #150

Merged
merged 1 commit into from
Sep 9, 2020

Conversation

sarahdayan
Copy link
Member

When the configuration file refers to window, we need to shim it so it doesn't break when processed with Node during the build step. This is a violation of ESLint rules because we shall not assign to native objects or read-only global variables, but it's okay in our case.

What's next

Depending on what browsers we decide to support in the future, we may want to leverage globalThis instead. We currently cannot since we support IE11, but since Microsoft has decided to drop support, and depending on InstantSearch decisions regarding browser support, we may want to follow that as well.

@sarahdayan sarahdayan merged commit 1a69fa1 into next Sep 9, 2020
@sarahdayan sarahdayan deleted the fix/window-assign branch September 9, 2020 13:11
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