File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change
1
+ (ns adv-src-map.core )
2
+
3
+ (.log js/console " Hello!" (first [1 2 3 ]))
Original file line number Diff line number Diff line change 840
840
(.delete (io/file " package.json" ))
841
841
(test/delete-node-modules )
842
842
(test/delete-out-files out))))
843
+
844
+ #_(deftest test-advanced-source-maps
845
+ (testing " Test that the `sources` of the final merged source map matches the
846
+ one in the original Closure Compiler generated advanced source map"
847
+ (let [out (.getPath (io/file (test/tmp-dir ) " adv-src-map" ))]
848
+ (test/delete-out-files out)
849
+ (test/delete-node-modules )
850
+ (let [{:keys [inputs opts]} {:inputs (str (io/file " src" " test" " cljs_build" ))
851
+ :opts {:main 'cljs-3346-as-alias.core
852
+ :output-to (io/file out " main.js" )
853
+ :source-map (io/file out " main.js.map" )
854
+ :output-dir out
855
+ :optimizations :advanced
856
+ :closure-source-map true
857
+ :closure-warnings {:check-types :off }}}
858
+ cenv (env/default-compiler-env )]
859
+ (build/build (build/inputs (io/file inputs " adv_src_map/core.cljs" )) opts cenv))
860
+ (let [cljs-src-map (slurp (io/file out " adv_src_map/main.js.map" ))
861
+ closure-src-map (slurp (io/file out " adv_src_map/main.js.map.closure" ))]
862
+ )
863
+ (test/delete-out-files out))))
You can’t perform that action at this time.
0 commit comments