Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

if module starts child processes & requires stuff it's invisible #11

Open
dominictarr opened this issue May 21, 2011 · 4 comments
Open

Comments

@dominictarr
Copy link

this is just gonna happen more and more in node, and people are gonna figure out really good ways to start child processes.

maybe if there was something simple you could add in a child process to let the parent module see what it is requiring.

@indexzero
Copy link
Member

I don't think there is anyway to solve this w/o a core commit.

@dominictarr
Copy link
Author

yeah,

or you could get lib writers to opt in by loading something like require('require-analyzer/patch') which monkeypatches a fix.

@indexzero
Copy link
Member

A core commit is the way to go.

@dominictarr
Copy link
Author

or provide a way to declare what modules you'll load as child processes.

prehaps the better way to solve this problem is to make your child processes a separate package, and then declare a dependency on that manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants