expose module.parent as in node
This pr resolves https://github.com/substack/node-browserify/issues/976 It only makes the prelude 23 bytes longer, this will help more node modules work in the browser by default.
bump
really this should be merged because it makes browserify more consistent with node.
@dominictarr can you update this PR to point at another branch?
@terinjokes not sure I follow, do you want me to update this merge cleanly with current master? which branch?
@dominictarr I'm sorry, I was unclear. This PR points at your fork's master branch, which you've since pushed changes to rename it to nodepack.
Without those changes, this looks to apply cleanly. I don't mind cherrypicking, so not too much of a problem.
oh, I see, sorry about that. I'll fix this.
okay I refactored to this branch https://github.com/dominictarr/nodepack/tree/parent but turns out browser-pack has changed a lot since I did this so it' doesn't merge anymore (i tried but tests break)