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

Codesplitting and plotly #8

Open
runar-rkmedia opened this issue Nov 7, 2021 · 0 comments
Open

Codesplitting and plotly #8

runar-rkmedia opened this issue Nov 7, 2021 · 0 comments

Comments

@runar-rkmedia
Copy link
Owner

Plotly was chosen because of its ease of use, and that it works great. However, it is HUGE!

So lets code-split, right?

I had a slash at that now with Svelte and it seems to work. However, now it flickers a lot when the chart-component is receiving props. Probably because it recreates the whole import, in addition to the async-importer. Now, this could probably be solved.

However, it is apparant that Plotly at the moment does not tree-shake. I have not checked yet if they support tree-shaking at all, but I guess its should work if we make the import-paths more specific.

Also, the code-module with yaml-support is a bit big. Maybe we should go for a different yaml-library? Or why bother, we already have toml and json, so yaml is kind of redundant.

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

1 participant