I would really love to have support for require.main === module that works on node.
require.main === module
@substack Would you accept a patch that adds that ?
I haven't seen this come up much in modules I load from npm. Is this a big issue? require.main doesn't work as well with v2 since there might be multiple bundles.
would like to see this too.
I figured out a hack for this: