diff --git a/src/core/runtime/wrapper/util.js b/src/core/runtime/wrapper/util.js index 1b82efcdef5e3aafe768d1972bf3dc28332f830c..270e73fc38c3cf3ecc58465c391049871fb3528a 100644 --- a/src/core/runtime/wrapper/util.js +++ b/src/core/runtime/wrapper/util.js @@ -1,3 +1,5 @@ +import Vue from 'vue' + import { isFn, noop, @@ -28,6 +30,10 @@ function hasHook (hook, vueOptions) { return true } + if (Vue.options && Array.isArray(Vue.options[hook])) { + return true + } + vueOptions = vueOptions.default || vueOptions if (isFn(vueOptions)) {