summaryrefslogtreecommitdiff
path: root/node_modules/svgo/plugins/removeEmptyContainers.js
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2023-12-21 22:46:53 +0800
committerlittleblack111 <littleblack11111@gmail.com>2023-12-21 22:46:53 +0800
commitf06956efd2dc4bf77244a9fcce2b883a00b925af (patch)
tree0123cb73ce67f1f4b17e1d6cbabff076ee44e31b /node_modules/svgo/plugins/removeEmptyContainers.js
parent8d980c13970c15b6d2312b6fc4ac51698dd0d220 (diff)
updated node modules
Diffstat (limited to 'node_modules/svgo/plugins/removeEmptyContainers.js')
-rw-r--r--node_modules/svgo/plugins/removeEmptyContainers.js3
1 files changed, 3 insertions, 0 deletions
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);
},
},