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

uses light prism and manually selects syntax highlighters #1

Open
wants to merge 1 commit into
base: feat/rspack
Choose a base branch
from

Conversation

elliotBraem
Copy link

In order to reduce bundle size of near-bos-webcomponent , we manually select the syntax highlighters to use.

It uses:

javascript
typescript
jsx
bash
css
json
rust

from the full list here: https://github.com/react-syntax-highlighter/react-syntax-highlighter/blob/master/AVAILABLE_LANGUAGES_PRISM.MD

This has no outcome on the near-social-vm bundle, although converting to an ESM module may make this effort unnecessary (tree shaking will be handled correctly)

@elliotBraem elliotBraem changed the base branch from master to feat/rspack August 2, 2024 00:21
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.

1 participant