-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add preprocessor warning about common mistakes (#8475)
* feat: warn when usage of page options in `.svelte` files is detected Uses a preprocessor to check the script contents of Svelte files for "export const prerender/csr/ssr/trailingsSlash =" closes #7411 * warn if no slot in layout, closes #7773 * tweak messages, deduplicate between server/client builds * changeset Co-authored-by: Rich Harris <hello@rich-harris.dev>
- Loading branch information
1 parent
158ec86
commit 51c1cad
Showing
2 changed files
with
60 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@sveltejs/kit': minor | ||
--- | ||
|
||
feat: warn when usage of page options in `.svelte` files or missing `<slot />` in layout is detected |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters