mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 22:25:01 +00:00
fix: publishing not loading correctly
Caused by pulling in the new component system. Fixes #10893
This commit is contained in:
committed by
Gabriel Horner
parent
8710bb9d61
commit
ce2341506d
@@ -121,6 +121,9 @@ necessary db filtering"
|
||||
}
|
||||
}(window.location))"]
|
||||
;; TODO: should make this configurable
|
||||
[:script {:src "static/js/react.production.min.js"}]
|
||||
[:script {:src "static/js/react-dom.production.min.js"}]
|
||||
[:script {:src "static/js/ui.js"}]
|
||||
[:script {:src "static/js/main.js"}]
|
||||
[:script {:src "static/js/interact.min.js"}]
|
||||
[:script {:src "static/js/highlight.min.js"}]
|
||||
|
||||
@@ -90,7 +90,13 @@
|
||||
|
||||
:publishing {:target :browser
|
||||
:module-loader true
|
||||
:js-options {:ignore-asset-requires true}
|
||||
:js-options {;; handle `require(xxx.css)`
|
||||
:ignore-asset-requires true
|
||||
:resolve {"react" {:target :global
|
||||
:global "React"}
|
||||
"react-dom" {:target :global
|
||||
:global "ReactDOM"}}}
|
||||
|
||||
:modules {:main
|
||||
{:init-fn frontend.publishing/init}
|
||||
:code-editor
|
||||
|
||||
Reference in New Issue
Block a user