livebud / bud

The Full-Stack Web Framework for Go
MIT License
5.57k stars 180 forks source link

How to integrate svelte libraries into bud #351

Open djumpen opened 1 year ago

djumpen commented 1 year ago

Hello, is there any docs about how can I use modules like sveltestrap/smelte/etc inside bud app? All I do is

<script>
    import Button from '@smui/button';
</script>

<Button>Click me</Button>

and getting errors view: open error error=budhttp: open returned unexpected 500. budfs: open "bud/node_modules/@smui/button". ✘ [ERROR] No loader is configured for ".svelte" files: node_modules/@smui/button/dist/Button.svelte

What additional configuration should I apply to make this?

Thank you!

matthewmueller commented 1 year ago

Hey Dima! That's similar to this discussion: https://github.com/livebud/bud/discussions/99

That's something I'd like to fix soon. Happy to accept any PRs in the meantime!