Skip to content

Commit 6595853

Browse files
authored
fix: add exports.types field 2 (#116)
1 parent 103165c commit 6595853

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/tools/dualPackageSupport.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const isSupportModuleType = (text: string | undefined): text is SupportModuleTyp
3636
if (!text) {
3737
return false;
3838
}
39-
return ["node", "browser", "require", "import", "default"].includes(text);
39+
return ["node", "browser", "require", "import", "default", "types"].includes(text);
4040
};
4141

4242
const trimExtension = (p: string): string => {

0 commit comments

Comments
 (0)