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

Commit739d78b

Browse files
committed
fix: skip checking private properties of typeParameters
ref:vitejs/vite-plugin-vue@e4f5fff
1 parentf9c4ff9 commit739d78b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

‎src/core/handleHotUpdate.ts‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,14 +254,14 @@ function isEqualAst(prev?: t.Statement[], next?: t.Statement[]): boolean {
254254
returnprev===next
255255
}
256256

257-
// deep equal, but ignore start/end/loc/range/leadingComments/trailingComments/innerComments
258257
if(prev.length!==next.length){
259258
returnfalse
260259
}
261260

262261
for(const[i,prevNode]ofprev.entries()){
263262
constnextNode=next[i]
264263
if(
264+
// deep equal, but ignore start/end/loc/range/leadingComments/trailingComments/innerComments
265265
!deepEqual(prevNode,nextNode,[
266266
'start',
267267
'end',
@@ -270,6 +270,12 @@ function isEqualAst(prev?: t.Statement[], next?: t.Statement[]): boolean {
270270
'leadingComments',
271271
'trailingComments',
272272
'innerComments',
273+
// https://github.com/vuejs/core/issues/11923
274+
// avoid comparing the following properties of typeParameters
275+
// as it may be imported from 3rd lib and complex to compare
276+
'_ownerScope',
277+
'_resolvedReference',
278+
'_resolvedElements',
273279
])
274280
){
275281
returnfalse

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp