Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Support functions as modules #517
In our project we stumbled upon a case where the simple string require wasn't enough because npm doing its deduplication work was bringing a different version of the module than we expected.
I don't want to break anyone's code so I kept the old way, which is imho unsafe, we can always remove it later.
I'm not sure the tests are enough but I'll wait for your guidance there.
I'm fine with this change and it used to work like this but I took it out during a major bump... I'm curious what two competing versions of modules you have that this problem even came up? Are you using something that wraps something else?
Can you add additional documentation about this change as well?