Skip to content

Conversation

@fabio-at-kumandgo
Copy link
Contributor

@fabio-at-kumandgo fabio-at-kumandgo commented May 4, 2021

This solves #981 - when toString() is used on an actual raw source map the receiving end will try to parse the string [object Object] as JSON, of course failing miserably.

By removing the toString and casting to string | RawSourceMap we handle both cases correctly, since the SourceMapConsumer is able to handle both the case where we are passing a JSON string and a raw source map object.

@dummdidumm dummdidumm merged commit b44cf29 into sveltejs:master May 5, 2021
@dummdidumm
Copy link
Member

Thanks!

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