packages icon indicating copy to clipboard operation
packages copied to clipboard

Including sourcemaps

Open atroche opened this issue 10 years ago • 2 comments

Hi!

I'm using https://github.com/cljsjs/packages/tree/master/react-day-picker, and Chrome complains about not being able to parse the source map. I've tried updating the package to include the source map (downloading and moving it to cljsjs/react-day-picker/development/DayPicker.js.map), but the compiler isn't including the file in the compiled JS folder.

Is there any way to do this?

Cheers,

Alistair

atroche avatar Dec 11 '15 00:12 atroche

I don't think so.

Foreign deps are repsented as a maps with values read from deps.cljs: https://github.com/clojure/clojurescript/blob/c72e9c52156b3b348aa66857830c2ed1f0179e8c/src/main/clojure/cljs/js_deps.cljc#L191-L203

Maps don't implement ISourceMap: https://github.com/clojure/clojurescript/blob/master/src/main/clojure/cljs/closure.clj#L325-L334

Deraen avatar Dec 12 '15 11:12 Deraen

Related: http://dev.clojure.org/jira/browse/CLJS-1410

Deraen avatar Jan 08 '16 21:01 Deraen