You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the default export for preset imports is ImageSource[]. This allows presets to define additional source tags, with different formats, conditional widths and densities, etc.
For presets that define a single ImageSource that only contains srcsets, it would be convenient for the default export to be a string.
That would make it work out of the box in img and source tags in HTML and Vue SFCs, where src and srcset are already extracted as imports.
The text was updated successfully, but these errors were encountered:
Description 📖
Currently the default export for preset imports is
ImageSource[]
. This allows presets to define additionalsource
tags, with different formats, conditional widths and densities, etc.For presets that define a single
ImageSource
that only containssrcsets
, it would be convenient for the default export to be astring
.That would make it work out of the box in
img
andsource
tags in HTML and Vue SFCs, wheresrc
andsrcset
are already extracted as imports.The text was updated successfully, but these errors were encountered: