Skip to content

Commit 6c45fe5

Browse files
authored
fix(hmr): reload when components switch between vapor and vdom (#714)
1 parent 14d9d57 commit 6c45fe5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/plugin-vue/src/handleHotUpdate.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,9 @@ function isEqualAst(prev?: t.Statement[], next?: t.Statement[]): boolean {
296296
}
297297

298298
function hasScriptChanged(prev: SFCDescriptor, next: SFCDescriptor): boolean {
299+
// @ts-expect-error TODO remove when 3.6 is out
300+
if (prev.vapor !== next.vapor) return true
301+
299302
// check for scriptAst/scriptSetupAst changes
300303
// note that the next ast is not available yet, so we need to trigger parsing
301304
const prevScript = getResolvedScript(prev, false)

0 commit comments

Comments
 (0)