-
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
packages/styled-jsx/transform/tests/fixture/next-65066/output.lightningcss.js
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,27 @@ | ||
import _JSXStyle from "styled-jsx/style"; | ||
import React from "react"; | ||
// This should error with https://nextjs.org/docs/messages/nested-styled-jsx-tags | ||
// but instead it crashes SWC. | ||
export default function Home() { | ||
return <div className={"jsx-915beb22be3340e9"}> | ||
|
||
<div className={"jsx-915beb22be3340e9"}> | ||
|
||
<div className={"jsx-915beb22be3340e9" + " " + "text animated"}>Text</div> | ||
|
||
|
||
|
||
<_JSXStyle id={"915beb22be3340e9"}>{".text.jsx-915beb22be3340e9:hover{color:#ff0!important}"}</_JSXStyle> | ||
|
||
</div> | ||
|
||
|
||
|
||
<style jsx>{` | ||
.text:hover { | ||
color: yellow !important; | ||
} | ||
`}</style> | ||
|
||
</div>; | ||
} |
12 changes: 12 additions & 0 deletions
12
packages/styled-jsx/transform/tests/fixture/next-65066/output.lightningcss.stderr
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,12 @@ | ||
|
||
x Detected nested styled-jsx tag. | ||
| Read more: https://nextjs.org/docs/messages/nested-styled-jsx-tags | ||
,-[input.js:21:1] | ||
21 | | ||
22 | ,-> <style jsx>{` | ||
23 | | .text:hover { | ||
24 | | color: yellow !important; | ||
25 | | } | ||
26 | `-> `}</style> | ||
27 | </div> | ||
`---- |
27 changes: 27 additions & 0 deletions
27
packages/styled-jsx/transform/tests/fixture/next-65066/output.swc.js
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,27 @@ | ||
import _JSXStyle from "styled-jsx/style"; | ||
import React from "react"; | ||
// This should error with https://nextjs.org/docs/messages/nested-styled-jsx-tags | ||
// but instead it crashes SWC. | ||
export default function Home() { | ||
return <div className={"jsx-915beb22be3340e9"}> | ||
|
||
<div className={"jsx-915beb22be3340e9"}> | ||
|
||
<div className={"jsx-915beb22be3340e9" + " " + "text animated"}>Text</div> | ||
|
||
|
||
|
||
<_JSXStyle id={"915beb22be3340e9"}>{".text.jsx-915beb22be3340e9:hover{color:#ff0!important}"}</_JSXStyle> | ||
|
||
</div> | ||
|
||
|
||
|
||
<style jsx>{` | ||
.text:hover { | ||
color: yellow !important; | ||
} | ||
`}</style> | ||
|
||
</div>; | ||
} |
12 changes: 12 additions & 0 deletions
12
packages/styled-jsx/transform/tests/fixture/next-65066/output.swc.stderr
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,12 @@ | ||
|
||
x Detected nested styled-jsx tag. | ||
| Read more: https://nextjs.org/docs/messages/nested-styled-jsx-tags | ||
,-[input.js:21:1] | ||
21 | | ||
22 | ,-> <style jsx>{` | ||
23 | | .text:hover { | ||
24 | | color: yellow !important; | ||
25 | | } | ||
26 | `-> `}</style> | ||
27 | </div> | ||
`---- |