Fork me on GitHub
#cljs-dev
<
2022-04-12
>
dnolen16:04:34

@alexmiller hello, re: shading stuff for the AOT artifact, just copying the sources in the source tree yeah? I guess this can be a build step + removing those declared deps? I guess namespace names must be rewritten though? - I guess AOT won't let us just remove those from the build?

Alex Miller (Clojure team)16:04:23

yes, there is some work to do for the renaming aspects but seems like for the limited scope of this, you might be able to get away with a pretty cheap solution (there are tools out there though that do this for Clojure code already)

Alex Miller (Clojure team)16:04:55

that is to say, there are a range of options - manual copying and search/replace, automated shading, etc. all of this code is same license and same CA - you should feel free to remix it here to avoid this issue

dnolen16:04:19

@alexmiller any automatic shading tools I should be looking at?

Alex Miller (Clojure team)16:04:16

there's some lein-shade thing, not sure if that has guts under it that are directly usable, and https://github.com/benedekfazekas/mranderson is the other one that comes to mind

dpsutton16:04:54

i remember ghadi has a vendoring script for clojure’s asm lib that could possibly be adapted or serve as some inspiration. Its in the commit for

dpsutton16:04:14

(not suggesting its the best option but just including some prior art)

dnolen19:04:33

well I don't really invest in more lein things - that approach was my first idea and seems simple enough