File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " postcss-styled" ,
3
- "version" : " 0.32 .0" ,
3
+ "version" : " 0.33 .0" ,
4
4
"description" : " PostCSS syntax for parsing styled components" ,
5
5
"repository" : {
6
6
"type" : " git" ,
34
34
},
35
35
"peerDependencies" : {
36
36
"postcss" : " >=5.0.0" ,
37
- "postcss-syntax" : " >=0.32 .0"
37
+ "postcss-syntax" : " >=0.33 .0"
38
38
},
39
39
"devDependencies" : {
40
40
"chai" : " ^4.1.2" ,
41
41
"codecov" : " ^3.0.4" ,
42
42
"mocha" : " ^5.2.0" ,
43
43
"nyc" : " ^12.0.2" ,
44
- "postcss" : " ^7.0.1 " ,
44
+ "postcss" : " ^7.0.2 " ,
45
45
"postcss-safe-parser" : " ^4.0.1" ,
46
- "postcss-syntax" : " >=0.32 .0"
46
+ "postcss-syntax" : " >=0.33 .0"
47
47
}
48
48
}
Original file line number Diff line number Diff line change @@ -56,6 +56,16 @@ describe("styled-components", () => {
56
56
expect ( document . nodes ) . to . have . lengthOf ( 0 ) ;
57
57
} ) ;
58
58
59
+ it ( "skip @babel/traverse error" , ( ) => {
60
+ const code = "let a;let a" ;
61
+ const document = syntax . parse ( code , {
62
+ from : "traverse_error.js" ,
63
+ } ) ;
64
+ expect ( document . toString ( ) ) . to . equal ( code ) ;
65
+ expect ( document . source ) . to . haveOwnProperty ( "lang" , "jsx" ) ;
66
+ expect ( document . nodes ) . to . have . lengthOf ( 0 ) ;
67
+ } ) ;
68
+
59
69
it ( "illegal template literal" , ( ) => {
60
70
const code = [
61
71
"const styled = require(\"styled-components\");" ,
You can’t perform that action at this time.
0 commit comments