mirror of https://github.com/sveltejs/svelte
check for unknown props even if component doesn't have writable props (#4454)
parent
37a2d6c6ea
commit
b6aaa44880
@ -0,0 +1 @@
|
||||
Foo
|
@ -0,0 +1,9 @@
|
||||
export default {
|
||||
compileOptions: {
|
||||
dev: true
|
||||
},
|
||||
|
||||
warnings: [
|
||||
`<Foo> was created with unknown prop 'fo'`
|
||||
]
|
||||
};
|
@ -0,0 +1,5 @@
|
||||
<script>
|
||||
import Foo from './Foo.svelte';
|
||||
</script>
|
||||
|
||||
<Foo fo="sho"/>
|
Loading…
Reference in new issue