File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1
1
"use strict" ;
2
2
const extract = require ( "./extract" ) ;
3
- const syntax = require ( "postcss-syntax/syntax" ) ( extract ) ;
3
+ const syntax = require ( "postcss-syntax/syntax" ) ( extract , "jsx" ) ;
4
4
5
5
module . exports = syntax ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " postcss-jsx" ,
3
- "version" : " 0.28 .0" ,
3
+ "version" : " 0.30 .0" ,
4
4
"description" : " PostCSS syntax for parsing CSS in JS literals" ,
5
5
"repository" : {
6
6
"type" : " git" ,
45
45
"@babel/parser" : " ^7.0.0-beta.49" ,
46
46
"@babel/traverse" : " ^7.0.0-beta.49" ,
47
47
"@babel/types" : " ^7.0.0-beta.49" ,
48
- "postcss-styled" : " >=0.28 .0"
48
+ "postcss-styled" : " >=0.30 .0"
49
49
},
50
50
"peerDependencies" : {
51
51
"postcss" : " >=5.0.0" ,
52
- "postcss-syntax" : " >=0.28 .0"
52
+ "postcss-syntax" : " >=0.30 .0"
53
53
},
54
54
"devDependencies" : {
55
- "autoprefixer" : " ^8.6.2 " ,
55
+ "autoprefixer" : " ^8.6.3 " ,
56
56
"chai" : " ^4.1.2" ,
57
57
"codecov" : " ^3.0.2" ,
58
58
"json5" : " ^1.0.1" ,
61
61
"postcss" : " ^6.0.22" ,
62
62
"postcss-parser-tests" : " ^6.2.1" ,
63
63
"postcss-safe-parser" : " ^3.0.1" ,
64
- "postcss-syntax" : " >=0.28 .0"
64
+ "postcss-syntax" : " >=0.30 .0"
65
65
}
66
66
}
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ describe("non-style js files", () => {
12
12
const document = syntax . parse ( code , {
13
13
from : file ,
14
14
} ) ;
15
+ expect ( document . source ) . to . haveOwnProperty ( "lang" , "jsx" ) ;
15
16
expect ( document . toString ( ) , code . toString ( ) ) ;
16
17
} ) ;
17
18
} ) ;
You can’t perform that action at this time.
0 commit comments