Skip to content

Commit c7b6183

Browse files
committed
only call query() when in browser
1 parent 7698270 commit c7b6183

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/entries/web-runtime.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ Vue.prototype.$mount = function (
2626
el?: string | Element,
2727
hydrating?: boolean
2828
): Component {
29-
return this._mount(el && query(el), hydrating)
29+
el = el && inBrowser ? query(el) : undefined
30+
return this._mount(el, hydrating)
3031
}
3132

3233
// devtools global hook

0 commit comments

Comments
 (0)