Skip to content

Commit

Permalink
fix: resolve async component default for native dynamic import
Browse files Browse the repository at this point in the history
fix #6751
  • Loading branch information
yyx990803 committed Oct 7, 2017
1 parent 35e55ec commit 2876ed8
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/core/vdom/helpers/resolve-async-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@ import {
isDef,
isUndef,
isTrue,
isObject
isObject,
hasSymbol
} from 'core/util/index'

import { createEmptyVNode } from 'core/vdom/vnode'

function ensureCtor (comp, base) {
if (comp.__esModule && comp.default) {
function ensureCtor (comp: any, base) {
if (
comp.__esModule ||
(hasSymbol && comp[Symbol.toStringTag] === 'Module')
) {
comp = comp.default
}
return isObject(comp)
Expand Down

0 comments on commit 2876ed8

Please sign in to comment.