Skip to content

Commit

Permalink
fix: component ast broken when use script setup with export default
Browse files Browse the repository at this point in the history
close #1996
  • Loading branch information
johnsoncodehk committed Oct 12, 2022
1 parent 9735e41 commit 9d96718
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -242,8 +242,9 @@ export function generate(
0,
{ diagnostic: true },
]);
codeGen.push('export default (');
codeGen.push('export default ');
}
codeGen.push('(');
if (vueCompilerOptions.experimentalRfc436 && sfc.scriptSetup.generic) {
codeGen.push(`<`);
codeGen.push([
Expand Down

0 comments on commit 9d96718

Please sign in to comment.