You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I just want to mix it up.
Where do you put the files, and what settings do you need? Is it the same as the regular clojure deps.edn cli? ;; I don't know what to do.
Thanks.
Unlike shadow-cljs, krell seems not support :require arbitrary js files. However, krell is able to js/require those js very well.
Let say I follow the tutorial and compile the output into a target folder. Then, I have js/hello.js and want to consume it. The below line of code will work.
(def hello (js/require "../js/hello.js"))
(Note that js and target are at the same level of folder)
I can verify the output js by visiting target/krell_npm_deps.js as well. The hello.js should be required there.
Activity
ttchuong commentedon Mar 21, 2022
Unlike shadow-cljs, krell seems not support
:requirearbitrary js files. However, krell is able tojs/requirethose js very well.Let say I follow the tutorial and compile the output into a target folder. Then, I have js/hello.js and want to consume it. The below line of code will work.
(Note that js and target are at the same level of folder)
I can verify the output js by visiting target/krell_npm_deps.js as well. The hello.js should be required there.