Bladeren bron

fix: remove unneeded compiler option

Weihua Lu 4 jaren geleden
bovenliggende
commit
8cd118b5e6
2 gewijzigde bestanden met toevoegingen van 4 en 7 verwijderingen
  1. 0 4
      shadow-cljs.edn
  2. 4 3
      src/main/frontend/modules/instrumentation/posthog.cljs

+ 0 - 4
shadow-cljs.edn

@@ -22,10 +22,6 @@
    :release {:asset-path "https://asset.logseq.com/static/js"}
    :compiler-options {:infer-externs :auto
                       :output-feature-set :es-next
-                      ;; this cross-chunk-method-motion is needed
-                      ;; idue to ssue related with
-                      ;; https://github.com/thheller/shadow-cljs/issues/611
-                      :cross-chunk-method-motion false
                       :source-map true
                       :externs ["datascript/externs.js"
                                 "externs.js"]

+ 4 - 3
src/main/frontend/modules/instrumentation/posthog.cljs

@@ -26,9 +26,7 @@
    :loaded (fn [_] (register))})
 
 (defn init []
-  (posthog/init token (clj->js config))
-  (when cfg/dev?
-    (posthog/debug)))
+  (posthog/init token (clj->js config)))
 
 (defn opt-out [opt-out?]
   (if opt-out?
@@ -36,3 +34,6 @@
     (do
       (init)
       (posthog/opt_in_capturing))))
+
+(comment
+  (posthog/debug))