fix(hmr): make hmr working with class components (#2144)
This commit is contained in:
@@ -800,3 +800,7 @@ export function formatComponentName(
|
||||
|
||||
return name ? classify(name) : isRoot ? `App` : `Anonymous`
|
||||
}
|
||||
|
||||
export function isClassComponent(value: unknown): value is ClassComponent {
|
||||
return isFunction(value) && '__vccOpts' in value
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user