Skip to content

Commit

Permalink
(fix) also sourcemap when defintion is in a ts file (#1482)
Browse files Browse the repository at this point in the history
this mainly happened with object members
because they won't be aliased when imported.
  • Loading branch information
jasonlyu123 committed May 11, 2022
1 parent bcf6b6a commit f11c429
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -24,7 +24,10 @@ function _decorateFindReferences(
?.map((reference) => {
const snapshot = snapshotManager.get(reference.definition.fileName);
if (!isSvelteFilePath(reference.definition.fileName) || !snapshot) {
return reference;
return {
...reference,
references: mapReferences(reference.references, snapshotManager, logger)
};
}

const textSpan = snapshot.getOriginalTextSpan(reference.definition.textSpan);
Expand Down

0 comments on commit f11c429

Please sign in to comment.