Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@tabler/icons-react slows down the project a lot #1281

Open
4 of 30 tasks
ExorTek opened this issue Dec 17, 2024 · 1 comment
Open
4 of 30 tasks

@tabler/icons-react slows down the project a lot #1281

ExorTek opened this issue Dec 17, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ExorTek
Copy link

ExorTek commented Dec 17, 2024

Description

I include the package and use any icon. The component with the icon is wrapped with a React.memo.

Before adding @tabler/icons-react package

image

After adding @tabler/icons-react package

image

React + Vite Project
React version: 19.0.0
Vite version: 6.0.3
Tailwindcss version: 3.4.16
Template: JavaScript + SWC

Without @tabler/icons-react
https://streamable.com/si9xog

When using @tabler/icons-react
https://streamable.com/z0k258

Package

  • @tabler/icons
  • @tabler/icons-eps
  • @tabler/icons-pdf
  • @tabler/icons-png
  • @tabler/icons-webfont
  • @tabler/icons-sprite
  • @tabler/icons-preact
  • @tabler/icons-react
  • @tabler/icons-react-native
  • @tabler/icons-solid
  • @tabler/icons-svelte
  • @tabler/icons-vue
  • Figma plugin
  • source/main
  • other/not relevant

Version

3.26.0

Browser

  • Chrome/Chromium
  • Firefox
  • Safari
  • Edge
  • iOS Safari
  • Opera
  • Other/not relevant

Operating system

  • Windows
  • Linux
  • macOS
  • ChromeOS
  • iOS
  • Android
  • Other/not relevant

Checklist

  • I have searched if someone has submitted a similar issue before and there weren't any. (Please make sure to also search closed issues, as this issue might already have been resolved.)
@ExorTek ExorTek added the bug Something isn't working label Dec 17, 2024
@obetReyes
Copy link

This is caused by exporting dynamic imports: here is a workaround #1233 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants