I have struggled to setup phoenix liveview project with svelte and typescript, tailwind.
Most steps are not very difficult but it was difficult to how to properly load svelte component properly. Some of suggestions I found on elixir forum was not working with different situation. So I created a hook to load svelte component properly and it might work to other frontend library such as react or vue.js.
I’m not sure somebody already solved this issue but it might be good starting point for someone who don’t understand yet. You can find Phovelte in github.
It works so far in my use case, but still need to figure out how to change props dynamically from phoenix liveview. Please leave a comment if there’s better way.
Thanks for reading.