mirror of https://github.com/webpack/webpack.git
fix: make lstatReadlinkAbsolute work when readlink fails
This commit is contained in:
parent
af8e8a8aba
commit
83c205745c
|
@ -625,7 +625,7 @@ const lstatReadlinkAbsolute = (fs, p, callback) => {
|
|||
// we retry 2 times to catch this case before throwing the error
|
||||
return doStat();
|
||||
}
|
||||
if (err || !target) return doStat();
|
||||
if (err || !target) return callback(err || new Error("not found"));
|
||||
const value = target.toString();
|
||||
callback(null, join(fs, dirname(fs, p), value));
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue