feat: init

This commit is contained in:
2026-02-13 22:02:30 +01:00
commit 8f9ff830fb
16711 changed files with 3307340 additions and 0 deletions

29
node_modules/svgo/plugins/removeEmptyAttrs.js generated vendored Normal file
View File

@@ -0,0 +1,29 @@
import { attrsGroups } from './_collections.js';
export const name = 'removeEmptyAttrs';
export const description = 'removes empty attributes';
/**
* Remove attributes with empty values.
*
* @author Kir Belevich
*
* @type {import('../lib/types.js').Plugin}
*/
export const fn = () => {
return {
element: {
enter: (node) => {
for (const [name, value] of Object.entries(node.attributes)) {
if (
value === '' &&
// empty conditional processing attributes prevents elements from rendering
!attrsGroups.conditionalProcessing.has(name)
) {
delete node.attributes[name];
}
}
},
},
};
};