Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dummdidumm committed Apr 16, 2024
1 parent f9082bc commit 73bfe71
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 deletions.
14 changes: 7 additions & 7 deletions packages/svelte2tsx/src/htmlxtojsx_v2/nodes/Binding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,13 @@ export function handleBinding(
];

const value: TransformationArray | undefined = isShorthand
? element instanceof Element || !isSvelte5Plus
? preserveBind
? [rangeWithTrailingPropertyAccess(str.original, attr.expression)]
: undefined
: [
`__sveltets_2_binding(${str.original.substring(attr.expression.start, attr.expression.end)})`
]
? preserveBind && element instanceof Element
? [rangeWithTrailingPropertyAccess(str.original, attr.expression)]
: isSvelte5Plus
? [
`__sveltets_2_binding(${str.original.substring(attr.expression.start, attr.expression.end)})`
]
: undefined
: element instanceof Element || !isSvelte5Plus
? [rangeWithTrailingPropertyAccess(str.original, attr.expression)]
: [
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 73bfe71

Please sign in to comment.