akiran / akiran/react-highlight

Reduce bundle size

未关闭
#56 6 条评论 3 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
761
派生
82
PR 合并指标
30 天内没有已合并 PR

描述

I realize that highlight.js has a very large bundle but I suggest passing an array prop to define the languages they want to import. My highlight.js currently takes up 539kb parsed size and 188kb gzipped. This is over half of my bundle and six times more than react.

![react-highlight_bundle](https://user-images.githubusercontent.com/22775484/38840869-e70d1c20-419e-11e8-904a-b2bd212ed82b.png)

I should be able to work on this in the upcoming weeks.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。