Fork me on GitHub

Hello guys, in Emacs cljr-clean-ns doesn't work well with shadow-cljs's npm import syntax, e.g.

(ns foo
  (:require ["react" :as react]
            ["@material-ui/core/Button" :default Button]))
After I run cljr-clean-ns both would be removed even though they are used in this ns ... Is this not supported, or am i missing something that could make it work?


I think that it would be nice in general to have a "non-destructive" clean-ns, which doesn't remove unused deps. Sometimes I require in a library that I am using in the repl but have not yet used in the buffer, and it gets lost when I use add-missing-libspec. I think it would be a good candidate for a prefixed-version of the refactor