there is dedicated plugin on rollup for svg ang other images, you probably need to check @rollup/plugin-image and rollup-plugin-svg-import packages.
Though there is a caveat, especially for images, they will be converted into base64 so your library will be larger
Typically you shouldn't use rastor images in a ui library. To use vector images like svgs, create components for them (since svg elements are valid html & jsx elements)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
how to solve images & svgs used by each components?
I have tried some methods.but nothing done.
there is dedicated plugin on rollup for svg ang other images, you probably need to check
@rollup/plugin-image
androllup-plugin-svg-import
packages.Though there is a caveat, especially for images, they will be converted into base64 so your library will be larger
Typically you shouldn't use rastor images in a ui library. To use vector images like
svg
s, create components for them (sincesvg
elements are valid html & jsx elements)