Skip to content

Commit

Permalink
chore: Remove extendDefaultPlugins because it is deprecated
Browse files Browse the repository at this point in the history
extendDefaultPlugin is deprecated and it cause warnings during the build, instead we can use `default-preset` as it is mentioned in this link [https://github.com/svg/svgo/pull/1513](https://github.com/svg/svgo/pull/1513)
  • Loading branch information
ali4zimi authored Jul 4, 2023
1 parent aaece1d commit 16daf8a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ const defaultPlugins = [
];

const svgo = {
plugins: extendDefaultPlugins([
{
name: 'removeViewBox',
active: false,
name: 'preset-default',
params: {
overrides: {
removeViewBox: false,
},
]),
},
};

function presets() {
Expand Down

0 comments on commit 16daf8a

Please sign in to comment.