Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(transformer): ensure last expression statement in arrow function …
…expression is wrapped in return (#8192) The class properties plugin will insert new statements after the expression statement, which causes the expression statement to no longer be at the end. This PR fixed it by reverse looping the statements to find the expression statement and transforming it to wrapped in `return`. This is not a good way to do it, a potential problem is if there is a plugin that inserts a new expression statement after the original expression statement, which will cause a wrong expression wrapped in a `return`
- Loading branch information