wwwtyro / candygraph

Fast by default, flexible 2D plotting library.
Other
435 stars 11 forks source link

Library is not tree shakeable #14

Closed flekschas closed 3 years ago

flekschas commented 3 years ago

I noticed that Candygraphs class inheritance approach makes tree shaking not possible. In other words, all primitives are bundled irrespective of which are actually used by the consumer. This is a bit of a bummer as it leads to a larger than necessary the bundle size, which is currently around ~100KB minified and gzipped.

Are you open to address this in the future? I am happy to take a stab at it!

flekschas commented 3 years ago

Addressed via #15