0.0.4 • Published 9 months ago

svelte-preprocess-cljs v0.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
9 months ago

ClojureScript preprocessor for Svelte using Squint

Counter.svelte

<script lang="cljs">
  (def counter 0)

  (defn increment []
    (set! counter (inc counter)))
</script>

<button on:click={increment}>
  count is {counter}
</button>

Install

npm install -D svelte-preprocess-cljs

add to svelte.config.js

import { vitePreprocess } from "@sveltejs/vite-plugin-svelte";
import { cljsPreprocess } from "svelte-preprocess-squint";

export default {
  preprocess: [cljsPreprocess(), vitePreprocess()],
};
0.0.4

9 months ago

0.0.3

9 months ago

0.0.2

9 months ago

0.0.1

9 months ago