mirror of https://github.com/sveltejs/svelte
Merge 23865447c4 into 8fb7ceeba5
commit
10f7013fd8
@ -0,0 +1,5 @@
|
||||
---
|
||||
"svelte": patch
|
||||
---
|
||||
|
||||
fix: warn when bare `<head>` is used in a component
|
||||
@ -0,0 +1,3 @@
|
||||
<head>
|
||||
<meta name="description" content="some description" />
|
||||
</head>
|
||||
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"code": "unexpected_head",
|
||||
"message": "Using `<head>` ((unknown):1:0) will likely lead to runtime errors. Use [`<svelte:head>`](https://svelte.dev/docs/svelte/svelte-head) instead",
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 3,
|
||||
"column": 7
|
||||
}
|
||||
}
|
||||
]
|
||||
Loading…
Reference in new issue