Skip to content

Commit

Permalink
cljs + closure compiler bump
Browse files Browse the repository at this point in the history
  • Loading branch information
thheller committed May 16, 2022
1 parent 0421c93 commit 653dfa0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@
[org.clojure/core.async "1.5.648"]

;; hack to get the latest closure-compiler if CLJS doesn't have it
[org.clojure/clojurescript "1.11.4"
[org.clojure/clojurescript "1.11.51"
:exclusions
[com.google.javascript/closure-compiler-unshaded
org.clojure/google-closure-library
org.clojure/google-closure-library-third-party]]

[com.google.javascript/closure-compiler-unshaded "v20220301"]
[com.google.javascript/closure-compiler-unshaded "v20220502"]

[org.clojure/google-closure-library "0.0-20211011-0726fdeb"]
[org.clojure/google-closure-library-third-party "0.0-20211011-0726fdeb"]
Expand Down
7 changes: 5 additions & 2 deletions src/main/shadow/build/closure.clj
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@
:ecmascript-2016 CompilerOptions$LanguageMode/ECMASCRIPT_2016
:ecmascript-2017 CompilerOptions$LanguageMode/ECMASCRIPT_2017
:ecmascript-next CompilerOptions$LanguageMode/ECMASCRIPT_NEXT
:ecmascript-next-in CompilerOptions$LanguageMode/ECMASCRIPT_NEXT_IN))
:ecmascript-next-in CompilerOptions$LanguageMode/UNSTABLE
:ecmascript-unstable CompilerOptions$LanguageMode/UNSTABLE
:unstable CompilerOptions$LanguageMode/UNSTABLE))

(defn ^FeatureSet kw->feature-set [kw]
(case kw
Expand All @@ -105,7 +107,8 @@
:es2019 FeatureSet/ES2019
:es2020 FeatureSet/ES2020
:es-next FeatureSet/ES_NEXT
:es-next-in FeatureSet/ES_NEXT_IN
:es-next-in FeatureSet/ES_UNSTABLE
:es-unstable FeatureSet/ES_UNSTABLE
(throw (ex-info "invalid :output-feature-set" {:val kw}))))

(defn set-options
Expand Down
2 changes: 1 addition & 1 deletion src/main/shadow/cljs/devtools/api.clj
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@
:target :browser
:output-dir (str (:cache-root config) "/builds/" (name build-id) "/js")
:asset-path (str "/cache/" (name build-id) "/js")
:compiler-options {:output-feature-set :es-next-in}
:compiler-options {:output-feature-set :es-unstable}
:modules
{:repl {:entries '[shadow.cljs.devtools.client.browser-repl]}}
:devtools
Expand Down

0 comments on commit 653dfa0

Please sign in to comment.