unjs / unenv

🕊️ Convert javaScript code to be runtime agnostic
MIT License
417 stars 21 forks source link

feat: basic web performances api implementation #213

Closed pi0 closed 4 months ago

pi0 commented 4 months ago

This PR adds a partial (node subset) implementation of web performances API mainly useful for https://github.com/unjs/unenv/pull/209

All expoirts will first try to use globalThis.* native version before falling back to polyfills.