Skip to content

perf: reduce bundle size - #31

Merged
colinaaa merged 2 commits into
mainfrom
feat/optimize-bundle-size
Mar 29, 2026
Merged

colinaaa merged 2 commits into
mainfrom
feat/optimize-bundle-size

Conversation

@colinaaa

Copy link
Copy Markdown
Collaborator

Summary

This PR optimizes the overall bundle size of the plugin by eliminating the hefty marked and marked-terminal dependencies, resolving issue #17.

  • Replaced markdown rendering dependencies with lightweight native terminal formatting using picocolors and Regular Expressions.
  • Substantially reduced the overall output size from ~3.16 MB down to ~410 kB (~87% reduction).
  • Preserved existing formatting quality. All snapshots and internal test cases pass without any issues.

Fixes #17

Removed `marked` and `marked-terminal` to drastically reduce bundle size. Implemented a simple terminal markdown formatter since the problem descriptions are straightforward.
@colinaaa
colinaaa merged commit 9a7cbe9 into main Mar 29, 2026
3 checks passed
@colinaaa
colinaaa deleted the feat/optimize-bundle-size branch March 29, 2026 07:25
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.

Reduce bundle size of the plugin

1 participant