unjs / unenv

๐Ÿ•Š๏ธ Convert javaScript code to be runtime agnostic
MIT License
342 stars 18 forks source link

feat: polyfill `node:punycode` module #210

Closed jculvey closed 1 month ago

jculvey commented 1 month ago

Replaces the current auto-mocking of 'punycode' to support destructured ESM imports and allow for functional polyfill coverage in the future.

๐Ÿ”— Linked issue

โ“ Type of change

๐Ÿ“š Description

Note that the node punycode module is deprecated. This change introduces the suggested punycode.js library as a drop-in replacement similar to how we use pathe.

๐Ÿ“ Checklist