unjs / unenv

🕊️ Convert javaScript code to be runtime agnostic
MIT License
383 stars 20 forks source link

add polyfill for `EventEmitter` #61

Closed danielroe closed 1 year ago

danielroe commented 1 year ago

Describe the feature

we still have a hard node dependency for readable/writeable stream via https://github.com/unjs/unenv/blob/main/src/runtime/node/stream/readable.ts, meaning (for example) that createCall and createFetch are only runnable in a node environment at the moment.

Additional information

danielroe commented 1 year ago

Oops, sorry, missed it: https://github.com/unjs/unenv/blob/main/src/runtime/node/events/index.ts#L11-L12