Skip to content

Commit

Permalink
combine if/else
Browse files Browse the repository at this point in the history
  • Loading branch information
dnalborczyk committed Jan 23, 2022
1 parent b841c99 commit fe7e0c4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/ModuleLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -589,10 +589,8 @@ export class ModuleLoader {
moduleSideEffects: this.hasModuleSideEffects(source, true),
syntheticNamedExports: false
};
} else {
if (resolvedId.external && resolvedId.syntheticNamedExports) {
this.options.onwarn(errExternalSyntheticExports(source, importer));
}
} else if (resolvedId.external && resolvedId.syntheticNamedExports) {
this.options.onwarn(errExternalSyntheticExports(source, importer));
}
return resolvedId;
}
Expand Down

0 comments on commit fe7e0c4

Please sign in to comment.