Closed pavel-klavik closed 3 years ago
Is there a reason to do advanced compilation since the code is running server side?
For my small case probably no. But it is the default mode in Shadow-cljs, so there is a reason: faster execution, smaller file size, etc. As I understand, requiring http in a different way would solve this problem. Anyway, supporting Shadow-cljs out of the box sounds like a good idea.
Yeah I agree with shadow-cljs support, would you be up for doing a PR for the fix?
I don't think I have good enough understanding of NodeJS and how other compilation works to know the solution for this.
No worries, myself or @jdhorwitz will try take a look in the near future.
I can start to take a look at this. Thanks for reporting @pavel-klavik !
👍
Starting back on this, work got crazy!
No worries, life has a habit of getting in the way of open source. :)
Hello, There are several parts of the code that break in release mode. Will you be against adding a dependency to https://github.com/applied-science/js-interop ? I think this should work if all the interop is handled via that library. I can try to implement that if you are ok with the additional dependency.
Sure, that sounds good to me. I can make the release if you'd like to do a PR for the update.
actually I was able to do without the dependency. I am sending the PR
thanks, merged
The following line is broken when compiled in :advanced mode (default for the release mode in Shadow-cljs):
Getting the following error: