Update remaining Svelte 5 migration across processor, demo, and docs#394
Merged
TorstenDittmann merged 2 commits intomainfrom Feb 7, 2026
Merged
Update remaining Svelte 5 migration across processor, demo, and docs#394TorstenDittmann merged 2 commits intomainfrom
TorstenDittmann merged 2 commits intomainfrom
Conversation
Complete the remaining Svelte 5 migration work by removing legacy syntax
and deprecated APIs from generated output, fixtures, app routes, and
documentation examples.
- update transformer output to emit `<script module>` for frontmatter
exports instead of `context="module"`
- align processor and transformer tests with the new output format
- migrate test Svelte modules from `context="module"` to `<script
module>`
- replace legacy `<slot />` usage in test components with snippet
rendering via `children` and `{@render children?.()}`
- migrate demo layouts from `$app/stores` to `$app/state`
- replace `$page`-store access with `page` state access in demo route
layouts
- modernize docs examples to Svelte 5 syntax:
- `<script module>`
- `$props()` calls
- snippet-based children rendering instead of slots
- make processor fixture comparisons newline-tolerant using `trimEnd()`
to avoid trailing newline mismatches across environments
Deploying svelte-markdoc-preprocess with
|
| Latest commit: |
3b1d3e1
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://af9883f2.svelte-markdoc-preprocess.pages.dev |
| Branch Preview URL: | https://migrate-svelte-5-docs.svelte-markdoc-preprocess.pages.dev |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Complete the remaining Svelte 5 migration work by removing legacy syntax and deprecated APIs from generated output, fixtures, app routes, and documentation examples.
<script module>for frontmatter exports instead ofcontext="module"context="module"to<script module><slot />usage in test components with snippet rendering viachildrenand{@render children?.()}$app/storesto$app/state$page-store access withpagestate access in demo route layouts<script module>$props()callstrimEnd()to avoid trailing newline mismatches across environments