Figure I'd ask this on this thread since it's the latest public release.

I'm trying to get relative source maps to work and I'm not sure if I'm
doing something wrong or there's a bug.

I have the following entry in my [project.clj][] `cljsbuild` section
with `0.0-2030` in my deps:

    {:id             "advanced"
     :source-paths   ["src/cljs"]
     :compiler       {:pretty-print  false
                      :output-to     "resources/public/js/bible-plan.js"
                      :output-dir    "resources/public/js"
                      :source-map    "resources/public/js/bible-plan.js.map"
                      :externs       ["externs/bible-plan-bibles-externs.js"]
                      :optimizations :advanced}}

The effect that I would expect that to have would be to output
`bible-plan.js` into `resources/public/js` with the line `//#
sourceMappingURL=bible-plan.js.map` at the bottom, and
`bible-plan.js.map` into `resources/public/js`, and indeed it does.

The contents of [`bible-plan.js.map`][], however, I would expect to
have entries like:

    ["goog/base.js",
     "goog/string/string.js",
     "goog/debug/error.js",
     "goog/asserts/asserts.js",
     "goog/array/array.js",
     "goog/object/object.js",
     …

In it, because the all the files are being output to common directory.

Instead, it contains:

    ["resources/public/js/goog/base.js",
     "resources/public/js/goog/string/string.js",
     "resources/public/js/goog/debug/error.js",
     "resources/public/js/goog/asserts/asserts.js",
     "resources/public/js/goog/array/array.js",
     "resources/public/js/goog/object/object.js",
    …

Which doesn't then resolve automatically because it becomes
`js/resources/public/js/…` in the resulting server.

Is this the intended behavior?

[project.clj]: 
https://github.com/timvisher/bible-plan/blob/source-maps/project.clj#L36-L53
[`bible-plan.js.map`]:
https://github.com/timvisher/bible-plan/blob/source-maps/resources/public/js/bible-plan.js.map

--

In Christ,

Timmy V.

http://blog.twonegatives.com/
http://five.sentenc.es/ -- Spend less time on mail

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to