svelte-preprocess for civet (WIP)
pnpm i -D svlete-civet @danielx/civet
// svelte.config.js
const config = {
...
preprocess: [civet(), ...],
...
}
<!-- ...svelte -->
<script lang="civet">
...
</script>
<script lang="civet">
let hello: string = "hel" |> & + "lo";
$: hello2 = hello + hello;
</script>
<h1>{hello}</h1>
<h1>{hello2}</h1>