Skip to content

Commit 734b53a

Browse files
author
Nathan Reid
committed
handle root component changes
1 parent 53deae6 commit 734b53a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vue-component-dev-client/client/vue2-hot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ exports.reload = tryWrap((id, options) => {
201201
// preserve pre 2.2 behavior for global mixin handling
202202
record.Ctor.extendOptions = options
203203
}
204-
const newCtor = record.Ctor.super.extend(options)
204+
const newCtor = (record.Ctor.super || record.Ctor).extend(options)
205205
record.Ctor.options = newCtor.options
206206
record.Ctor.cid = newCtor.cid
207207
record.Ctor.prototype = newCtor.prototype

0 commit comments

Comments
 (0)