Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix: publishing not loading correctly
Caused by pulling in the new component system. Fixes #10893
  • Loading branch information
logseq-cldwalker committed Jan 23, 2024
commit 31e97698eb97643d4681f9fba6a81b8176c726c7
3 changes: 3 additions & 0 deletions deps/publishing/src/logseq/publishing/html.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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"}]
Expand Down
8 changes: 7 additions & 1 deletion shadow-cljs.edn
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down