-
Notifications
You must be signed in to change notification settings - Fork 69
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 critically high #35
Comments
Hmm.... one possible way is to import only the few necessary highlighting language plugins. If the users need other highlighting language, they can import more highlighting language plugins by themselves, I will give it a try in this way. Does this way work for you? |
I dont even have highlighting turned on. Are language highlighting plugins always imported ? even with highlighting turned off ? that would explain 🤔 |
I apologize for ignoring this issue before. Yes, at the time, all language highlighting plugins would be loaded by default, which resulted in a large bundle size. In the new version, I have improved this by only supporting a limited number of commonly used languages by default, and users can import as needed, which should make their bundles lighter. |
heya :) no worries You can close this issue i think 👍 |
ok. Have a great day! |
Hey, I've been using the package with great success, but I ran into a slight concern.
I isolated the component down to lazy loading it by doing something like :
But when building and minifying the app, Rollup and Vite still complain about minified chunk for the
v-code-diff
code to be over 1000KB.Is there a possibility to reduce the component size ?
Thanks a lot!
The text was updated successfully, but these errors were encountered: