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 (emotion-js#1653)
  • Loading branch information
Andarist authored Nov 26, 2019
1 parent eb04743 commit 9a94a1a
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 9a94a1a

Please sign in to comment.