Closed curran closed 2 years ago
This one, for example, has a bundle that is around 100KB. https://vizhub.com/curran/2db71d53e8a44ac5a3056638ef5cfd12?edit=files&file=bundle.js
If sourcemaps are removed, the bundle becomes 15KB.
In this example, there is more Svelte code included in the bundle, https://vizhub.com/higsch/92879bfeb9b14e2fb512f400b01bcfe6, due to use of bind:clientWidth={width}
.
The Svelte implementation in VizHub is not pulling in things from CDN using <script>
tags, but rather pulling in things from CDN and then including them in the bundle.
Alternative solutions:
<script>
tags. Not sure how hard this is, or if it's even possible. Needs investigation.
With Svelte programs, the bundle makes the viz too large to fork.