Skip to content

Commit

Permalink
fix: type error after minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
j-luong committed Oct 16, 2023
1 parent d9f5ef0 commit 9465b1a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ export class BabelParser extends ModuleParser {
fileName,
name: BabelParser.getModuleName(node),
line: node.loc ? node.loc.end.line : null,
loc: node.arguments[0].loc,
loc: node.arguments[0].loc ? node.arguments[0].loc : null,
string: BabelParser.compileRequireString(node),
});
} else if (node.callee.type === 'Import') {
modules.push({
fileName,
loc: node.arguments[0].loc,
loc: node.arguments[0].loc ? node.arguments[0].loc : null,
name: BabelParser.getModuleName(node),
line: node.loc ? node.loc.end.line : null,
string: BabelParser.compileImportExpressionString(node),
Expand Down

0 comments on commit 9465b1a

Please sign in to comment.