Closed douglasg14b closed 4 years ago
Does the author of this bundle have any idea to make it smaller? The graph below is my analysis result:
I guess MAYBE there is a strong relevance between this situation of large size and syntax highlighting. At markdown-it's official demo, the size of markdown-it.js
is simply 69.5k. The highlight style looks like:
After switching to
markdown-it-vue
, it looks like:
With some other bundle and plugins, my App becomes a huge package and need to transfer more than 3.2MB data. It is really annoying.
What if detach this bundle into some pieces and allow users to import them? I found that you import a lot. Just a suggestion. I am not pro on js
and from-end.
im following this
I had the same problem, bundle size up to 5MB, non-viable.
After removing flowchart
, echarts
and mermaid
, the size of this bundle becomes more acceptable after gzipped. I forked this proj. It becomes useful upon my personal development.
Thanks for the advice! It seems It's the only solution. 🤔
In my case I just rewrote it for our project.
I has reduce the boudle size, see #24
and mardown-it-vue-light is avaliable.
The bundle size of markdown-it-vue is enormous at 5MB. In our web app markdown-it-vue makes up more than 60% of it's total size. And that's with a couple of already heavy libraries.