Skip to content

Commit

Permalink
Merge pull request #55 from Bowenn/bugfix
Browse files Browse the repository at this point in the history
bugfix issues #54
  • Loading branch information
yejimeiming authored Sep 15, 2024
2 parents 5e3294e + 7704cd4 commit af875ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ async function transformCommonjs({
if (importExpression != null && importInterop != null) {
// TODO: Merge duplicated require id
hoistImports.push(importExpression + ';')
ms.overwrite(node.start, node.end, importInterop)
// `importInterop` with brackets see #54
ms.overwrite(node.start, node.end, `(${importInterop})`)
}
}

Expand Down

0 comments on commit af875ed

Please sign in to comment.