The settings
parameter is a string that contains a comma-separated list of settings
for configuring the svgo
plugin. These settings will be split into an array and trimmed before
being returned as an object with a plugins
property.
A function is being returned that takes in an argument settings
and returns an object of
type SvgoConfig
. The function splits the settings
string by commas and trims each option, then
maps the resulting array to an array of SvgoPluginConfig
objects. Finally, the function returns an
object with a plugins
property set to the conf
array.
The function takes in a string of settings, splits it by commas, and returns an object with the settings as an array under the "plugins" key.