no missing prop warning for non-writable props

pull/3984/head
Tan Li Hau 6 years ago
parent 8125731deb
commit 1f125d75c6

@ -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