fix(svelte): update add_snippet_symbol import #11161
Closed
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.
Changes
pnpm exec changeset
Fixes #11149
[email protected]
removed theadd_snippet_symbol
export insvelte/internal/client
. This changes the import fromsvelte/internal/client
tosvelte/internal/server
.Looking at the svelte source code,
add_snippet_symbol
from both client and server were simply re-exports of a shared file.Though it feels wrong to import a server file into a client file, this might be acceptable since this is for dev validation only and the underlying function is the same.
The re-export from
svelte/internal/server
was originally added in[email protected]
. Since the minimum version required is already[email protected]
, this should not be a breaking change.Testing
Changing the import from
svelte/internal/client
tosvelte/internal/server
usingpnpm patch
in pre-existing projects allows build to complete.Docs
This fix requires no changes on the part of the user and shouldn't need to be documented.