Skip to content

Commit

Permalink
runtime: fix preload namespace to include dirac.runtime
Browse files Browse the repository at this point in the history
dirac.runtime namespace is what Dirac checks to be present. Using
just preloads approach without manually requiring dirac.runtime
does not work in v0.6.5 release.
  • Loading branch information
darwin committed Sep 7, 2016
1 parent 6acedd3 commit 41f057c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/runtime/dirac/runtime/preload.cljs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
(ns dirac.runtime.preload
(:require-macros [dirac.runtime.preload :refer [gen-config]])
(:require [dirac.runtime.prefs :as prefs]
[dirac.runtime.core :as core]))
(:require [dirac.runtime :as dirac]))

; this namespace is intended to be included in cljs compiler :preloads
; overrides for default configuration can be specified in :external-config > :dirac.runtime/config
; see https://github.com/binaryage/dirac/blob/master/docs/configuration.md#dirac-runtime---page-specific-configuration

(def config (gen-config))

(prefs/merge-prefs! config)
(dirac/set-prefs! (merge (dirac/get-prefs) config))

(if-not (prefs/pref :suppress-preload-install)
(core/install!))
(if-not (dirac/get-pref :suppress-preload-install)
(dirac/install!))

0 comments on commit 41f057c

Please sign in to comment.