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

🐛 Bug: Package size is a whopping 1.2MB #573

Closed
3 tasks done
JoshuaKGoldberg opened this issue Nov 24, 2024 · 0 comments · Fixed by #576 or #593
Closed
3 tasks done

🐛 Bug: Package size is a whopping 1.2MB #573

JoshuaKGoldberg opened this issue Nov 24, 2024 · 0 comments · Fixed by #576 or #593
Assignees
Labels
status: accepting prs Please, send a pull request to resolve this! 🙏 type: bug Something isn't working :( 🐛

Comments

@JoshuaKGoldberg
Copy link
Owner

Bug Report Checklist

  • I have tried restarting my IDE and the issue persists.
  • I have pulled the latest main branch of the repository.
  • I have searched for related issues and found none that matched my issue.

Expected

This package is mostly a collection of small functions and the occasional larger piece of analysis. It shouldn't be very large in output bundles.

Per https://pkg-size.dev/tsutils?no-peers, the predecessor tsutils was only 382KB in total.

Actual

Per https://pkg-size.dev/ts-api-utils?no-peers, it's 1.2MB. 😬

Additional Info

This was prompted by @ArnaudBarre noting in ArnaudBarre/eslint-plugin-react-refresh#62 (comment) a desire to have nicely typed rule options for a plugin without many megabytes of added dependencies. Thanks for the prod @ArnaudBarre!

💖

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: accepting prs Please, send a pull request to resolve this! 🙏 type: bug Something isn't working :( 🐛
Projects
None yet
2 participants