Skip to content

Commit

Permalink
Merge pull request #1609 from embroider-build/fix-wrapped-cache
Browse files Browse the repository at this point in the history
Fix WrappedPackage caching for app
  • Loading branch information
ef4 authored Sep 26, 2023
2 parents ace1564 + b10b0b3 commit c4f8973
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/shared-internals/src/rewritten-package-cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,10 @@ export class RewrittenPackageCache implements PublicAPI<PackageCache> {
// the plain representation of our moved app doesn't know that it's an
// app, so we instead make a plain Package with isApp set to true
// explicitly.
pkg = new Package(pkg.root, this.plainCache, true);
found = new WrappedPackage(this, new Package(pkg.root, this.plainCache, true));
} else {
found = new WrappedPackage(this, pkg);
}
found = new WrappedPackage(this, pkg);
wrapped.set(pkg, found);
}
return castToPackage(found);
Expand Down

0 comments on commit c4f8973

Please sign in to comment.