Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklx authored Sep 5, 2024
1 parent e32a6bf commit 9a2e855
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vite/src/esbuild-resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ export function esBuildResolver(extensions: string[]): EsBuildPlugin {
// we only need to do this for addons in node modules, not in-repo addons
let pkgCache = resolverLoader.resolver.packageCache;
let fromPkg = pkgCache.ownerOfFile(request.fromFile);
let toPkg = pkgCache.ownerOfFile(resolution.filename);
let toPkg = pkgCache.ownerOfFile(resolution.result.path!);
let fromAppFile = fromPkg && resolverLoader.resolver.reverseSearchAppTree(fromPkg, request.fromFile);
let toAppFile = toPkg && resolverLoader.resolver.reverseSearchAppTree(toPkg, resolution.filename);
let toAppFile = toPkg && resolverLoader.resolver.reverseSearchAppTree(toPkg, resolution.resolution.path);
if (toAppFile) {
if (!fromAppFile) {
let encoded = resolverLoader.resolver.generateEncodedRequest(request);
Expand Down

0 comments on commit 9a2e855

Please sign in to comment.