|
|
@@ -187,17 +187,18 @@
|
|
|
|
|
|
:publishing {:target :browser
|
|
|
:module-loader true
|
|
|
- :js-options {;; handle `require(xxx.css)`
|
|
|
+ :js-options {:js-provider :external
|
|
|
+ :external-index "target/main.js"
|
|
|
+ :external-index-format :esm
|
|
|
+ :entry-keys ["module" "browser" "main"]
|
|
|
+ :export-conditions ["module" "import", "browser" "require" "default"]
|
|
|
:ignore-asset-requires true
|
|
|
:resolve {"react" {:target :global
|
|
|
:global "React"}
|
|
|
"react-dom" {:target :global
|
|
|
:global "ReactDOM"}}}
|
|
|
- :modules {:shared
|
|
|
- {:entries []}
|
|
|
- :main
|
|
|
- {:init-fn frontend.publishing/init
|
|
|
- :depends-on #{:shared}}
|
|
|
+ :modules {:main
|
|
|
+ {:init-fn frontend.publishing/init}
|
|
|
:code-editor
|
|
|
{:entries [frontend.extensions.code]
|
|
|
:depends-on #{:main}}
|