Commit a525f27
create-file: emit RRI prefix only for base-realm imports
The generated-import canonicalization was rewriting every registered
realm's module ref to its RRI prefix form, including cross-realm
references (e.g. a card in workspace A extending one in workspace B
became `@test-realm/test2/animal`). Generated user source should
address the base realm by its stable alias (`@cardstack/base/X`,
matching the emitted Component import) but keep cross-realm references
as their absolute URL, which is how they resolve. Narrow the
canonicalization to the base realm; other realms keep the absolute URL.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 5560d79 commit a525f27
1 file changed
Lines changed: 13 additions & 5 deletions
Lines changed: 13 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
844 | 845 | | |
845 | 846 | | |
846 | 847 | | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
847 | 851 | | |
848 | | - | |
849 | | - | |
850 | | - | |
851 | | - | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
852 | 856 | | |
853 | 857 | | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
854 | 862 | | |
855 | | - | |
| 863 | + | |
856 | 864 | | |
857 | 865 | | |
858 | 866 | | |
| |||
0 commit comments