Skip to content

Commit

Permalink
fix: exports is object (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
whxaxes authored Jun 6, 2024
1 parent 941e818 commit b942d50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export async function getInlinePackageEntryPath(
} else if (typeof pkgJson.exports === "string") {
entryFilePath = pkgJson.exports;
} else if (pkgJson.exports?.["."]) {
entryFilePath = pkgJson.exports["."];
entryFilePath = pkgJson.exports["."].require;
}
}
if (!entryFilePath && pkgJson.main) {
Expand Down

0 comments on commit b942d50

Please sign in to comment.