diff --git a/.changeset/giant-planets-sing.md b/.changeset/giant-planets-sing.md new file mode 100644 index 000000000000..ff7af5d67e70 --- /dev/null +++ b/.changeset/giant-planets-sing.md @@ -0,0 +1,5 @@ +--- +"@sveltejs/kit": patch +--- + +fix: adjust missing inner content warning diff --git a/packages/kit/src/exports/vite/index.js b/packages/kit/src/exports/vite/index.js index 1c9cffe0a981..eb7d93d92e13 100644 --- a/packages/kit/src/exports/vite/index.js +++ b/packages/kit/src/exports/vite/index.js @@ -105,10 +105,14 @@ const warning_preprocessor = { if (!filename) return; const basename = path.basename(filename); - if (basename.startsWith('+layout.') && !content.includes('` missing — inner content will not be rendered'; + `\`\`${isSvelte5Plus() ? ' or `{@render ...}` tag' : ''}` + + ' missing — inner content will not be rendered'; if (!warned.has(message)) { console.log(message);