How does module.parent.id work?
Closed this issue · 2 comments
rjmk commented
Apparently "[t]ypically this is the fully resolved filename" of the requiring module. But why would there be a 'node_modules' in that path when we require from a module in our project? How is the id property different from the filename property?