This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-02-17
Channels
- # announcements (11)
- # babashka (29)
- # beginners (45)
- # biff (3)
- # cider (5)
- # clj-kondo (55)
- # clojure-austin (2)
- # clojure-europe (6)
- # clojure-norway (24)
- # clojure-uk (1)
- # datalevin (28)
- # fulcro (8)
- # gratitude (1)
- # hyperfiddle (7)
- # keechma (1)
- # membrane (31)
- # other-languages (1)
- # polylith (22)
- # shadow-cljs (12)
I have a problem with external js files. When I change the external js file after I require it, the change does't get applied. Is there a way to refresh the required js file? I'm doing this on node.js as the target and using the node-repl
(ns sample
(:require
["./repository.js" :as repo]))
I have the repository.js in src/js/sample/require.js and I have src/js in the source-paths
that file should get recompiled, but depending on how it is written the hot-reload may not work
How should I write it to recompile? I have a function in that file like this
export const findAll = async () => {
...
}
to be honest I have not spend any time on trying to make raw JS reload work for ESM files
if you want you can write it as goog.module
, no gurantee that'll work either but has higher chances
I see, I'll try that. Thanks for the help!!