Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: patch tsc to not crash on composite project errors
Fixes vuejs#2622 I don't know the exact detail of the crash, but I find that tsc crashed because the `diagnostic.file` object is somehow missing a `resolvedPath` field. Meanwhile, the `fileName` field is always present. So I just added a fallback to `fileName` in the patch. Maybe related: microsoft/TypeScript#54057 I only add it to the 5.0 branch because I haven't tested it on 4.x, so let's play it safe.
- Loading branch information