+7
-3
lines changedFilter options
+7
-3
lines changed Original file line number Diff line number Diff line change
@@ -6,13 +6,17 @@ import {
6
6
isDef,
7
7
isUndef,
8
8
isTrue,
9
-
isObject
9
+
isObject,
10
+
hasSymbol
10
11
} from 'core/util/index'
11
12
12
13
import { createEmptyVNode } from 'core/vdom/vnode'
13
14
14
-
function ensureCtor (comp, base) {
15
-
if (comp.__esModule && comp.default) {
15
+
function ensureCtor (comp: any, base) {
16
+
if (
17
+
comp.__esModule ||
18
+
(hasSymbol && comp[Symbol.toStringTag] === 'Module')
19
+
) {
16
20
comp = comp.default
17
21
}
18
22
return isObject(comp)
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4