Closed vseventer closed 4 years ago
@jhnns Any chance of getting this merged?
Sorry for the late response. I'm going to go ahead an merge this as I didn't see any issues and it seems to be a requested thing.
Thank you for the contribution :)
Released in 3.2.0
Fixes #54 #57 #80 by generating a new placeholder for each dependency, rather than using a single one for the entire module.
The
undefined
issue was caused by the module cache returning the previously generated placeholder, but not adding tonewDependencies
. Hence a mismatch between number ofnewDependencies
andextractedDependencyContent
appeared, causingundefined
to be returned once we ran out ofnewDependencies
. By using unique placeholders, this is no longer an issue.