bherbruck / svelte-echarts

Apache ECharts wrapper for Svelte
https://bherbruck.github.io/svelte-echarts/
MIT License
91 stars 6 forks source link

Not sure how to implement the "Tree-shakeable" feature to reduce loading time #24

Closed MuslemRahimi closed 3 months ago

MuslemRahimi commented 4 months ago

Hi bherbruck,

I wanted to ask you if you can help me out how to implement the tree shakeable feature that you have implemented.

E.g. in my sveltekit component https://github.com/stocknear/frontend/blob/main/src/lib/components/DarkPool.svelte I plot a graph, where I want to import only files that are absolutely necessary to reduce loading time for the end user.

bherbruck commented 3 months ago

It looks like you're already doing it. Are you having an issue with your linked component?

MuslemRahimi commented 3 months ago

Sorry I resolved this issue myself. Thank you for the awesome library