mirror of https://github.com/sveltejs/svelte
Merge branch 'feat/2174_dev_runtime_warning_when_passing_unknown_props' of https://github.com/colincasey/svelte into colincasey-feat/2174_dev_runtime_warning_when_passing_unknown_props
commit
5e3ee4e26b
@ -0,0 +1,5 @@
|
||||
<script>
|
||||
export let foo = undefined;
|
||||
</script>
|
||||
|
||||
<div>{foo}</div>
|
@ -0,0 +1,9 @@
|
||||
export default {
|
||||
compileOptions: {
|
||||
dev: true
|
||||
},
|
||||
|
||||
warnings: [
|
||||
`<Foo> was created with unknown attribute 'fo'`
|
||||
]
|
||||
};
|
@ -0,0 +1,5 @@
|
||||
<script>
|
||||
import Foo from './Foo.svelte';
|
||||
</script>
|
||||
|
||||
<Foo fo="sho"/>
|
Loading…
Reference in new issue