From f06956efd2dc4bf77244a9fcce2b883a00b925af Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Thu, 21 Dec 2023 22:46:53 +0800 Subject: updated node modules --- node_modules/svgo/plugins/removeEmptyContainers.js | 3 +++ 1 file changed, 3 insertions(+) (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 d803fc9c..bff3ab9c 100644 --- a/node_modules/svgo/plugins/removeEmptyContainers.js +++ b/node_modules/svgo/plugins/removeEmptyContainers.js @@ -49,6 +49,9 @@ exports.fn = () => { if (node.name === 'mask' && node.attributes.id != null) { return; } + if (parentNode.type === 'element' && parentNode.name === 'switch') { + return; + } detachNodeFromParent(node, parentNode); }, }, -- cgit v1.2.3