mirror of https://github.com/sveltejs/svelte
[fix] do not warn about missing props for bindings (#6583)
parent
ce569f97eb
commit
158ec43d99
@ -0,0 +1,8 @@
|
||||
<script>
|
||||
export let w;
|
||||
export let x;
|
||||
export let y;
|
||||
export let z = undefined;
|
||||
</script>
|
||||
|
||||
<div>{w} {x} {y}</div>
|
@ -0,0 +1,9 @@
|
||||
export default {
|
||||
compileOptions: {
|
||||
dev: true
|
||||
},
|
||||
|
||||
warnings: [
|
||||
"<Foo> was created without expected prop 'y'"
|
||||
]
|
||||
};
|
@ -0,0 +1,8 @@
|
||||
<script>
|
||||
import Foo from './Foo.svelte';
|
||||
|
||||
let x = undefined;
|
||||
let w = 'w';
|
||||
</script>
|
||||
|
||||
<Foo bind:w bind:x />
|
Loading…
Reference in new issue