File tree Expand file tree Collapse file tree 3 files changed +50
-0
lines changed Expand file tree Collapse file tree 3 files changed +50
-0
lines changed Original file line number Diff line number Diff line change @@ -11,17 +11,35 @@ Source code:
11
11
border: \${'solid'} 10px;
12
12
\`
13
13
14
+ styled.div\`
15
+ border: \${'solid'}// comment here
16
+ 10px;
17
+ border: solid// comment here
18
+ 10px;
19
+ \`
20
+
21
+ styled.div\`
22
+ border: \${'solid'}/* comment here
23
+ */10px;
24
+ border: \${'solid'}/* comment here
25
+ */ 10px;
26
+ \`
27
+
14
28
15
29
TypeScript before transform:
16
30
17
31
declare const styled: any;
18
32
export const A = styled.div \`\\n border: \${"solid"} 10px;\\n\`;
33
+ styled.div \`\\n border: \${"solid"}// comment here\\n10px;\\n border: solid// comment here\\n10px;\\n\`;
34
+ styled.div \`\\n border: \${"solid"}/* comment here\\n*/10px;\\n border: \${"solid"}/* comment here\\n*/ 10px;\\n\`;
19
35
20
36
21
37
TypeScript after transform:
22
38
23
39
declare const styled: any;
24
40
export const A = styled.div \`border:\${'solid'} 10px;\`;
41
+ styled.div \`border:\${'solid'}10px;border:solid10px;\`;
42
+ styled.div \`border:\${'solid'} 10px;border:\${'solid'} 10px;\`;
25
43
26
44
27
45
Original file line number Diff line number Diff line change @@ -11,17 +11,35 @@ Source code:
11
11
border: \${'solid'} 10px;
12
12
\`
13
13
14
+ styled.div\`
15
+ border: \${'solid'}// comment here
16
+ 10px;
17
+ border: solid// comment here
18
+ 10px;
19
+ \`
20
+
21
+ styled.div\`
22
+ border: \${'solid'}/* comment here
23
+ */10px;
24
+ border: \${'solid'}/* comment here
25
+ */ 10px;
26
+ \`
27
+
14
28
15
29
TypeScript before transform:
16
30
17
31
declare const styled: any;
18
32
export const A = styled.div \`\\n border: \${"solid"} 10px;\\n\`;
33
+ styled.div \`\\n border: \${"solid"}// comment here\\n10px;\\n border: solid// comment here\\n10px;\\n\`;
34
+ styled.div \`\\n border: \${"solid"}/* comment here\\n*/10px;\\n border: \${"solid"}/* comment here\\n*/ 10px;\\n\`;
19
35
20
36
21
37
TypeScript after transform:
22
38
23
39
declare const styled: any;
24
40
export const A = styled.div.withConfig({ displayName: "A" }) \`border:\${'solid'} 10px;\`;
41
+ styled.div \`border:\${'solid'}10px;border:solid10px;\`;
42
+ styled.div \`border:\${'solid'} 10px;border:\${'solid'} 10px;\`;
25
43
26
44
27
45
Original file line number Diff line number Diff line change @@ -3,3 +3,17 @@ declare const styled: any;
3
3
export const A = styled . div `
4
4
border: ${ 'solid' } 10px;
5
5
`
6
+
7
+ styled . div `
8
+ border: ${ 'solid' } // comment here
9
+ 10px;
10
+ border: solid// comment here
11
+ 10px;
12
+ `
13
+
14
+ styled . div `
15
+ border: ${ 'solid' } /* comment here
16
+ */10px;
17
+ border: ${ 'solid' } /* comment here
18
+ */ 10px;
19
+ `
You can’t perform that action at this time.
0 commit comments