mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Ignore non-top-level identifiers early in Resolver#_resolveNodeModule.
This commit is contained in:
@@ -204,7 +204,9 @@ export default class Resolver {
|
||||
}
|
||||
|
||||
_resolveNodeModule(id, absParentPath) {
|
||||
let resolved = null;
|
||||
if (! Resolver.isTopLevel(id)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (Resolver.isNative(id) &&
|
||||
archMatches(this.targetArch, "os")) {
|
||||
@@ -234,6 +236,8 @@ export default class Resolver {
|
||||
}
|
||||
});
|
||||
|
||||
let resolved = null;
|
||||
|
||||
if (sourceRoot) {
|
||||
let dir = absParentPath; // It's ok for absParentPath to be a directory!
|
||||
let info = this._joinAndStat(dir);
|
||||
|
||||
Reference in New Issue
Block a user