diff --git a/packages/svelte/src/internal/client/warnings.js b/packages/svelte/src/internal/client/warnings.js index 3853252e08..e63933894e 100644 --- a/packages/svelte/src/internal/client/warnings.js +++ b/packages/svelte/src/internal/client/warnings.js @@ -5,6 +5,18 @@ import { DEV } from 'esm-env'; var bold = 'font-weight: bold'; var normal = 'font-weight: normal'; +/** + * The `render` function of `createRawSnippet` is expected to return the HTML for a single element. Ensure the HTML generated from `render` is correct. + */ +export function bad_raw_snippet_render() { + if (DEV) { + console.warn(`%c[svelte] bad_raw_snippet_render\n%cThe \`render\` function of \`createRawSnippet\` is expected to return the HTML for a single element. Ensure the HTML generated from \`render\` is correct.`, bold, normal); + } else { + // TODO print a link to the documentation + console.warn("bad_raw_snippet_render"); + } +} + /** * `%binding%` (%location%) is binding to a non-reactive property * @param {string} binding @@ -112,16 +124,4 @@ export function state_proxy_equality_mismatch(operator) { // TODO print a link to the documentation console.warn("state_proxy_equality_mismatch"); } -} - -/** - * The `render` function of `createRawSnippet` is expected to return the HTML for a single element. Ensure the HTML generated from `render` is correct. - */ -export function bad_raw_snippet_render() { - if (DEV) { - console.warn(`%c[svelte] bad_raw_snippet_render\n%cThe \`render\` function of \`createRawSnippet\` is expected to return the HTML for a single element. Ensure the HTML generated from \`render\` is correct.`, bold, normal); - } else { - // TODO print a link to the documentation - console.warn("bad_raw_snippet_render"); - } } \ No newline at end of file