This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-12-12
Channels
- # adventofcode (42)
- # aleph (10)
- # announcements (1)
- # asami (138)
- # babashka (7)
- # beginners (7)
- # biff (13)
- # cider (7)
- # clj-kondo (15)
- # clojure (53)
- # clojure-austin (11)
- # clojure-belgium (2)
- # clojure-europe (23)
- # clojure-nl (1)
- # clojure-norway (55)
- # clojure-sweden (5)
- # clojure-uk (4)
- # cryogen (7)
- # cursive (63)
- # datomic (5)
- # eastwood (6)
- # emacs (31)
- # fulcro (7)
- # hyperfiddle (9)
- # introduce-yourself (3)
- # java (11)
- # lsp (10)
- # malli (14)
- # membrane (35)
- # off-topic (13)
- # portal (12)
- # prelude (1)
- # releases (2)
- # ring-swagger (27)
- # shadow-cljs (8)
- # timbre (25)
How do I require a JS file from a known place in node_modules
? I need to require node_modules/three/examples/jsm/utils/BufferGeometryUtils.js
, but all ways I try fail.
Now I tried something that works:
["three/examples/jsm/utils/BufferGeometryUtils.js" :as BufferGeometryUtils]
Was just gonna ask if you tried that 😄 :refer
also works if you only need a couple of functions from it
eg
["react-router-dom" :refer [createBrowserRouter RouterProvider Outlet]]
["@tanstack/react-query" :refer [QueryClient QueryClientProvider]]
["@tanstack/react-query-devtools" :refer [ReactQueryDevtools]]
https://shadow-cljs.github.io/docs/UsersGuide.html#classpath-js might be worth a skim too