parcel icon indicating copy to clipboard operation
parcel copied to clipboard

Fix svgo option HTMLNanoOptimizer.js

Open monte-monte opened this issue 1 year ago • 0 comments

Fix cleanupIDs to cleanupIds according to https://github.com/svg/svgo/releases/tag/v3.0.0

Without this fix parcel build throws a warning:

You are trying to configure cleanupIDs which is not part of preset-default.
Try to put it before or after, for example

plugins: [
  {
    name: 'preset-default',
  },
  'cleanupIDs'
]

And "cleanupIDs": false is ignored resulting in clearing IDs from SVG tags.

The bug was also mentioned in this issue: https://github.com/parcel-bundler/parcel/issues/9171

monte-monte avatar Aug 30 '24 21:08 monte-monte