@commercetools-frontend/mc-scripts 20.12.3 → 20.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -201,15 +201,16 @@ module.exports = function createWebpackConfigForDevelopment(options = {}) {
201
201
  }, {
202
202
  loader: require.resolve('@svgr/webpack'),
203
203
  options: {
204
- // NOTE: disable this and manually add `removeViewBox: false` in the SVGO plugins list
205
- // See related PR: https://github.com/smooth-code/svgr/pull/137
206
204
  icon: false,
207
205
  svgoConfig: {
208
206
  plugins: [{
209
- removeViewBox: false
210
- }, // Keeps ID's of svgs so they can be targeted with CSS
211
- {
212
- cleanupIDs: false
207
+ // https://github.com/svg/svgo#default-preset
208
+ name: 'preset-default',
209
+ params: {
210
+ overrides: {
211
+ removeViewBox: false
212
+ }
213
+ }
213
214
  }]
214
215
  }
215
216
  }
@@ -223,15 +223,16 @@ module.exports = function createWebpackConfigForProduction(options = {}) {
223
223
  }, {
224
224
  loader: require.resolve('@svgr/webpack'),
225
225
  options: {
226
- // NOTE: disable this and manually add `removeViewBox: false` in the SVGO plugins list
227
- // See related PR: https://github.com/smooth-code/svgr/pull/137
228
226
  icon: false,
229
227
  svgoConfig: {
230
228
  plugins: [{
231
- removeViewBox: false
232
- }, // Keeps ID's of svgs so they can be targeted with CSS
233
- {
234
- cleanupIDs: false
229
+ // https://github.com/svg/svgo#default-preset
230
+ name: 'preset-default',
231
+ params: {
232
+ overrides: {
233
+ removeViewBox: false
234
+ }
235
+ }
235
236
  }]
236
237
  }
237
238
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercetools-frontend/mc-scripts",
3
- "version": "20.12.3",
3
+ "version": "20.13.0",
4
4
  "description": "Configuration and scripts for developing a MC application",
5
5
  "bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
6
6
  "repository": {
@@ -34,7 +34,7 @@
34
34
  "@commercetools-frontend/mc-dev-authentication": "20.10.6",
35
35
  "@commercetools-frontend/mc-html-template": "20.12.3",
36
36
  "@pmmmwh/react-refresh-webpack-plugin": "0.5.3",
37
- "@svgr/webpack": "5.5.0",
37
+ "@svgr/webpack": "6.2.0",
38
38
  "autoprefixer": "10.4.0",
39
39
  "babel-loader": "8.2.3",
40
40
  "browserslist": "4.19.1",
@@ -60,7 +60,7 @@
60
60
  "react-dev-utils": "11.0.4",
61
61
  "react-refresh": "0.11.0",
62
62
  "serve-handler": "6.1.3",
63
- "shelljs": "0.8.4",
63
+ "shelljs": "0.8.5",
64
64
  "style-loader": "3.3.1",
65
65
  "svg-url-loader": "7.1.1",
66
66
  "terser-webpack-plugin": "5.3.0",