Skip to content

fix: avoid circular dependency between process and node:events#489

Merged
pi0 merged 1 commit intomainfrom
fix/procc-circular
Mar 17, 2025
Merged

fix: avoid circular dependency between process and node:events#489
pi0 merged 1 commit intomainfrom
fix/procc-circular

Conversation

@pi0
Copy link
Member

@pi0 pi0 commented Mar 17, 2025

(context: found while investigating nuxt-hub/core#499 / followup of #488)

Currently Process polyfill extends EventEmitter but internal implementation of EventEmitter also uses process methods which makes a circular dependency.

This PR fixes issue by replacing simple usages in EventEmitter

@pi0 pi0 merged commit b225ab2 into main Mar 17, 2025
@pi0 pi0 deleted the fix/procc-circular branch March 17, 2025 13:38
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.

1 participant