File tree Expand file tree Collapse file tree 1 file changed +16
-13
lines changed Expand file tree Collapse file tree 1 file changed +16
-13
lines changed Original file line number Diff line number Diff line change 1
- /**
2
- * External dependencies
3
- */
4
- const { extendDefaultPlugins } = require ( 'svgo' ) ;
5
-
6
1
/**
7
2
* WordPress dependencies
8
3
*/
@@ -20,14 +15,18 @@ module.exports = function( api ) {
20
15
'inline-react-svg' ,
21
16
{
22
17
svgo : {
23
- plugins : extendDefaultPlugins ( [
18
+ plugins : [
24
19
{
25
- name : 'cleanupIDs ' ,
20
+ name : 'preset-default ' ,
26
21
params : {
27
- minify : false , // Prevent duplicate SVG IDs from minification.
22
+ overrides : {
23
+ cleanupIDs : {
24
+ minify : false , // Prevent duplicate SVG IDs from minification.
25
+ } ,
26
+ } ,
28
27
} ,
29
28
} ,
30
- ] ) ,
29
+ ] ,
31
30
} ,
32
31
} ,
33
32
] ,
@@ -42,14 +41,18 @@ module.exports = function( api ) {
42
41
'inline-react-svg' ,
43
42
{
44
43
svgo : {
45
- plugins : extendDefaultPlugins ( [
44
+ plugins : [
46
45
{
47
- name : 'cleanupIDs ' ,
46
+ name : 'preset-default ' ,
48
47
params : {
49
- minify : false , // Prevent duplicate SVG IDs from minification.
48
+ overrides : {
49
+ cleanupIDs : {
50
+ minify : false , // Prevent duplicate SVG IDs from minification.
51
+ } ,
52
+ } ,
50
53
} ,
51
54
} ,
52
- ] ) ,
55
+ ] ,
53
56
} ,
54
57
} ,
55
58
] ,
You can’t perform that action at this time.
0 commit comments