Skip to content

Commit 1a6ba71

Browse files
committed
Fixed arrowFunction implicit return
1 parent 316658a commit 1a6ba71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BabelPlugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ function Plugin(babel) {
159159
funcExp.type = "FunctionExpression";
160160
if (funcExp.body.type !== "BlockStatement") {
161161
funcExp.body = t.blockStatement([
162-
t.expressionStatement(funcExp.body)
162+
t.returnStatement(funcExp.body)
163163
]);
164164
}
165165
return t.callExpression(

0 commit comments

Comments
 (0)