File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 35
35
"@types/testing-library__jest-dom" : " ^5.9.1" ,
36
36
"aria-query" : " ^5.0.0" ,
37
37
"chalk" : " ^3.0.0" ,
38
- "css" : " ^3 .0.0" ,
38
+ "@adobe/ css-tools " : " ^4 .0.0" ,
39
39
"css.escape" : " ^1.5.1" ,
40
40
"dom-accessibility-api" : " ^0.5.6" ,
41
41
"lodash" : " ^4.17.15" ,
Original file line number Diff line number Diff line change 1
1
import redent from 'redent'
2
- import cssParse from 'css/lib/parse '
2
+ import { parse } from '@adobe/ css-tools/dist/cjs/cssTools '
3
3
import isEqual from 'lodash/isEqual'
4
4
5
5
class GenericTypeError extends Error {
@@ -100,7 +100,7 @@ class InvalidCSSError extends Error {
100
100
}
101
101
102
102
function parseCSS ( css , ...args ) {
103
- const ast = cssParse ( `selector { ${ css } }` , { silent : true } ) . stylesheet
103
+ const ast = parse ( `selector { ${ css } }` , { silent : true } ) . stylesheet
104
104
105
105
if ( ast . parsingErrors && ast . parsingErrors . length > 0 ) {
106
106
const { reason, line} = ast . parsingErrors [ 0 ]
You can’t perform that action at this time.
0 commit comments