Skip to content

Commit

Permalink
fix(sourcemaps): TagTypeArgs and TagTypeParams (#2064)
Browse files Browse the repository at this point in the history
  • Loading branch information
LuLaValva authored Nov 22, 2023
1 parent f9e603a commit 5e29410
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/flat-camels-hide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@marko/compiler": patch
---

fix sourcemaps
8 changes: 4 additions & 4 deletions packages/compiler/src/babel-plugin/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,16 +203,16 @@ export function parseMarko(file) {
currentTag.node.typeArguments = parseTypeArgs(
file,
parser.read(part.value),
part.start,
part.end
part.value.start,
part.value.end
);
},
onTagTypeParams(part) {
currentBody.node.typeParameters = parseTypeParams(
file,
parser.read(part.value),
part.start,
part.end
part.value.start,
part.value.end
);
},
onPlaceholder(part) {
Expand Down

0 comments on commit 5e29410

Please sign in to comment.