From b563ab445c7f2ad591700e1476ffd6de01d3e21a Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 2 Apr 2020 23:56:26 +0200 Subject: [PATCH] :tada: Add externds (fixes an issue on prod build). --- frontend/externs/main.txt | 5 +++++ frontend/shadow-cljs.edn | 16 ++++++++++------ 2 files changed, 15 insertions(+), 6 deletions(-) create mode 100644 frontend/externs/main.txt diff --git a/frontend/externs/main.txt b/frontend/externs/main.txt new file mode 100644 index 000000000..2c23b76be --- /dev/null +++ b/frontend/externs/main.txt @@ -0,0 +1,5 @@ +getBrowserEvent +viewBox +baseVal +width +height diff --git a/frontend/shadow-cljs.edn b/frontend/shadow-cljs.edn index 2bcadb50d..767d12f1f 100644 --- a/frontend/shadow-cljs.edn +++ b/frontend/shadow-cljs.edn @@ -9,9 +9,13 @@ :output-dir "resources/public/js/" :asset-path "/js" :modules {:main {:entries [uxbox.main]}} - :compiler-options {:output-feature-set :es8} - :release {:output-dir "target/dist/js" - :compiler-options {:fn-invoke-direct true - :source-map true - :anon-fn-naming-policy :mapped - :source-map-detail-level :all}}}}} + :compiler-options + {:output-feature-set :es8 + :output-wrapper false} + :release + {:output-dir "target/dist/js" + :compiler-options + {:fn-invoke-direct true + :source-map true + :anon-fn-naming-policy :mapped + :source-map-detail-level :all}}}}}