Stripping JSPDF and html2canvas dependencies #200
davidfishlock
started this conversation in
General
Replies: 1 comment 5 replies
-
@davidfishlock thanks for your comments:) I'm considering moving JsPdf to peer deps. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Firstly, thankyou for this library. The visualisations are absolutely beautiful and working wonderfully in my project.
One bugbear I have though unfortunately is the overhead of the jsPDF library and html2canvas dependency that it is also bringing in.
These result in about 560kb of output bundles when I build my project using Vite, and I am not using any PDF functionality at all.
Is anyone aware of a way to strip these dependencies from the bundled output? These unused dependencies currently represent about 10% of the size of my bundled project.
Beta Was this translation helpful? Give feedback.
All reactions