no missing prop warning for non-writable props

pull/3996/head
Tan Li Hau 5 years ago committed by Conduitry
parent 3d0a5f8c37
commit 34bb8119b7

@ -153,7 +153,7 @@ export default function dom(
if (component.compile_options.dev) {
// 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) {
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