Skip to content

Commit

Permalink
function import fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mashaal committed Feb 24, 2022
1 parent ef02a2e commit a47bf57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const transform = async (
);
}
// function imports
const statements = expressionBody.stmts || [];
const statements = expressionBody?.stmts || [];
// @ts-ignore add typings for swc argument
statements.forEach(({ argument }) => {
if (argument?.callee?.value?.toLowerCase() === "import") {
Expand Down

0 comments on commit a47bf57

Please sign in to comment.