Skip to content

Commit

Permalink
Replace dependency css-parse with css (#2554)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjoezhang committed Sep 1, 2021
1 parent 7334567 commit fe5bde1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 42 deletions.
2 changes: 1 addition & 1 deletion lib/convert/css.js
Expand Up @@ -24,7 +24,7 @@ module.exports = function(css){
*/

function Converter(css) {
var parse = require('css-parse');
var { parse } = require('css');
this.css = css;
this.root = parse(css, { position: false });
this.indents = 0;
Expand Down
53 changes: 13 additions & 40 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -29,7 +29,7 @@
"test-cov": "mocha test/ test/middleware/ --require chai --bail --reporter html-cov > coverage.html"
},
"dependencies": {
"css-parse": "~2.0.0",
"css": "^3.0.0",
"debug": "~3.1.0",
"glob": "^7.1.6",
"mkdirp": "~1.0.4",
Expand Down

0 comments on commit fe5bde1

Please sign in to comment.