Open
Description
Right now you cannot use this package out of the box in a common place React app (e.g. Vite), due to the way SVGs are bundled.
We should make the distribution package simple build and ship actual components, rather than requiring a specialized loader that understands svg etc.
Current error:
✘ [ERROR] No loader is configured for ".svg" files: ../../node_modules/.pnpm/platformicons@7.0.4_react@18.3.1/node_modules/platformicons/svg_80x80/tauri.svg
../../node_modules/.pnpm/platformicons@7.0.4_react@18.3.1/node_modules/platformicons/esmbuild/preload.js:10:74:
10 │ ...map((icon) => require(`../${f === "lg" ? "svg_80x80" : "svg"}/${icon}.svg`)))
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Metadata
Metadata
Assignees
Labels
No labels