Skip to content

Commit 10b14da

Browse files
authored
Merge pull request #87 from arethetypeswrong/bug/0.10.0
Fix crash
2 parents 7b70d12 + 335c13f commit 10b14da

File tree

4 files changed

+358
-5
lines changed

4 files changed

+358
-5
lines changed

.changeset/rude-olives-tease.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@arethetypeswrong/core": patch
3+
---
4+
5+
Fixed bug that could cause a crash while checking for FalseExportDefault

packages/core/src/checks/entrypointResolutionProblems.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,7 @@ export function getEntrypointResolutionProblems(
9797
})
9898
.getTypeChecker();
9999
// Check for `default` property on `jsModule["export="]`
100-
if (
101-
!jsChecker
102-
.getExportsAndPropertiesOfModule(jsChecker.resolveExternalModuleSymbol(jsSourceFile.symbol))
103-
.some((s) => s.name === "default")
104-
) {
100+
if (!jsChecker.getExportsAndPropertiesOfModule(jsSourceFile.symbol).some((s) => s.name === "default")) {
105101
problems.push({
106102
kind: "FalseExportDefault",
107103
entrypoint: subpath,
3.65 KB
Binary file not shown.

0 commit comments

Comments
 (0)