-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to support multi-level code blocks? #3
Comments
and i try it again.. test1: const layout = styled.div`
& {
position: relative;
}
& {
footer {
height: 80px;
background: green;
}
header {
height: 45px;
background: yellow;
}
}
` comiled: .gLLKjx {
position: relative;
}
.gLLKjx header {
height: 1.2rem;
background: yellow;
}
.gLLKjx footer {
height: 80px;
background: green;
} test2: const layout = styled.div`
& {
position: relative;
}
& footer {
height: 80px;
background: green;
}
& header {
height: 45px;
background: yellow;
}
` comiled: .eTubJc {
position: relative;
}
.eTubJc header {
height: 1.2rem;
background: yellow;
}
.eTubJc footer {
height: 2.13333rem;
background: green;
} test3: const layout = styled.div`
& footer {
height: 80px;
background: green;
}
& header {
height: 45px;
background: yellow;
}
` compiled: .grceDw header {
height: 1.2rem;
background: yellow;
}
.grceDw footer {
height: 80px;
background: green;
} |
I've written a few test cases, but none of them replicate.. I still cannot reproduce it in the example: The compiled code in the snapshot works as expected. |
But these test cases use babel-plugin-styled-components-px2rem independently. This issue may arise in collaboration with other plugins. |
in the test1 case , Why is it still 80px after compilation???? Isn't this a bug? |
I fixed it!!!~
fixed
u can install npm |
Steps to reproduce
What is expected?
all code blocks are compiled.
What is actually happening?
only the last code block is compiled.
The text was updated successfully, but these errors were encountered: