Skip to content

Commit

Permalink
Use figwheel 0.5.18 (#217)
Browse files Browse the repository at this point in the history
* Update piggieback dependency from cemerick/piggieback to cider piggieback

* Use figwheel 0.5.18
  • Loading branch information
Daniel Hopkins authored and drapanjanas committed Apr 29, 2019
1 parent 25be339 commit 77a672c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
8 changes: 7 additions & 1 deletion resources/figwheel-bridge.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,13 @@ function loadApp(platform, devHost, onLoadCb) {
shimBaseGoog(fileBasePath);
importJs(fileBasePath + '/cljs_deps.js', function () {
importJs(fileBasePath + '/goog/deps.js', function () {
importIndexJs(fileBasePath);
// This is needed because of RN packager
// seriously React packager? why.
var googreq = goog.require;
googreq(`env.${platform}.main`);

// Hot reloading Works for figwheel 0.5.14, but not 0.5.18 -- why?
// importIndexJs(fileBasePath);
});
});
});
Expand Down
8 changes: 4 additions & 4 deletions resources/project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
[org.clojure/clojurescript "1.10.339"]
$INTERFACE_DEPS$]
:plugins [[lein-cljsbuild "1.1.4"]
[lein-figwheel "0.5.14"]]
[lein-figwheel "0.5.18"]]
:clean-targets ["target/" #_($PLATFORM_CLEAN$)]
:aliases {"prod-build" ^{:doc "Recompile code with prod profile."}
["do" "clean"
Expand All @@ -16,12 +16,12 @@
["do" "clean"
["with-profile" "advanced" "cljsbuild" "once"]]}
:jvm-opts ["-XX:+IgnoreUnrecognizedVMOptions" "--add-modules=java.xml.bind"]
:profiles {:dev {:dependencies [[figwheel-sidecar "0.5.14"]
[com.cemerick/piggieback "0.2.1"]]
:profiles {:dev {:dependencies [[figwheel-sidecar "0.5.18"]
[cider/piggieback "0.4.0"]]
:source-paths ["src" "env/dev"]
:cljsbuild {:builds [
#_($DEV_PROFILES$)]}
:repl-options {:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]}}
:repl-options {:nrepl-middleware [cider.piggieback/wrap-cljs-repl]}}
:prod {:cljsbuild {:builds [
#_($PROD_PROFILES$)]}}
:advanced {:dependencies [[react-native-externs "0.2.0"]]
Expand Down

0 comments on commit 77a672c

Please sign in to comment.