@@ -40,7 +40,7 @@ Source code:
4040
4141TypeScript before transform:
4242
43- import styled from " styled-components" ;
43+ import styled from ' styled-components' ;
4444 const Button = styled.button \`
4545 color: red;
4646 \`;
@@ -60,22 +60,22 @@ TypeScript before transform:
6060 export const SmallButton = Button.extend \`
6161 font-size: .7em;
6262 \`;
63- const MiniButton = styled(SmallButton).attrs({ size: " mini" }) \`
63+ const MiniButton = styled(SmallButton).attrs({ size: ' mini' }) \`
6464 font-size: .1em;
6565 \`;
6666
6767
6868TypeScript after transform:
6969
7070 import styled from 'styled-components';
71- const Button = styled.button.withConfig({ displayName: "test-Button", componentId: "test-1okqsxw " }) \`
71+ const Button = styled.button.withConfig({ displayName: "test-Button", componentId: "test-uezo0r " }) \`
7272 color: red;
7373 \`;
7474 declare const nonStyled: any;
7575 const NonButton = nonStyled.button \`
7676 yo
7777 \`;
78- const OtherButton = styled(Button).withConfig({ displayName: "test-OtherButton", componentId: "test-ce0fkl " }) \`
78+ const OtherButton = styled(Button).withConfig({ displayName: "test-OtherButton", componentId: "test-1x4ml5 " }) \`
7979 color: blue;
8080 \`;
8181 const SuperButton = Button.extend \`
@@ -87,7 +87,33 @@ TypeScript after transform:
8787 export const SmallButton = Button.extend \`
8888 font-size: .7em;
8989 \`;
90- const MiniButton = styled(SmallButton).attrs({ size: "mini" }).withConfig({ displayName: "test-MiniButton", componentId: "test-ndnumj" }) \`
90+ const MiniButton = styled(SmallButton).attrs({ size: 'mini' }).withConfig({ displayName: "test-MiniButton", componentId: "test-1ktoxg0" }) \`
91+ font-size: .1em;
92+ \`;
93+
94+
95+ TypeScript after transpile module:
96+
97+ import styled from 'styled-components';
98+ const Button = styled.button.withConfig({ displayName: "test-Button", componentId: "test-1nbxxpw" }) \`
99+ color: red;
100+ \`;
101+ const NonButton = nonStyled.button \`
102+ yo
103+ \`;
104+ const OtherButton = styled(Button).withConfig({ displayName: "test-OtherButton", componentId: "test-17xltiv" }) \`
105+ color: blue;
106+ \`;
107+ const SuperButton = Button.extend \`
108+ color: super;
109+ \`;
110+ export default styled.link.withConfig({ componentId: "test-ep20on" }) \`
111+ color: black;
112+ \`;
113+ export const SmallButton = Button.extend \`
114+ font-size: .7em;
115+ \`;
116+ const MiniButton = styled(SmallButton).attrs({ size: 'mini' }).withConfig({ displayName: "test-MiniButton", componentId: "test-am1bk" }) \`
91117 font-size: .1em;
92118 \`;
93119
0 commit comments