Skip to content

Commit dd3c729

Browse files
committed
fix: include import condition to correctly walk the exports map
1 parent 6c794e9 commit dd3c729

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/package-types-resolver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class PackageTypesResolver {
1818
try {
1919
const entries =
2020
exports(this.#pkgJson, this.#subpath, {
21-
conditions: ["!default", "!import", "!node", "types"],
21+
conditions: ["!default", "!node", "import", "types"],
2222
}) ?? [];
2323
const entry = entries.at(0);
2424
if (!entry || !this.#isTypesFile(entry)) return undefined;

0 commit comments

Comments
 (0)