This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-12-30
Channels
- # adventofcode (18)
- # beginners (27)
- # boot (5)
- # cider (3)
- # cljs-dev (2)
- # cljsrn (1)
- # clojure (78)
- # clojure-austin (1)
- # clojure-brasil (2)
- # clojure-uk (1)
- # clojurescript (11)
- # css (1)
- # cursive (11)
- # data-science (6)
- # datascript (3)
- # datomic (3)
- # emacs (24)
- # graphql (1)
- # hoplon (2)
- # off-topic (1)
- # om (8)
- # onyx (1)
- # portkey (11)
- # re-frame (18)
- # ring (5)
- # ring-swagger (1)
- # shadow-cljs (1)
- # sql (5)
- # testing (1)
Is there any way in cljs to generate a JS object which has literals only, e.g. { width: 800 }? Using clj->js does the job but generates long complicated JS method calls
#js{:width 800}
And that can be one or two orders of magnitude faster (http://blog.fikesfarm.com/posts/2017-11-09-avoid-converting-javascript-objects.html)
how do I get this to connect over https?
(ns repl.foo
(:require [clojure.browser.repl :as repl]))
(repl/connect "")
I end up with:
Mixed Content: The page at ' ' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint ' '. This request has been blocked; the content must be served over HTTPS.
also, is there a good way to turn on CORS with the browser REPL?
I wonder why the sourcemaps for this line didn't show up in the chrome inspector
is there an easy way to hijack this with my own implementation? https://github.com/clojure/clojurescript/blob/5a1ac949b2855efbb13521ec45b16751c523f9f3/src/main/clojure/cljs/repl/browser.clj#L80-L91 (one that uses https
and maybe replacing this with my own impl to allow CORS: https://github.com/clojure/clojurescript/blob/5e1ca777bbf7b50e70fb14977cd604e0fe26be96/src/main/clojure/cljs/repl/server.clj#L133-L156 ?
Hi guys, I’m running figwheel. But every other reload/eval takes an extra for seconds. As far as I can tell, this happens when I add a lib to the :npm-deps
compiler option. Any thoughts on how to get around this? Maybe a way to not recompile npm-deps or something?