Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6c45fe5

Browse files
authored
fix(hmr): reload when components switch between vapor and vdom (#714)
1 parent14d9d57 commit6c45fe5

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
functionhasScriptChanged(prev:SFCDescriptor,next:SFCDescriptor):boolean{
299+
//@ts-expect-error TODO remove when 3.6 is out
300+
if(prev.vapor!==next.vapor)returntrue
301+
299302
// check for scriptAst/scriptSetupAst changes
300303
// note that the next ast is not available yet, so we need to trigger parsing
301304
constprevScript=getResolvedScript(prev,false)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp