File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
packages/compiler-sfc/src Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,6 @@ import {
45
45
ObjectMethod ,
46
46
LVal ,
47
47
Expression ,
48
- VariableDeclaration ,
49
48
TSEnumDeclaration
50
49
} from '@babel/types'
51
50
import { walk } from 'estree-walker'
@@ -516,11 +515,7 @@ export function compileScript(
516
515
return true
517
516
}
518
517
519
- function processWithDefaults (
520
- node : Node ,
521
- declId ?: LVal ,
522
- declKind ?: VariableDeclaration [ 'kind' ]
523
- ) : boolean {
518
+ function processWithDefaults ( node : Node , declId ?: LVal ) : boolean {
524
519
if ( ! isCallOf ( node , WITH_DEFAULTS ) ) {
525
520
return false
526
521
}
@@ -1329,7 +1324,7 @@ export function compileScript(
1329
1324
// defineProps / defineEmits
1330
1325
const isDefineProps =
1331
1326
processDefineProps ( init , decl . id ) ||
1332
- processWithDefaults ( init , decl . id , node . kind )
1327
+ processWithDefaults ( init , decl . id )
1333
1328
const isDefineEmits = processDefineEmits ( init , decl . id )
1334
1329
if ( isDefineProps || isDefineEmits ) {
1335
1330
if ( left === 1 ) {
You can’t perform that action at this time.
0 commit comments