assetgraph / assetgraph-builder

AssetGraph-based build system for web apps and web pages.
BSD 3-Clause "New" or "Revised" License
489 stars 42 forks source link

Svgo is not a constructor #990

Closed bramstein closed 2 years ago

bramstein commented 2 years ago

The latest release generates this error when optimizing SVG images:

TypeError: Svgo is not a constructor

It looks like the same issue as the optipng one, though I haven't looked into it closely.

papandreou commented 2 years ago

It's because it only works with svgo 1.x. They completely changed the api :weary:

I've backported an update to svgo 2.x and released assetgraph 7.8.0 and assetgraph-builder 9.2.0.

bramstein commented 2 years ago

Thanks for the quick turnaround! I appreciate it. :smiley:

bramstein commented 2 years ago

Could you also publish the npm package? Thanks!

papandreou commented 2 years ago

Urgh, sorry. Should be there now 😌