Svelte is a very popular JS framework for developing exciting front-end applications. It can be used to create standalone apps as well as embed JS apps into your existing website. Here is how you can include a Svelte app on your Drupal website.
- Add your Svelte app folder to the module/theme folder.
- Declare the svelte JS and CSS in your libraries.yml file
- Attach the markup and library inside the render array.