-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: head duplication when binding is present (#9124)
- Loading branch information
Showing
6 changed files
with
25 additions
and
0 deletions.
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 @@ | ||
--- | ||
'svelte': patch | ||
--- | ||
|
||
fix: head duplication when binding is present |
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
3 changes: 3 additions & 0 deletions
3
...ages/svelte/test/server-side-rendering/samples/head-no-duplicates-with-binding/Foo.svelte
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,3 @@ | ||
<script> | ||
export let bar = null | ||
</script> |
2 changes: 2 additions & 0 deletions
2
...te/test/server-side-rendering/samples/head-no-duplicates-with-binding/_expected-head.html
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,2 @@ | ||
<link rel="canonical" href="/test"> | ||
<meta name="description" content="test"> |
Empty file.
11 changes: 11 additions & 0 deletions
11
...ges/svelte/test/server-side-rendering/samples/head-no-duplicates-with-binding/main.svelte
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,11 @@ | ||
<script> | ||
import Foo from './Foo.svelte'; | ||
let bar; | ||
</script> | ||
|
||
<svelte:head> | ||
<link rel="canonical" href="/test" /> | ||
<meta name="description" content="test" /> | ||
</svelte:head> | ||
|
||
<Foo bind:bar /> |