Skip to content

fix(docs): only import necessary hljs languages - #155

Merged
janhassel merged 1 commit into
carbon-design-system:mainfrom
janhassel:hljs
Aug 4, 2026
Merged

fix(docs): only import necessary hljs languages#155
janhassel merged 1 commit into
carbon-design-system:mainfrom
janhassel:hljs

Conversation

@janhassel

Copy link
Copy Markdown
Member

Only imports the actually necessary languages for highlight.js.

This reduces the size of the bundled index.js by over 86.7% (gzipped).

@janhassel
janhassel merged commit 428c761 into carbon-design-system:main Aug 4, 2026
2 checks passed
@janhassel
janhassel deleted the hljs branch August 4, 2026 08:03
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