I now ported Reagami to CLJS so it can run on the scittle playground from source: https://babashka.org/sci.configs/?gist=568945514e5061273ee1eb26f2c699ed
Quick question - is there a scittle equivalent for squint? Does it even make sense? I’d like it to have a smaller deliverable and without the explicit compilation step.
Maybe it’s nonsense cos the only deliverables are the code files. Maybe better interop then 🤷🏻♂️
One thing I was thinking about (maybe for cljs-josh) was a vite-like thing that takes your Scittle's index.html and converts/compiles it with Squint into a smaller distributable. I am sure it would be full of gnarly edge cases but maybe fine for small things. That way you can use the Scittle fast dev process and make it small at the end.
This is where the "import strings from global" thing in Scittle could come in handy. You would use global script tags during development and then when it compiles it pulls the same thing in from node_modules.
No code changes required.
I think this would be better done with the squint compiler packaged as a scittle thing
since there will be incompatibilities
Yeah that makes sense
squintle squint
e.g. on the squint playground I could make a "eject page" thing or so. you could even just copy/paste the squint compiled code
but then there will still be imports of esm.sh libraries
that could be optimized further
maybe "eject vite project" or so would be convenient too. I don't know
it depends on what you're optimizing for
I didn’t mean to start something 🤭
The squint playground is an example of what squintle could be: https://squint-cljs.github.io/squint/ It's only a couple of lines of code to evaluate code from script tags. However, including the squint compiler isn't small probably
well maybe it's not too bad though, the playground includes codemirror which is huge
but it certainly won't be as small as it can be if you include the squint compiler. you could make a squint scittle that eventually generates the optimized page without compiler probably
Ok thanks for clarifying and glad I didn’t miss the memo lol