Am I supposed to be able to connect to a repl in a running script, produced via a :target :esm :runtime :node build?
Or am I supposed to be able to depend on esm npm modules when using :target :node-script?
I solved this by transpiling the thing to commonjs and require it from my classpath.
npx esbuild node_modules/@lume/kiwi/dist/kiwi.js --bundle --format=cjs --outfile=src/kiwi.cjs.js
Lume/kiwi is not very frequently updated, and now I don’t even need to worry that it is. It’s one of those sweet zero dependencies projects too.:target :esm with node depends on which version you are using. support for the REPL there is somewhat recent.
ESM from node-script is limited by node itself, so no.
I bumped to latest shadow-cljs. Afk, but I think that’s 3.2.0. I could start the script, but the repl wouldn’t connect. I probably didn’t get the config right.
:target :esm :runtime :node is about all the config thats needed 😉
assuming of course you actually ran the output script and it lived long enough for the REPL to connect to 😛
Yes 😀 I used the same process as I do with node-script. The script was built by the watcher. I ran the script. My after-load handler weren’t firing either when saving source files. With node-script things just worked.