styled-components: [v2] injectGlobal break @next
Im not using v2 but just tested and i see if you use minify option it break parsing.
ENV :
node v7.0.0
webpack ^2.2.1
webpack-dev-server 2.3.0
styled-components@next with babel-plugin-styled-components
Steps to reproduce
const Box = styled.div`
background-color: orange;
width: 100px;
height: 100px;
`
Actual Behavior
.app__Box-75m7jb {}.dwklpT {background-color: orange;width: 100px;height: 100px;}
i don’t know if this is bug, because i think it has to work with actual behavior !

About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 15 (3 by maintainers)
i think
injectGlobalmust be on the top of other<style>in html