Skip to content

Commit

Permalink
refactor: Update replacement conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
bennycode committed Nov 21, 2024
1 parent 53a0abe commit e3539d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/converter/replacer/replaceModuleExports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ export function replaceModuleExports(sourceFile: SourceFile) {

if (isExportingIdentifier) {
sourceFile.insertExportAssignment(position, {
isExportEquals: false,
expression: rightText,
isExportEquals: false,
});
} else if (isExportingFunction) {
sourceFile.insertStatements(position, `${comment}export default ${defaultExport};`);
Expand Down

0 comments on commit e3539d7

Please sign in to comment.