We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35ab97d commit 4cb606cCopy full SHA for 4cb606c
src/utils.js
@@ -1,5 +1,5 @@
1
import redent from 'redent'
2
-import {parse} from 'css'
+import cssParse from 'css/lib/parse'
3
import isEqual from 'lodash/isEqual'
4
5
class GenericTypeError extends Error {
@@ -100,7 +100,7 @@ class InvalidCSSError extends Error {
100
}
101
102
function parseCSS(css, ...args) {
103
- const ast = parse(`selector { ${css} }`, {silent: true}).stylesheet
+ const ast = cssParse(`selector { ${css} }`, {silent: true}).stylesheet
104
105
if (ast.parsingErrors && ast.parsingErrors.length > 0) {
106
const {reason, line} = ast.parsingErrors[0]
0 commit comments