|
|
@ -607,8 +607,8 @@ export function compileScript( |
|
|
|
node.type.endsWith('Statement') |
|
|
|
) { |
|
|
|
const scope: Statement[][] = [scriptSetupAst.body] |
|
|
|
;(walk as any)(node, { |
|
|
|
enter(child: Node, parent: Node) { |
|
|
|
walk(node, { |
|
|
|
enter(child: Node, parent: Node | undefined) { |
|
|
|
if (isFunctionType(child)) { |
|
|
|
this.skip() |
|
|
|
} |
|
|
@ -633,7 +633,7 @@ export function compileScript( |
|
|
|
ctx, |
|
|
|
child, |
|
|
|
needsSemi, |
|
|
|
parent.type === 'ExpressionStatement' |
|
|
|
parent!.type === 'ExpressionStatement' |
|
|
|
) |
|
|
|
} |
|
|
|
}, |
|
|
|