Skip to content

Commit be76830

Browse files
anmonteirodnolen
authored andcommitted
CLJS-1952: Bump Closure Compiler to Feb 2017 release
1 parent 2aa8aae commit be76830

File tree

5 files changed

+9
-4
lines changed

5 files changed

+9
-4
lines changed

pom.template.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<dependency>
3131
<groupId>com.google.javascript</groupId>
3232
<artifactId>closure-compiler-unshaded</artifactId>
33-
<version>v20161201</version>
33+
<version>v20170218</version>
3434
</dependency>
3535
<dependency>
3636
<groupId>org.clojure</groupId>

project.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
[org.clojure/test.check "0.9.0" :scope "test"]
1515
[com.cognitect/transit-clj "0.8.285"]
1616
[org.clojure/google-closure-library "0.0-20160609-f42b4a24"]
17-
[com.google.javascript/closure-compiler-unshaded "v20161201"]
17+
[com.google.javascript/closure-compiler-unshaded "v20170218"]
1818
[org.mozilla/rhino "1.7R5"]]
1919
:profiles {:1.6 {:dependencies [[org.clojure/clojure "1.6.0"]]}
2020
:uberjar {:aot :all :main clojure.main}}

script/bootstrap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set -e
44

55
CLOJURE_RELEASE="1.9.0-alpha14"
6-
CLOSURE_RELEASE="20161201"
6+
CLOSURE_RELEASE="20170218"
77
DJSON_RELEASE="0.2.6"
88
TRANSIT_RELEASE="0.8.285"
99
GCLOSURE_LIB_RELEASE="0.0-20160609-f42b4a24"

script/clean

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ rm -rf compilation
55
rm -rf lib
66
rm -rf target
77
rm -rf builds
8+
rm -rf clojure
9+
rm -rf out

src/main/clojure/cljs/closure.clj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
JSModule JSModuleGraph SourceMap ProcessCommonJSModules
6262
AbstractCompiler TransformAMDToCJSModule
6363
ProcessEs6Modules CompilerInput]
64+
[com.google.javascript.jscomp.deps ModuleLoader$ResolutionMode]
6465
[com.google.javascript.rhino Node]
6566
[java.nio.file Path Paths Files StandardWatchEventKinds WatchKey
6667
WatchEvent FileVisitor FileVisitResult]
@@ -199,8 +200,10 @@
199200
(defn set-options
200201
"TODO: Add any other options that we would like to support."
201202
[opts ^CompilerOptions compiler-options]
203+
(.setModuleResolutionMode compiler-options ModuleLoader$ResolutionMode/NODE)
204+
202205
(when (contains? opts :pretty-print)
203-
(set! (.prettyPrint compiler-options) (:pretty-print opts)))
206+
(.setPrettyPrint compiler-options (:pretty-print opts)))
204207

205208
(when (contains? opts :pseudo-names)
206209
(set! (.generatePseudoNames compiler-options) (:pseudo-names opts)))

0 commit comments

Comments
 (0)