Skip to content

Commit 5c76a16

Browse files
chore: clarify prettier-plugin-svelte workaround comment
The pinned prettier-plugin-svelte@^4.0.1 already contains the #528 fix, so reword the comment to state that explicitly rather than implying the fix is not yet in the pinned version. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 5fe6629 commit 5c76a16

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/lib/components/filesharing/SendButton.svelte

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,9 @@
307307
// Computed here as a script-level $derived rather than inline in the template
308308
// via {@const} to dodge an upstream prettier-plugin-svelte crash on ternaries
309309
// with a BinaryExpression test inside {@const}
310-
// (https://github.com/sveltejs/prettier-plugin-svelte/issues/528). Once that
311-
// fix is confirmed in the pinned plugin version, this can move back inline.
310+
// (https://github.com/sveltejs/prettier-plugin-svelte/issues/528). The pinned
311+
// ^4.0.1 already includes the #528 fix, so this can move back inline as a
312+
// {@const} ternary once verified with `prettier --check` on 4.0.1.
312313
let totalProgress = $derived(
313314
encryptState.percentages.length > 0
314315
? Math.round(

0 commit comments

Comments
 (0)