unjs / unenv

🕊️ Convert javaScript code to be runtime agnostic
MIT License
340 stars 18 forks source link

refactor(node): move internals to `internal/` namespace #242

Closed pi0 closed 1 month ago

pi0 commented 1 month ago

This refactor moves all internals of node polyfills (partially prefixed with _ before) to internal/* dirs inspired by node lib structure)

This PR also fixes several small issues and coverage by making sure there is 1-1 map from node:{module} to unenv/runtime/node/{module}

(browse)