antfu-collective / icones

⚡️ Icon Explorer with Instant searching, powered by Iconify
https://icones.js.org
MIT License
4.97k stars 242 forks source link

Svelte output should be plain HTML, not JSX #143

Closed dylanbr0wn closed 11 months ago

dylanbr0wn commented 1 year ago

Describe the bug

Svelte 3 templating syntax is plain HTML, whereas the Svelte icon output is JSX.

Willing to submit a PR to just clean SVG and skip JSX conversion.

Reproduction

https://svelte.dev/repl/dc2dcdfc6c2040ffa3bef8da3bd13ae2?version=3.58.0

System Info

System:
    OS: macOS 13.4
    CPU: (8) arm64 Apple M1
    Memory: 98.72 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.12.0 - ~/.volta/tools/image/node/18.12.0/bin/node
    Yarn: 1.22.19 - ~/.volta/tools/image/yarn/1.22.19/bin/yarn
    npm: 8.19.2 - ~/.volta/tools/image/node/18.12.0/bin/npm
  Browsers:
    Firefox: 109.0.1
    Safari: 16.5

Used Package Manager

pnpm

Validations

5ubh4d45 commented 11 months ago

This issue is still not resolved. I have a solution ready with correct svelte output which inherits props to change attributes dynamically. I could create a PR if its not being worked on.