Skip to content

chore: standardize route discovery, parameter, and route export diagnostics - #17252

Open
elliott-with-the-longest-name-on-github wants to merge 1 commit into
message-box/config-syncfrom
message-box/routing-params
Open

elliott-with-the-longest-name-on-github wants to merge 1 commit into
message-box/config-syncfrom
message-box/routing-params

Conversation

@elliott-with-the-longest-name-on-github

Copy link
Copy Markdown
Contributor

Adds route export validation and param matcher diagnostics to the @sveltejs/message-box catalog. Some of these errors are included in the client bundle, sothe shared errors implement a similar set of checks to svelte to strip the generated code size down in the browser. I also had to introduce a verbose flag because the building constant we use internally isn't quite wide enough. Some "build" errors show up in analyse code, which has building = false.

I also included a new ESLint rule to ensure the buildtime messages are never imported into client code. This revealed that load_and_validate_params was probably in the wrong location, so I moved it.


Stack created with GitHub Stacks CLI • Give Feedback 💬

@pkg-svelte-dev

Copy link
Copy Markdown

Install the latest version of @sveltejs/kit from c5b355b:

pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/c5b355bb5cdab0aebc14532071ba56b7bbfd90bf

Open in pkg.svelte.dev: https://pkg.svelte.dev/repos/kit/pr/17252

@changeset-bot

changeset-bot Bot commented Sep 28, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: c5b355b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@sveltejs/kit Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@elliott-with-the-longest-name-on-github
elliott-with-the-longest-name-on-github added this pull request to stack #17254 September 28, 2026 22:17
@svelte-docs-bot

Copy link
Copy Markdown

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant