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

Bundle size is massive #18

Closed
douglasg14b opened this issue Jan 31, 2020 · 9 comments
Closed

Bundle size is massive #18

douglasg14b opened this issue Jan 31, 2020 · 9 comments

Comments

@douglasg14b
Copy link

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.

@wxk6b1203
Copy link

Does the author of this bundle have any idea to make it smaller? The graph below is my analysis result:
image

@wxk6b1203
Copy link

wxk6b1203 commented Feb 15, 2020

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:
image
After switching to markdown-it-vue, it looks like:
image

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.
image

@muhsalaa
Copy link

im following this

@tincho425
Copy link

I had the same problem, bundle size up to 5MB, non-viable.

@wxk6b1203
Copy link

image

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.

@tincho425
Copy link

Thanks for the advice! It seems It's the only solution. 🤔

@douglasg14b
Copy link
Author

In my case I just rewrote it for our project.

@ravenq
Copy link
Owner

ravenq commented Jun 11, 2020

I has reduce the boudle size, see #24

@ravenq
Copy link
Owner

ravenq commented Jun 11, 2020

and mardown-it-vue-light is avaliable.

@ravenq ravenq closed this as completed Jun 11, 2020
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

No branches or pull requests

5 participants