From fcbb19c4d1a11b462a3a551b305661bcbf9e41d7 Mon Sep 17 00:00:00 2001 From: Juho Teperi Date: Sun, 3 May 2020 21:22:49 +0300 Subject: [PATCH] Set language-out for node module processing builds --- project.clj | 15 +++++++++------ test-environments/bundle-adv/test.sh | 1 + 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/project.clj b/project.clj index 0094b1b0..d7b56530 100644 --- a/project.clj +++ b/project.clj @@ -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"] @@ -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"] @@ -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. @@ -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"] @@ -191,4 +193,5 @@ :closure-warnings {:global-this :off} :npm-deps true :aot-cache true - :checked-arrays :warn}}]}) + :checked-arrays :warn + :language-out :es5}}]}) diff --git a/test-environments/bundle-adv/test.sh b/test-environments/bundle-adv/test.sh index c2ddb13c..31ab15af 100755 --- a/test-environments/bundle-adv/test.sh +++ b/test-environments/bundle-adv/test.sh @@ -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