Relative paths are incorrect when source map isn't in same directory as project.clj

Description

For example:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 (defproject sandbox "0.1.0" :dependencies [[org.clojure/clojure "1.5.1"] [org.clojure/clojurescript "0.0-2030"]] :plugins [[lein-cljsbuild "1.0.0-alpha2"]] :source-paths ["src"] :cljsbuild { :builds [{:id "sandbox" :source-paths ["src"] :compiler { :output-to "dist/main.js" :output-dir "dist/out" :optimizations :advanced :source-map "dist/main.js.map"}}]})

Chrome looks for dist/dist/out/foo.cljs instead of dist/out/foo.cljs
You can manually fix it by opening dist/main.map.js and changing all the dist/out to out.
I think the general solution is that all the paths must be relative to the parent of :source-map

See: https://github.com/fivetran/cljs-source-maps-incorrect-paths

Potentially related to http://dev.clojure.org/jira/browse/CLJS-591

Environment

CLJS 2030

Status

Assignee

Unassigned

Reporter

George Fraser

Labels

None

Approval

None

Patch

Code

Priority

Major