Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklx authored Sep 29, 2024
1 parent e553360 commit 372de59
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/core/src/module-resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,10 @@ export class Resolver {
fromPkg = this.packageCache.ownerOfFile(this.options.appRoot)!;
}

if (!fromPkg.isV2App()) {
return request;
}

let pkgName = getPackageName(request.specifier);
try {
let pkg = pkgName ? this.packageCache.resolve(pkgName, fromPkg!) : fromPkg;
Expand Down

0 comments on commit 372de59

Please sign in to comment.