mirror of https://github.com/sveltejs/svelte
chore: custom elements validation (#10720)
- add "missing customElement option" warning - add backwards compat support for customElement={null}pull/10721/head
parent
6a01f48325
commit
fff3320517
@ -0,0 +1,5 @@
|
||||
---
|
||||
"svelte": patch
|
||||
---
|
||||
|
||||
chore: custom elements validation
|
@ -1,3 +0,0 @@
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({ skip: true });
|
@ -1 +0,0 @@
|
||||
<svelte:options customElement="custom-element" />
|
@ -1,14 +0,0 @@
|
||||
[
|
||||
{
|
||||
"code": "missing-custom-element-compile-options",
|
||||
"end": {
|
||||
"column": 46,
|
||||
"line": 1
|
||||
},
|
||||
"message": "The 'customElement' option is used when generating a custom element. Did you forget the 'customElement: true' compile option?",
|
||||
"start": {
|
||||
"column": 16,
|
||||
"line": 1
|
||||
}
|
||||
}
|
||||
]
|
@ -1,3 +0,0 @@
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({ skip: true });
|
@ -1,14 +1,14 @@
|
||||
[
|
||||
{
|
||||
"code": "missing-custom-element-compile-options",
|
||||
"code": "missing-custom-element-compile-option",
|
||||
"message": "The 'customElement' option is used when generating a custom element. Did you forget the 'customElement: true' compile option?",
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 16
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 46
|
||||
"column": 49
|
||||
}
|
||||
}
|
||||
]
|
||||
|
Loading…
Reference in new issue