I have a project where I call my own javascript library from clojurescript. I 
wrote it as a closure library and included it using :libs since that appears to 
be the best way to require it in a cljs context and it works, I can get a 
reference to my lib and call its functions. The issue is I don't seem to get 
correct source maps for it.

I can see the source file copied into the appropriate place in the resources 
tree with the main file and its sourcemap but if something in my JS throws an 
exception the stack trace shows "main.map.js", the sourcemap, as the file 
rather than the actual source file. What's interesting is the line numbers are 
actually correct, they identify the right lines in the source file for each 
stack frame but chrome thinks they're references into the sourcemap (which is 
itself only one line) and the source file does not appear in chrome's sources 
panel.

This is the project and file in quesiton: 
https://github.com/RyanJenkins/Yinch/blob/master/src/js/yinch/glBridge.js

Have I misconfigured anything here? Do I need to throw some extra flag at the 
compiler to get sourcemaps for code other than clojurescript?

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/clojurescript.

Reply via email to