cometkim / unicode-segmenter

A lightweight and fast, pure JavaScript library for Unicode segmentation
MIT License
37 stars 0 forks source link

Reduce production bundle size #11

Closed cometkim closed 3 months ago

cometkim commented 3 months ago

Previously I did unescape "\u{1F680}" to "🚀" in the Unicode table.

Since extra characters are required to escape, it reduces the output size.

However, escape sequences compress better. So leaving the build output as is makes more sense for production.

codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (01443f9) to head (17f6709). Report is 2 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #11 +/- ## =========================================== + Coverage 99.85% 100.00% +0.14% =========================================== Files 7 7 Lines 1339 1341 +2 =========================================== + Hits 1337 1341 +4 + Misses 2 0 -2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.