@@ -79,6 +79,72 @@ const WithAttrsWrapped = styled(Inner).attrs({ some: \'value\' }).withConfig({
7979})\`\` ;"
8080` ;
8181
82+ exports[` fixtures should annotate css with uglify pure comments 1 ` ] = `
83+ " const Simple = /*#__PURE__*/styled.div.withConfig({
84+ displayName : \" before__Simple\"
85+ })([[\" {width:100%;}\" ]]);
86+
87+ const Nested = /* #__PURE__*/ styled .div .withConfig ({
88+ displayName: \" before__Nested\"
89+ })([[\" {width:100%;}\" ], [\" :hover{color:papayawhip;}\" ], [\" > div{background:white;}\" ]]);
90+
91+ const Interpolations = /* #__PURE__*/ styled .div .withConfig ({
92+ displayName: \" before__Interpolations\"
93+ })([[\" {width:\" , props => props.width, \" ;}\" ]]);
94+
95+ const NestedAndInterpolations = /* #__PURE__*/ styled .div .withConfig ({
96+ displayName: \" before__NestedAndInterpolations\"
97+ })([[\" {width:\" , props => props.width, \" ;}\" ], [\" :hover{color:\" , props => props.color, \" ;}\" ]]);
98+
99+ const SelectorInterpolation = /* #__PURE__*/ styled .div .withConfig ({
100+ displayName: \" before__SelectorInterpolation\"
101+ })([[\" {width:\" , props => props.width, \" ;}\" ], [\" \" , props => props.selector, \" {color:papayawhip;}\" ]]);
102+
103+ const RulesetInterpolationA = /* #__PURE__*/ styled .div .withConfig ({
104+ displayName: \" before__RulesetInterpolationA\"
105+ })([[\" {width:\" , props => props.width, \" ;\" , props => props.ruleset, \" ;}\" ], [\" :hover{color:papayawhip;}\" ]]);
106+
107+ const RulesetInterpolationB = /* #__PURE__*/ styled .div .withConfig ({
108+ displayName: \" before__RulesetInterpolationB\"
109+ })([[\" {\" , props => props.ruleset, \" ;width:\" , props => props.width, \" ;}\" ], [\" :hover{color:papayawhip;}\" ]]);
110+
111+ const Prefixes = /* #__PURE__*/ styled .div .withConfig ({
112+ displayName: \" before__Prefixes\"
113+ })([[\" {display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}\" ]]);
114+
115+ const DoubleInterpolation = /* #__PURE__*/ styled .div .withConfig ({
116+ displayName: \" before__DoubleInterpolation\"
117+ })([[\" {margin:\" , props => props.vert, \" \" , props => props.hori, \" ;}\" ]]);"
118+ ` ;
119+
120+ exports[` fixtures should annotate keyframes with uglify pure comments 1 ` ] = ` " const Animation = /*#__PURE__*/keyframes([[\" @-webkit-keyframes \" ], [\" {0%{opacity:0;}100%{opacity:1;}}@keyframes \" ], [\" {0%{opacity:0;}100%{opacity:1;}}\" ]]);" ` ;
121+
122+ exports[` fixtures should annotate styled calls with uglify pure comments 1 ` ] = `
123+ " const Test = /*#__PURE__*/styled.div.withConfig({
124+ displayName : \' Test\'
125+ })\` width:100%;\` ;
126+ const Test2 = /* #__PURE__*/ styled (\' div\' ).withConfig({
127+ displayName : \' Test2\'
128+ })\`\` ;
129+ const Test3 = true ? /* #__PURE__*/ styled .div .withConfig ({
130+ displayName: \' Test3\'
131+ })\`\` : /*#__PURE__*/styled.div.withConfig({
132+ displayName : \' Test3\'
133+ })\`\` ;
134+ const styles = { One: /* #__PURE__*/ styled .div .withConfig ({
135+ displayName: \' One\'
136+ })\`\` };
137+ let Component ;
138+ Component = /* #__PURE__*/ styled .div .withConfig ({
139+ displayName: \' Component\'
140+ })\`\` ;
141+ const WrappedComponent = /* #__PURE__*/ styled (Inner ).withConfig ({
142+ displayName: \' WrappedComponent\'
143+ })\`\` ;
144+ const notStyled = /* #__PURE__*/ styled .div (\' \' ); // not transpiled by styled components but should add pure comment
145+ const normalFunc = add (5 , 3 );"
146+ `;
147+
82148exports [` fixtures should minify css in helpers 1` ] = `
83149"import { css , keyframes } from \' styled-components\' ;
84150
0 commit comments