Skip to content

Conversation

pi0
Copy link
Member

@pi0 pi0 commented Mar 7, 2025

This PR reorganizes unenv/web/performance into single polyfills entry with proper ordering (classes depending on other are on top)

the entry then uses polyfills as fallbacks as needed.

implementation is not changed, only difference is as fix that new Performaance() is technically wrong and makes Failed to construct 'Performance': Illegal constructor, we need polyfill in cast there is no globalThis.performance

Another refactor in #478 but this specifically should solve some immediate issues we have with nitro.

@pi0 pi0 requested a review from petebacondarwin March 7, 2025 15:20
@pi0 pi0 requested a review from vicb March 7, 2025 15:36
@pi0 pi0 merged commit d8ba9a6 into main Mar 7, 2025
2 checks passed
@pi0 pi0 deleted the refactor/web-perf branch March 7, 2025 16:33
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