Closed demurgos closed 9 years ago
Charles (@Demurgos) thank you so much for your detailed issue description - I am sorry for the late response but I have been very busy lately. I will check it and get back to you soon!
PS: Coffeescript is just javascript, trust me it only takes a few hours to get used to the sugar syntax and then you're free :-)
@Demurgos the issue you reported was spot on, and I incorporated the solution on upath.joinSafe
Using beta.21 now builds the https://github.com/Demurgos/urequire-replaceDep properly.
Sorry for taking so long to fix :-/
Thank you, neither am I very quick to respond but the most important is that it works now ;)
:+1:
Hi I discovered recently resource-converters and with them a small issue:
Using m.replaceDep in a resource converter with "newDep" being a bundle dependency returns a local dependency instead if the converted module and its dependency are in the same directory.
Here is an example : https://github.com/Demurgos/urequire-replaceDep (it happens when compiling
target2
, it's explained in the readme)The issue boils down to the use of
path.join
dropping the leading./
of paths in Dependency.protototype.update. I'm not so familiar with .coffee syntax, but I could fix it in my case with the following JS code afternewDepString = upath.join.apply null, newDepPaths
:The test would be better with
&& !upath.isAbsolute(newDepString)
butisAbsolute
lands in thepath
module only inNode 0.12.x
.