diff --git a/packages/svelte/src/legacy/warnings.js b/packages/svelte/src/legacy/warnings.js index a008908cb69f..9f72423fc50d 100644 --- a/packages/svelte/src/legacy/warnings.js +++ b/packages/svelte/src/legacy/warnings.js @@ -10,9 +10,13 @@ var normal = 'font-weight: normal'; */ export function legacy_recursive_reactive_block() { if (DEV) { - console.warn(`%c[svelte] legacy_recursive_reactive_block\n%cDetected a migrated \`$:\` reactive block that both accesses and updates the same reactive value. This may cause recursive updates when converted to an \`$effect\`.`, bold, normal); + console.warn( + `%c[svelte] legacy_recursive_reactive_block\n%cDetected a migrated \`$:\` reactive block that both accesses and updates the same reactive value. This may cause recursive updates when converted to an \`$effect\`.`, + bold, + normal + ); } else { // TODO print a link to the documentation - console.warn("legacy_recursive_reactive_block"); + console.warn('legacy_recursive_reactive_block'); } -} \ No newline at end of file +}