chore: cleanup

This commit is contained in:
Nathan Walker
2025-07-19 01:18:12 -07:00
parent 2fb70c1f10
commit 248a85f6e0
15 changed files with 439 additions and 417 deletions

View File

@ -1,4 +1,4 @@
import { parse } from 'css-tree';
import * as cssTree from 'css-tree';
function mapSelectors(selector: string): string[] {
if (!selector) {
@ -129,7 +129,7 @@ function transformAst(node, css, type = null) {
export function cssTreeParse(css, source): any {
const errors = [];
const ast = parse(css, {
const ast = cssTree.parse(css, {
parseValue: false,
parseAtrulePrelude: false,
parseRulePrelude: false,