Skip to content

Commit 0401a07

Browse files
committed
throw explicit error if editor prop is not passed
1 parent 5bfff2d commit 0401a07

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Repl.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ const props = withDefaults(defineProps<Props>(), {
4343
})
4444
})
4545
46+
if (!props.editor) {
47+
throw new Error('The "editor" prop is now required.')
48+
}
49+
4650
const { store } = props
4751
const sfcOptions = (store.options = props.sfcOptions || {})
4852
if (!sfcOptions.script) {

0 commit comments

Comments
 (0)