Skip to content

Commit

Permalink
Fix to what location generated source maps are pointing in case of co…
Browse files Browse the repository at this point in the history
…mposed styles (#1653)
  • Loading branch information
Andarist authored Nov 26, 2019
1 parent 3b9cb9e commit 5c55fd1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changeset/lazy-elephants-stare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@emotion/core': patch
'@emotion/serialize': patch
---

Fix to what location generated source maps are pointing in case of composed styles.
2 changes: 1 addition & 1 deletion packages/serialize/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ let labelPattern = /label:\s*([^\s;\n{]+)\s*;/g

let sourceMapPattern
if (process.env.NODE_ENV !== 'production') {
sourceMapPattern = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//
sourceMapPattern = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g
}

// this is the cursor for keyframes
Expand Down

0 comments on commit 5c55fd1

Please sign in to comment.