One of the many reasons custom elements are a pain in the neck is that it's often rather ambiguous what's supposed to be an attribute and what's supposed to be a property. Some custom elements ...
<script> import "my-lib/my-el" // import a native Custom Element definition (not made with Svelte) let foo = [1, 2, 3] </script> <my-el foo={foo} /> is resulting in the array getting stringified and ...