From 16daf8a11f578e10595a8d177d7aaa221be4cb70 Mon Sep 17 00:00:00 2001 From: Ali Azimi Date: Tue, 4 Jul 2023 03:41:55 +0200 Subject: [PATCH] chore: Remove extendDefaultPlugins because it is deprecated 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) --- babel.config.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/babel.config.js b/babel.config.js index 559439c684b7..6aa3eed9abcf 100644 --- a/babel.config.js +++ b/babel.config.js @@ -28,12 +28,12 @@ const defaultPlugins = [ ]; const svgo = { - plugins: extendDefaultPlugins([ - { - name: 'removeViewBox', - active: false, + name: 'preset-default', + params: { + overrides: { + removeViewBox: false, }, - ]), + }, }; function presets() {