Skip to content

Commit

Permalink
Set language-out for node module processing builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Deraen committed May 3, 2020
1 parent 9769a01 commit fcbb19c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
15 changes: 9 additions & 6 deletions project.clj
Expand Up @@ -23,8 +23,7 @@
:doc-paths []}

:profiles {:dev {:dependencies [[org.clojure/clojure "1.10.1"]
;; TODO: 753 doesn't work with node module processing
[org.clojure/clojurescript "1.10.597"]
[org.clojure/clojurescript "1.10.753"]
[figwheel "0.5.19"]
[figwheel-sidecar "0.5.19"]
[doo "0.1.11"]
Expand Down Expand Up @@ -74,7 +73,8 @@
:output-to "target/cljsbuild/client-npm/public/js/main.js"
:npm-deps true
:asset-path "js/out"
:checked-arrays :warn}}
:checked-arrays :warn
:language-out :es5}}

{:id "test"
:source-paths ["test"]
Expand All @@ -99,7 +99,8 @@
:output-to "target/cljsbuild/test-npm/main.js"
:npm-deps true
:aot-cache true
:checked-arrays :warn}}
:checked-arrays :warn
:language-out :es5}}

;; Separate source-path as this namespace uses Node built-in modules which
;; aren't available for other targets, and would break other builds.
Expand Down Expand Up @@ -164,7 +165,8 @@
:output-dir "target/cljsbuild/prod-npm/out" ;; Outside of public, not published
:closure-warnings {:global-this :off}
:npm-deps true
:aot-cache true}}
:aot-cache true
:language-out :es5}}

{:id "prod-test"
:source-paths ["test"]
Expand All @@ -191,4 +193,5 @@
:closure-warnings {:global-this :off}
:npm-deps true
:aot-cache true
:checked-arrays :warn}}]})
:checked-arrays :warn
:language-out :es5}}]})
1 change: 1 addition & 0 deletions test-environments/bundle-adv/test.sh
Expand Up @@ -2,3 +2,4 @@
set -ex
clojure -m cljs.main -co test-environments/bundle-adv/karma.edn -v --compile
npx karma start test-environments/bundle-adv/karma.conf.js
node_modules/.bin/gzip-size target/bundle-adv/resources/public/js/out/karma.js

0 comments on commit fcbb19c

Please sign in to comment.