tabler / tabler-icons

A set of over 5500 free MIT-licensed high-quality SVG icons for you to use in your web projects.
https://tabler.io/icons
MIT License
18.03k stars 898 forks source link

Add support for Svelte 5 #1162

Closed hanszoons closed 3 months ago

hanszoons commented 3 months ago

Description

We are stuck on tabler icons version 2.4x, because of all the open Svelte issues, mostly related to tree shaking and performance..

To make matters worse, the svelte icons package currently has svelte@">=3 <5"as a peer dependency. 2.4x works fine with svelte 5 (and the non-standard imports we need to use to force them to bee tree shaking), but npm complains every step of the way.

Could you please add at least Svelte 5 support if the other issues are a less easy fix?

Package

Version

2.47

Browser

Operating system

Steps to reproduce

None

Checklist

Laurens256 commented 3 months ago

In the meantime you can fix this issue by adding the following to your package.json

    "overrides": {
        "@tabler/icons-svelte": {
            "svelte": "^5.0.0-next.1"
        }
    },

(Or replace with whatever version you're using)