From 80ac345103675d7313863d67ded297e706c3b2f4 Mon Sep 17 00:00:00 2001 From: JP Rodrigues <70jprodrigues@gmail.com> Date: Tue, 20 Oct 2020 13:52:46 -0300 Subject: [PATCH] Change code style to remove loader dependency --- src/helpers/mount-component.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/mount-component.js b/src/helpers/mount-component.js index 18711e6..da2b351 100644 --- a/src/helpers/mount-component.js +++ b/src/helpers/mount-component.js @@ -7,7 +7,7 @@ const mount = (component, { props, children, element, app } = {}) => { let el = element ? element : createElement() let vNode = h(component, props, children) - if (app?._context) { + if (app && app._context) { vNode.appContext = app._context }