fix: mobile build

This commit is contained in:
Tienson Qin
2025-07-28 18:31:29 +08:00
parent 7f18e941d0
commit 88dfaf8ebd
5 changed files with 91 additions and 31 deletions

View File

@@ -101,11 +101,6 @@
:redef false}
:cross-chunk-method-motion false}
:closure-defines {goog.debug.LOGGING_ENABLED true}
;; NOTE: electron, browser/mobile-app use different asset-paths.
;; For browser/mobile-app devs, assets are located in /static/js(via HTTP root).
;; For electron devs, assets are located in ./js(via relative path).
;; :dev {:asset-path "./js"}
:devtools {:before-load frontend.core/stop ;; before live-reloading any code call this function
:after-load frontend.core/start ;; after live-reloading finishes call this function
:watch-path "/static"
@@ -124,11 +119,8 @@
"react-dom" {:target :global
:global "ReactDOM"}}}
;; handle `require(xxx.css)`
:modules {:shared
{:entries []}
:main
{:init-fn mobile.core/init
:depends-on #{:shared}}
:modules {:main
{:init-fn mobile.core/init}
:code-editor
{:entries [frontend.extensions.code]
:depends-on #{:main}}}