refactor: no modules for linked
This commit is contained in:
parent
df40891a0b
commit
47ba15834a
|
@ -45,8 +45,8 @@ module.exports = async function explicate(
|
|||
realResolvedCandidate = realResolvedCandidate.slice(0, -5);
|
||||
}
|
||||
}
|
||||
// Aliased or symlinked? Include submodules.
|
||||
if (path !== request || isSymlink) {
|
||||
// Aliased? Include submodules.
|
||||
if (path !== request) {
|
||||
const submodules = join(realResolvedCandidate, 'node_modules');
|
||||
resolver.addModules(submodules);
|
||||
// Runtime NODE_PATH hacking.
|
||||
|
|
Loading…
Reference in New Issue
Block a user