0.0.4 • Published 2 years ago

svelte-preprocess-cljs v0.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years 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

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago