diff --git a/src/plugin/common.ts b/src/plugin/common.ts index 7b3d89f..ab44ccc 100644 --- a/src/plugin/common.ts +++ b/src/plugin/common.ts @@ -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) {