Skip to content

fix: null is invalid for sources and file#242

Merged
antfu merged 1 commit into
Rich-Harris:masterfrom
bmeurer:fix/sources
Feb 18, 2023
Merged

fix: null is invalid for sources and file#242
antfu merged 1 commit into
Rich-Harris:masterfrom
bmeurer:fix/sources

Conversation

@bmeurer

@bmeurer bmeurer commented Feb 17, 2023

Copy link
Copy Markdown
Contributor

This fixes generateDecodedMap() to avoid putting null into the sources array (which is supposed to contain only strings), and also don't assign null to the file field (which can be either a string or absent - indicated by undefined).

This fixes `generateDecodedMap()` to avoid putting `null` into the
`sources` array (which is supposed to contain only strings), and
also don't assign `null` to the `file` field (which can be either
a string or absent - indicated by `undefined`).
@antfu antfu requested a review from Rich-Harris February 18, 2023 09:58
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.

3 participants