chore(deps): update dependency babel-plugin-inline-react-svg to v2 (#5040)

This commit is contained in:
renovate[bot]
2021-03-02 14:34:37 +02:00
committed by GitHub
parent 555cc14cea
commit f80307ae3f
3 changed files with 93 additions and 77 deletions

View File

@ -1,4 +1,6 @@
const path = require('path');
const { extendDefaultPlugins } = require('svgo');
const appVersion = require('./packages/netlify-cms-app/package.json').version;
const coreVersion = require('./packages/netlify-cms-core/package.json').version;
const isProduction = process.env.NODE_ENV === 'production';
@ -74,6 +76,15 @@ const defaultPlugins = [
],
];
const svgo = {
plugins: extendDefaultPlugins([
{
name: 'removeViewBox',
active: false,
},
]),
};
function presets() {
return [
'@babel/preset-react',
@ -102,9 +113,7 @@ function plugins() {
[
'inline-react-svg',
{
svgo: {
plugins: [{ removeViewBox: false }],
},
svgo,
},
],
];
@ -116,9 +125,7 @@ function plugins() {
[
'inline-react-svg',
{
svgo: {
plugins: [{ removeViewBox: false }],
},
svgo,
},
],
];