diff --git a/packages/svelte/src/compiler/phases/3-transform/client/visitors/javascript-runes.js b/packages/svelte/src/compiler/phases/3-transform/client/visitors/javascript-runes.js index b9998e877a24..88c8c4c18a48 100644 --- a/packages/svelte/src/compiler/phases/3-transform/client/visitors/javascript-runes.js +++ b/packages/svelte/src/compiler/phases/3-transform/client/visitors/javascript-runes.js @@ -179,7 +179,9 @@ export const javascript_visitors_runes = { id = property.value.left; initial = property.value.right; } - initial = initial ? /** @type {import('estree').Expression} */ (visit(initial)) : undefined; + initial = initial + ? /** @type {import('estree').Expression} */ (visit(initial)) + : undefined; assert.equal(id.type, 'Identifier'); diff --git a/packages/svelte/tests/runtime-runes/samples/assign-prop-to-prop/_config.js b/packages/svelte/tests/runtime-runes/samples/assign-prop-to-prop/_config.js index 130cab292a70..f68a56cfbc57 100644 --- a/packages/svelte/tests/runtime-runes/samples/assign-prop-to-prop/_config.js +++ b/packages/svelte/tests/runtime-runes/samples/assign-prop-to-prop/_config.js @@ -1,6 +1,5 @@ import { test } from '../../test'; export default test({ - html: `
5
5
25
65
`, + html: `5
5
25
65
` }); -