Skip to content

Commit

Permalink
add wasMovedTo meta for app tree moves
Browse files Browse the repository at this point in the history
  • Loading branch information
mansona committed Oct 24, 2023
1 parent 03d3802 commit c08523a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/core/src/module-resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1148,9 +1148,15 @@ export class Resolver {
case undefined:
return undefined;
case 'app-only':
return request.alias(matched.entry['app-js'].specifier).rehome(matched.entry['app-js'].fromFile);
return request
.withMeta({ wasMovedTo: request.fromFile })
.alias(matched.entry['app-js'].specifier)
.rehome(matched.entry['app-js'].fromFile);
case 'fastboot-only':
return request.alias(matched.entry['fastboot-js'].specifier).rehome(matched.entry['fastboot-js'].fromFile);
return request
.withMeta({ wasMovedTo: request.fromFile })
.alias(matched.entry['fastboot-js'].specifier)
.rehome(matched.entry['fastboot-js'].fromFile);
case 'both':
let foundAppJS = this.nodeResolve(matched.entry['app-js'].specifier, matched.entry['app-js'].fromFile);
if (foundAppJS.type !== 'real') {
Expand Down

0 comments on commit c08523a

Please sign in to comment.