fix(hmr): fix custom elements hmr edge cases

This commit is contained in:
Evan You
2021-07-22 18:54:26 -04:00
parent 5b76843b69
commit bff4ea74c5
3 changed files with 26 additions and 12 deletions

View File

@@ -290,6 +290,10 @@ export interface ComponentInternalInstance {
* is custom element?
*/
isCE?: boolean
/**
* custom element specific HMR method
*/
ceReload?: () => void
// the rest are only for stateful components ---------------------------------