Skip to content

Fix bug when invalid JSON passed as source map#1195

Merged
jakubpawlowicz merged 2 commits into
clean-css:masterfrom
shpingalet007:bugfix-empty-json
Jan 25, 2022
Merged

Fix bug when invalid JSON passed as source map#1195
jakubpawlowicz merged 2 commits into
clean-css:masterfrom
shpingalet007:bugfix-empty-json

Conversation

@shpingalet007

@shpingalet007 shpingalet007 commented Jan 22, 2022

Copy link
Copy Markdown
Contributor

Fix the #1194 issue when the source map file for some reason can be empty. In this case handle this situation to avoid JSON.parse() an empty string.

@jakubpawlowicz

Copy link
Copy Markdown
Collaborator

Thanks @shpingalet007 for fixing this issue, let me merge it and release as a bugfix later today.

@jakubpawlowicz jakubpawlowicz merged commit 65d8560 into clean-css:master Jan 25, 2022
jakubpawlowicz pushed a commit that referenced this pull request Jan 26, 2022
* Handling empty source-maps
* Test files created
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