Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(swc/emotion): Correct the
SPACE_AROUND_COLON
regex (#39710)
## Bug - [x] fixes #39672 - [x] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md`
- Loading branch information
1 parent
9c41634
commit 78aefee
Showing
3 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
packages/next-swc/crates/emotion/tests/fixture/issues/39672/input.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import styled from '@emotion/styled' | ||
|
||
const SelectedComponent = styled.p` | ||
color: red; | ||
&:after { | ||
content: ' | '; | ||
} | ||
` |
5 changes: 5 additions & 0 deletions
5
packages/next-swc/crates/emotion/tests/fixture/issues/39672/output.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import styled from '@emotion/styled'; | ||
const SelectedComponent = /*#__PURE__*/ styled("p", { | ||
target: "ekie5mj0", | ||
label: "SelectedComponent" | ||
})("color:red;&:after{content:' | ';}", "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQudHMiLCJzb3VyY2VzIjpbImlucHV0LnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJ1xuXG5jb25zdCBTZWxlY3RlZENvbXBvbmVudCA9IHN0eWxlZC5wYFxuICBjb2xvcjogcmVkO1xuXG4gICY6YWZ0ZXIge1xuICAgIGNvbnRlbnQ6ICcgfCAnO1xuICB9XG5gXG4iXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRTBCIn0= */"); |