From 275f9dc0bdf3e58aa36b800f55f8648fbc55d8af Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Thu, 4 Jan 2024 11:07:54 +0800 Subject: upgrade --- node_modules/svgo/plugins/removeEmptyContainers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'node_modules/svgo/plugins/removeEmptyContainers.js') diff --git a/node_modules/svgo/plugins/removeEmptyContainers.js b/node_modules/svgo/plugins/removeEmptyContainers.js index bff3ab9c..03907344 100644 --- a/node_modules/svgo/plugins/removeEmptyContainers.js +++ b/node_modules/svgo/plugins/removeEmptyContainers.js @@ -28,7 +28,7 @@ exports.fn = () => { // remove only empty non-svg containers if ( node.name === 'svg' || - elemsGroups.container.includes(node.name) === false || + !elemsGroups.container.has(node.name) || node.children.length !== 0 ) { return; -- cgit v1.2.3