Skip to content

Conversation

@dsmith3197
Copy link

The TypeScript compiler produces empty source map files for source files containing only type definitions.

This PR adds a WithSkipEmptySourceMaps parser option that ignores the empty source map error produced here.

@dop251
Copy link
Owner

dop251 commented Oct 14, 2025

I think the behaviour should be to simply ignore missing or invalid source maps. This will match nodejs and browsers.

@dsmith3197
Copy link
Author

I think the behaviour should be to simply ignore missing or invalid source maps. This will match nodejs and browsers.

Are you suggesting that we remove the option altogether and always ignore empty/invalid source maps? Or are you saying that when the option is enabled, we should ignore all errors when parsing the source map?

@dop251
Copy link
Owner

dop251 commented Oct 15, 2025

The former. Both nodejs and the browsers seem to behave this way.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants