Fork me on GitHub
#clojurescript
<
2022-06-15
>
Benjamin Solum15:06:56

I wasn't able to find this out from the docs (so I'm assuming no), but is there any way to get Shadow CLJS to ingest source maps from npm packages it's leveraging?

thheller17:06:47

there is no setting for this. they should be used by default but I believe it broke a couple closure compiler versions ago

thheller17:06:07

havent checked since most npm modules don't even have source maps

Benjamin Solum20:06:56

We're ingesting packages we've bundled ourselves within separate repos. Shadow doesn't seem to be picking up external map files AFAICT.

thheller20:06:01

have you tried inlining them?

Benjamin Solum20:06:16

Not yet, that's next step if I can't get externals working. I have to re-configure our build in our other project to do so so I was hoping they'd work externally.

thheller21:06:46

just as a test I mean

thheller21:06:00

this is all the closure compiler. there isn't much I can configure on the shadow-cljs side of things

thheller21:06:10

if the closure compiler doesn't pick them up I can't do much

thheller21:06:29

so if inlining doesn't work there is probably no chance to get them work externally

thheller21:06:01

if they work I can look into ways why externals might not

💯 1
Benjamin Solum21:06:08

Well I'll start playing with 'em to see.

Benjamin Solum14:06:24

I've tried multiple variations and can't seem to get inline or external source maps to work. The Closure Compiler docs say it should be possible: https://github.com/google/closure-compiler/wiki/Source-Maps Are there any special settings we can pass to closure to get these to work? It'd be a huge help for development.

thheller15:06:07

there are no options no. if you want to setup a repro I can see if I can do something