mirror of
https://github.com/penpot/penpot.git
synced 2025-02-02 12:28:54 -05:00
misc: use proper target prop on worker build
This commit is contained in:
parent
d908cf566a
commit
32af3adf39
1 changed files with 4 additions and 0 deletions
|
@ -49,6 +49,8 @@
|
||||||
(api/build (api/inputs "src")
|
(api/build (api/inputs "src")
|
||||||
(merge default-build-options
|
(merge default-build-options
|
||||||
(get-output-options name true ::path)
|
(get-output-options name true ::path)
|
||||||
|
(when (= name "worker")
|
||||||
|
{:target :webworker})
|
||||||
{:optimizations :advanced
|
{:optimizations :advanced
|
||||||
:static-fns true
|
:static-fns true
|
||||||
:elide-asserts true})))
|
:elide-asserts true})))
|
||||||
|
@ -58,6 +60,8 @@
|
||||||
(api/build (api/inputs "src")
|
(api/build (api/inputs "src")
|
||||||
(merge default-build-options
|
(merge default-build-options
|
||||||
(get-output-options name true true)
|
(get-output-options name true true)
|
||||||
|
(when (= name "worker")
|
||||||
|
{:target :webworker})
|
||||||
{:optimizations :none})))
|
{:optimizations :none})))
|
||||||
|
|
||||||
(defmethod task "build-tests"
|
(defmethod task "build-tests"
|
||||||
|
|
Loading…
Add table
Reference in a new issue