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 {
4545 ObjectMethod ,
4646 LVal ,
4747 Expression ,
48- VariableDeclaration ,
4948 TSEnumDeclaration
5049} from '@babel/types'
5150import { walk } from 'estree-walker'
@@ -516,11 +515,7 @@ export function compileScript(
516515 return true
517516 }
518517
519- function processWithDefaults (
520- node : Node ,
521- declId ?: LVal ,
522- declKind ?: VariableDeclaration [ 'kind' ]
523- ) : boolean {
518+ function processWithDefaults ( node : Node , declId ?: LVal ) : boolean {
524519 if ( ! isCallOf ( node , WITH_DEFAULTS ) ) {
525520 return false
526521 }
@@ -1329,7 +1324,7 @@ export function compileScript(
13291324 // defineProps / defineEmits
13301325 const isDefineProps =
13311326 processDefineProps ( init , decl . id ) ||
1332- processWithDefaults ( init , decl . id , node . kind )
1327+ processWithDefaults ( init , decl . id )
13331328 const isDefineEmits = processDefineEmits ( init , decl . id )
13341329 if ( isDefineProps || isDefineEmits ) {
13351330 if ( left === 1 ) {
You can’t perform that action at this time.
0 commit comments