-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrating Svelte? #351
Comments
Sounds like a great idea! Perhaps we can mimic svelte-add/coffeescript? Or is svelte-add still active / the right approach? Let us know if you'd like to work on this; it doesn't look too difficult. |
We'll need to add support for |
Looking at Svelte's TypeScript support, the transpilation may be possible now with our existing Vite plugin which should also work as a Rollup plugin. But obviously this needs testing. |
Not sure if it is the right approach. But I can experiment with mimicing the svelte-add coffeescript and see what happens. |
Great! Feel free to suggest a better approach as well if you find one. FYI, we've added support for |
There is a bit learning curve here. My WIP version: |
Update: BTW, the |
@levitabris Have you taken a look at our new Rollup and Vite plugins? https://github.com/DanielXMoore/Civet/tree/main/integration/unplugin/examples please try them out and let us know if you have any questions or encounter any errors, thanks! |
Svelte is gaining popularity among people who appreciate simplicity and easy composability. Since its functionality is not based on a js import, would you consider making Civet compatible with .svelte components?
I would recommend a syntax like the following:
<script lang="civet"> 'hello world!' |> console.log </script>
The text was updated successfully, but these errors were encountered: