From 32af3adf39d271451a8539b80825a0fcf2e38dc1 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 4 Jul 2019 10:06:40 +0200 Subject: [PATCH] misc: use proper target prop on worker build --- frontend/tools.clj | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/tools.clj b/frontend/tools.clj index f5c5fd75c..272adb0e0 100644 --- a/frontend/tools.clj +++ b/frontend/tools.clj @@ -49,6 +49,8 @@ (api/build (api/inputs "src") (merge default-build-options (get-output-options name true ::path) + (when (= name "worker") + {:target :webworker}) {:optimizations :advanced :static-fns true :elide-asserts true}))) @@ -58,6 +60,8 @@ (api/build (api/inputs "src") (merge default-build-options (get-output-options name true true) + (when (= name "worker") + {:target :webworker}) {:optimizations :none}))) (defmethod task "build-tests"