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 global namespace collisions #80

Merged
merged 3 commits into from
Jan 11, 2024
Merged

Conversation

rektdeckard
Copy link
Member

This patch changes how we generate and name exports, to avoid the issue of accidentally overwriting or reassigning properties of the global object. This should fix some rare bundler issues pertaining to the following icons, which share names with web globals:

  • Bluetooth
  • Clipboard
  • File
  • Function
  • Image
  • Infinity
  • Keyboard
  • Lock
  • Notification
  • Option
  • Presentation
  • Selection

Fixes #79

@rektdeckard rektdeckard self-assigned this Nov 23, 2023
@rektdeckard rektdeckard added the bug Something isn't working label Nov 23, 2023
@rektdeckard rektdeckard merged commit 4e8985e into master Jan 11, 2024
1 check passed
@rektdeckard rektdeckard deleted the globals-name-collision branch January 11, 2024 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeError: Cannot create property 'displayName' on number 'Infinity'
1 participant