From e33e2cb685401419ecd054f8b26a78bd9b2fcf04 Mon Sep 17 00:00:00 2001 From: Simon Holthausen Date: Mon, 16 Dec 2024 14:23:57 +0100 Subject: [PATCH] regenerate --- packages/svelte/src/compiler/errors.js | 2 +- packages/svelte/src/internal/shared/warnings.js | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/svelte/src/compiler/errors.js b/packages/svelte/src/compiler/errors.js index d991b266ca..e7e0c549e4 100644 --- a/packages/svelte/src/compiler/errors.js +++ b/packages/svelte/src/compiler/errors.js @@ -1361,7 +1361,7 @@ export function svelte_head_illegal_attribute(node) { * @returns {never} */ export function svelte_html_illegal_attribute(node) { - e(node, "svelte_html_illegal_attribute", "`` can only have regular attributes"); + e(node, "svelte_html_illegal_attribute", `\`\` can only have regular attributes\nhttps://svelte.dev/e/svelte_html_illegal_attribute`); } /** diff --git a/packages/svelte/src/internal/shared/warnings.js b/packages/svelte/src/internal/shared/warnings.js index c948b6d525..38c2bc634c 100644 --- a/packages/svelte/src/internal/shared/warnings.js +++ b/packages/svelte/src/internal/shared/warnings.js @@ -41,9 +41,8 @@ ${properties}` */ export function svelte_html_duplicate_attribute(name) { if (DEV) { - console.warn(`%c[svelte] svelte_html_duplicate_attribute\n%cDuplicate attribute '${name}' across multiple \`\` blocks, the latest value will be used.`, bold, normal); + console.warn(`%c[svelte] svelte_html_duplicate_attribute\n%cDuplicate attribute '${name}' across multiple \`\` blocks, the latest value will be used.\nhttps://svelte.dev/e/svelte_html_duplicate_attribute`, bold, normal); } else { - // TODO print a link to the documentation - console.warn("svelte_html_duplicate_attribute"); + console.warn(`https://svelte.dev/e/svelte_html_duplicate_attribute`); } } \ No newline at end of file