From 0ae50e76737ad63df9d25e09aaec822f225a764d Mon Sep 17 00:00:00 2001 From: kloimhardt Date: Fri, 4 Jun 2021 01:37:04 +0200 Subject: [PATCH] change to :simple otimization --- shadow-cljs.edn | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/shadow-cljs.edn b/shadow-cljs.edn index 925f268..fa39edb 100644 --- a/shadow-cljs.edn +++ b/shadow-cljs.edn @@ -26,4 +26,11 @@ :depends-on #{:scittle}}} :build-hooks [(shadow.cljs.build-report/hook)] :output-dir "resources/public/js" - :devtools {:repl-pprint true}}}} + :devtools {:repl-pprint true} + :compiler-options {:optimizations :simple}}}} + +;; simple optimization because sablono.interpreter line 22 +;; cljs: (.setState component next-state) +;; simple: a.setState(f) +;; advanced: a.Ci(f) +;; and this Ci throws a "not defined" error