Skip to content

Commit

Permalink
fix: exports is object
Browse files Browse the repository at this point in the history
  • Loading branch information
whxaxes committed Jun 6, 2024
1 parent 941e818 commit 6a4090c
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 6a4090c

Please sign in to comment.