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

remove globalthis polyfill #149

Merged
merged 1 commit into from
Feb 5, 2024
Merged

Conversation

legobeat
Copy link
Contributor

@legobeat legobeat commented Feb 3, 2024

This PR removes the globalThis.js polyfill as all build targets of metamask-extension now support globalThis natively. The dependency was originally pinned in #1 to align with extension version.

The .babelrc.json file can likely similarly be revisited and updated to lessen the amount of transpiling further.

Related

@legobeat legobeat requested review from davidmurdoch and a team February 3, 2024 10:20
Copy link

Removed dependencies detected. Learn more about Socket for GitHub ↗︎

🚮 Removed packages: npm/[email protected]

View full report↗︎

Copy link

@davidmurdoch davidmurdoch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

If this package is bundled with @lavamoat/lavapack globalThis is now going to be pollyfilled there anyway. So removal of this package should have no side effects (other than lavapack doesn't pollyfill in a 100% spec-compliant way)

@legobeat legobeat merged commit b1d022f into MetaMask:main Feb 5, 2024
17 checks passed
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.

3 participants