How to import a compiled ClojureScript into a JS project using webpack?

24 views
Skip to first unread message

Shi Yan

unread,
Oct 28, 2019, 10:51:01 AM10/28/19
to ClojureScript
Hello,

I'm making a component using ClojureScript, however the main project is in JS and webpack.

I tried webpack's dynamic import, but it doesn't work well. in particular, in the ClojureScript, there is a line:

goog.global = this;

this will be undefined if I import the code.

I have to use a <script> tag

and this is just one problem, there are a few others.

Is there any instruction on how to import a ClojureScript build with webpack?

Thanks
Reply all
Reply to author
Forward
0 new messages