at work, we've implemented a few features/pages in cljs without source map support.. to me that's like using the force, but we know we will eventually get stuck trying to fix a bug that we can't trace to the code manually
so we need source map support asap to smooth out the cljs adoption process at our company the way we develop is by running "lein cljsbuild auto dev" and refreshing the browser once we make changes (figwheel is on my list of tools to investigate) anyway, the problem is with source maps We run node or python based web server to serve index.html (see below) and we inherited this sample project.clj file (defproject CHANGE-ME-ME "0.1.0-SNAPSHOT" :description "CHANGE-ME" :url "https://CHANGE-ME" :dependencies [[org.clojure/clojure "1.6.0"] [org.clojure/clojurescript "0.0-2280"] [reagent "0.4.2"] [cljs-ajax "0.2.6"]] :plugins [[lein-environ "0.5.0"] [lein-cljsbuild "1.0.3"]] :cljsbuild {:builds [{:id "dev" :source-paths ["src"] :compiler {:optimizations :none :output-to "public/dev/app.js" :output-dir "public/dev/" :source-map true}} {:id "prod" :source-paths ["src"] :compiler {:optimizations :advanced :output-to "public/js/app.js" :pretty-print false}} ]} :min-lein-version "2.0.0") The index.html is <!DOCTYPE html> <html> <head> <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Reagent Starter Project</title> </head> <body> <div class="container"> <div id="app"></div> </div> <!-- scripts and styles --> <script src="http://fb.me/react-0.12.1.min.js"></script> <script src="dev/goog/base.js" type="text/javascript"></script> <script src="dev/app.js" type="text/javascript"></script> <script type="text/javascript">goog.require("main.core");</script> </body> </html> I have not used anything but pure JS before so I'm not sure what to do to get source maps working but as of now they are enabled in chrome but exceptions are displayed in the console in cljs/reagent JS sources like ratom.js and not in the cljs file I read the wiki on source maps and tried using source-map-path but that didn't work does anyone have an example of source maps that works with a web server? any pointers will be appreciated very frustrating and nerve wrecking that we ca't debug cljs sources help! Thank you in advance Marc -- 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 http://groups.google.com/group/clojurescript.
