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
A bit of an obscure use case, but: I like to import some of the icons directly as raw SVG to use them directly in the code without depending on external files.
// I can import the raw SVG as a string using vite like this:importiconBoldfrom"@shoelace-style/shoelace/dist/assets/icons/type-bold.svg?raw"
What issue are you having?
A bit of an obscure use case, but: I like to import some of the icons directly as raw SVG to use them directly in the code without depending on external files.
However,
dist/assets/icons/*
ist not part of theexports
field inpackage.json
, sovite
rejects importing it. For Vite, this is intended behaviour and they won't change it.Describe the solution you'd like
I'd like to simply adjust Shoelace's
package.json
to export the icons.Describe alternatives you've considered
Right now, I am manually changing Shoelace's
package.json
, which is not great on many levels.The text was updated successfully, but these errors were encountered: