first commit

This commit is contained in:
becarta
2025-05-16 00:17:42 +02:00
parent ea5c866137
commit bacf566ec9
6020 changed files with 1715262 additions and 0 deletions

28
node_modules/css-tree/lib/convertor/create.js generated vendored Normal file
View File

@@ -0,0 +1,28 @@
import { List } from '../utils/List.js';
export function createConvertor(walk) {
return {
fromPlainObject(ast) {
walk(ast, {
enter(node) {
if (node.children && node.children instanceof List === false) {
node.children = new List().fromArray(node.children);
}
}
});
return ast;
},
toPlainObject(ast) {
walk(ast, {
leave(node) {
if (node.children && node.children instanceof List) {
node.children = node.children.toArray();
}
}
});
return ast;
}
};
};

4
node_modules/css-tree/lib/convertor/index.js generated vendored Normal file
View File

@@ -0,0 +1,4 @@
import { createConvertor } from './create.js';
import walker from '../walker/index.js';
export default createConvertor(walker);