Skip to content

Commit 0ee1983

Browse files
author
Guillaume Chau
committed
fix(plugin api): task hooks (non-vue cli project)
1 parent 0521818 commit 0ee1983

File tree

1 file changed

+1
-0
lines changed
  • packages/@vue/cli-ui/apollo-server/connectors

1 file changed

+1
-0
lines changed

packages/@vue/cli-ui/apollo-server/connectors/plugins.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ function getApi (folder) {
249249

250250
function callHook ({ id, args, file }, context) {
251251
const pluginApi = getApi(file)
252+
if (!pluginApi) return
252253
const fns = pluginApi.hooks[id]
253254
log(`Hook ${id}`, fns.length, 'handlers')
254255
fns.forEach(fn => fn(...args))

0 commit comments

Comments
 (0)