Skip to content

[api-extractor] Fix crash when a source map segment has no source - #6157

Open
Josh (joshuaellis) wants to merge 1 commit into
microsoft:mainfrom
joshuaellis:fix-api-extractor-sourceless-mapping
Open

Josh (joshuaellis) wants to merge 1 commit into
microsoft:mainfrom
joshuaellis:fix-api-extractor-sourceless-mapping

Conversation

@joshuaellis

Copy link
Copy Markdown

Summary

API Extractor crashes with "Target is a folder, not a file" when a .d.ts.map contains a mapping segment with only a generated column. rolldown 1.2.14 emits these in declaration maps (rolldown/rolldown#11170). With this fix, the .d.ts location is used for that position instead.

Fixes #6156

@joshuaellis

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree company="Sanity"

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Needs triage

Development

Successfully merging this pull request may close these issues.

[api-extractor] Source map segment without a source crashes SourceMapper with "Target is a folder, not a file"

1 participant