Fork me on GitHub
#squint
<
2024-01-07
>
janezj12:01:27

Would some day be possible to compile fulcro, re/frame app with the squint? what will be different beside ability to use all new javascript artifacts? Even hypothetically code would be smaller, larger, faster?

borkdude13:01:03

squint is intended to be used for when CLJS is a bit too heavy and the majority of your code is JS interop anyway. Also if you want to publish libraries to the NPM ecosystem, squint offers lower overhead. It's not intended as a full replacement for normal CLJS

janezj13:01:14

I understand that but whenever i can't use some npm i am just looking for a goog compiler alternative. And I don't know how good js tools are now compared to goog compiler advenced mode. would the size of output be significantly different . I know it is wishful thinking ...

borkdude13:01:50

what do you mean with "can't use some npm"?

janezj13:01:55

IMHO all npms are not just usable in shadow-cljs. I tried a couple of markup npms and was not able to import them, Ok, I could be my fault. But usually i try all documented ways to require something from npm.

borkdude13:01:11

That may be a ESM vs CJS issue?

borkdude13:01:16

What kind of error did you get?

janezj13:01:38

it was ESM problem

borkdude13:01:00

in shadow-cljs you can use :target :esm

borkdude13:01:10

and then you should be able to require ESM modules

borkdude13:01:48

squint itself is built this way

janezj13:01:48

Thanks, I didn't know that

Chris McCormick10:01:22

You would almost certainly get the problem solved if you post on #C6N245JGG.

👍 1
borkdude10:01:09

if you use shadow's :target :esm, the imports should work exactly the same in nbb and squint/cherry (due to everything being ESM modules)

👍 1