no missing prop warning for non-writable props

pull/7738/head
Tan Li Hau 6 years ago committed by Conduitry
parent 0d013d254f
commit 0678ca9172

@ -153,7 +153,7 @@ export default function dom(
if (component.compile_options.dev) { if (component.compile_options.dev) {
// checking that expected ones were passed // checking that expected ones were passed
const expected = props.filter(prop => !prop.initialised); const expected = props.filter(prop => prop.writable && !prop.initialised);
if (expected.length) { if (expected.length) {
dev_props_check = b` dev_props_check = b`

@ -0,0 +1,7 @@
export default {
compileOptions: {
dev: true
},
warnings: []
};

@ -0,0 +1,7 @@
<script>
export function foo() {}
</script>
<p>
{foo()}
</p>
Loading…
Cancel
Save