Skip to content

Commit

Permalink
chore: lint code
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jul 18, 2023
1 parent 72018d4 commit 87e5035
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,12 @@ export function inferExportType(
}
}
switch (condition) {
case "import":
case "import": {
return "esm";
case "require":
}
case "require": {
return "cjs";
}
default: {
if (previousConditions.length === 0) {
// TODO: Check against type:module for default
Expand Down

0 comments on commit 87e5035

Please sign in to comment.