Created
December 14, 2014 11:18
-
-
Save BorisKourt/df7bea77b4b5bffa06a4 to your computer and use it in GitHub Desktop.
Possible duplication issue with ClojureScript :none compilation. Note the doubling of goog.require in the compiled core.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns simple-test.alpha) | |
(def a-val 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns simple-test.beta) | |
(def a-value :a-value) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns simple-test.core | |
(:require [simple-test.alpha :as alpha] | |
[simple-test.beta :refer [a-value]] | |
[clojure.string :as test-external])) | |
(enable-console-print!) | |
(println "Hello world! " a-value) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Compiled by ClojureScript 0.0-2411 | |
goog.provide('simple_test.core'); | |
goog.require('cljs.core'); | |
goog.require('simple_test.beta'); | |
goog.require('clojure.string'); | |
goog.require('clojure.string'); | |
goog.require('simple_test.beta'); | |
goog.require('simple_test.alpha'); | |
goog.require('simple_test.alpha'); | |
cljs.core.enable_console_print_BANG_.call(null); | |
cljs.core.println.call(null,"Hello world! ",simple_test.beta.a_value); | |
//# sourceMappingURL=core.js.map?rel=1418555547209 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defproject simple-test "0.1.0-SNAPSHOT" | |
:description "FIXME: write this!" | |
:url "http://example.com/FIXME" | |
:dependencies [[org.clojure/clojure "1.6.0"] | |
[org.clojure/clojurescript "0.0-2411"]] | |
:plugins [[lein-cljsbuild "1.0.4-SNAPSHOT"]] | |
:source-paths ["src"] | |
:cljsbuild { | |
:builds [{:id "simple-test" | |
:source-paths ["src"] | |
:compiler { | |
:output-to "simple_test.js" | |
:output-dir "out" | |
:optimizations :none | |
:source-map true}}]}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment