I noticed this a while back [1]. I ended up not caring anymore since it doesn't 
hurt and is removed by :advanced anyways.

FWIW it is caused by the alias (:require [clojure.string :as str]) which ends 
with goog.require for 'clojure.string and 'str (which resolves to 
'clojure.string). Without an alias you don't get 2 requires. I had a patch for 
this but it is very out of date and never made it to JIRA cause at the time I 
was working off my own CLJS fork.

We should go through the proper channels this time. ;)

[1] https://groups.google.com/forum/#!topic/clojurescript/rq65Kuh9Q4Q/discussion

On Sunday, December 14, 2014 12:25:46 PM UTC+1, Boris Kourtoukov wrote:
> I am noting the following in the compiled JS output when using optimizations 
> :none
> 
> 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'); 
> 
> Here is a gist with the bare source: 
> https://gist.github.com/BorisKourt/df7bea77b4b5bffa06a4 (Its just the mies 
> template with two additional .cljs files)
> 
> Is this normal behavior? I don't recall seeing this duplication a few months 
> ago. I will file a bug report if this is indeed odd.

-- 
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 clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to