Fork me on GitHub
#shadow-cljs
<
2022-09-20
>
dvingo12:09:55

replying to: https://clojurians.slack.com/archives/C6N245JGG/p1663523285825599 I have found a solution using a build-hook to gather edited namespaces before compilation runs using this technique: https://github.com/metosin/malli/blob/d04fa68d16df383ce8632840241257b3daf7da17/src/malli/dev/shadow_cljs_instrument_hooks.clj (part of this PR https://github.com/metosin/malli/pull/754) I'm wondering if there is a better solution by directly accessing the build-state in a :compile-prepare hook though. I didn't see a way to get that information in the prepare stage, is there one?

thheller15:09:49

@danvingo lets discuss further on the PR

👍 1
torgeir18:09:12

Hey folks! Say I would do something like (ns server.main (:require ["fs" :as fs])) and evaluate it in a node-repl, then type (fs/rea|), (pretend the cursor is at |) Should I be expecting an autocomplete in emacs with clojure-lsp and/or cider? Or is there something wrong with my setup

thheller19:09:23

you should ask emacs or clojure-lsp. it is not something shadow-cljs is involved in. I'm guessing no but I don't have a clue what either do

torgeir19:09:42

Thanks, will do

Logan Powell22:09:35

👋 Hey everybody! Does anyone know if :target :esm is still https://clojureverse.org/t/generating-es-modules-browser-deno/6116/21?

Logan Powell22:09:58

I'm having some issues using the library I created with a bundler called Vite

Logan Powell22:09:11

which uses ESM