Skip to content

Conversation

@cometkim
Copy link
Owner

@cometkim cometkim commented Jan 8, 2026

GraphemeCategory enum is not used internally, but is exported as a utility for advanced use cases.

Modern bundlers could optimize (DCE) if user don't use it.

However, I noticed that it is included in the Bluesky's webpack bundle. It's a 147 bytes of dead code.

image

Maybe I need to avoid the barrel file pattern, and to make it separated API such as `unicode-segmenter/grapheme-util'?

@changeset-bot
Copy link

changeset-bot bot commented Jan 8, 2026

⚠️ No Changeset found

Latest commit: 64e0c59

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@cometkim cometkim closed this Jan 8, 2026
@codspeed-hq
Copy link

codspeed-hq bot commented Jan 8, 2026

Merging this PR will not alter performance

Summary

✅ 6 untouched benchmarks


Comparing tree-shake-categories (64e0c59) with main (4443501)

Open in CodSpeed

@codecov
Copy link

codecov bot commented Jan 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (e50d821) to head (64e0c59).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #119   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           10        11    +1     
  Lines          951       902   -49     
=========================================
- Hits           951       902   -49     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants