Skip to content

Commit

Permalink
fix(plugin): make higher priority of exports
Browse files Browse the repository at this point in the history
  • Loading branch information
noahziheng committed Feb 21, 2023
1 parent 259a688 commit 5e7d79c
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 @@ -52,7 +52,7 @@ export async function getInlinePackageEntryPath(packagePath: string): Promise<st
entryFilePath = pkgJson.exports['.'];
}
}
if (pkgJson.main) {
if (!entryFilePath && pkgJson.main) {
entryFilePath = pkgJson.main;
}
// will use package root path if no entry file found
Expand Down

0 comments on commit 5e7d79c

Please sign in to comment.