This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-12-11
Channels
- # adventofcode (42)
- # asami (13)
- # babashka (40)
- # beginners (25)
- # calva (39)
- # cider (18)
- # circleci (6)
- # cljs-dev (3)
- # clojure (39)
- # clojure-europe (16)
- # clojure-norway (9)
- # clojure-uk (2)
- # clojurescript (42)
- # datalevin (4)
- # datomic (23)
- # fulcro (33)
- # jobs (1)
- # malli (26)
- # minecraft (1)
- # off-topic (88)
- # pedestal (3)
- # polylith (8)
- # re-frame (6)
- # remote-jobs (2)
- # shadow-cljs (20)
- # tools-deps (12)
- # xtdb (5)
Hi! Is there a way to make shadow-cljs emit the equivalent of export default function(data) { /* */}
for target :node-library
?
Hi!
Does anyone know if there is a top-level config for controlling the log-level (meaning logs from shadow-cljs) in the browser console?
For example in Figwheel there is :client-log-level
which can be set to: :severe
`:warning` `:info` `:config` `:fine` `:finer` `:finest` .
I would like to temporarily disable “info” level warnings such as “shadow-cljs: call app.core/start” that come from shadow.
@deas just :exports {:default some.ns/foo}
where foo
is a regular defn
. assuming commonjs is ok, otherwise you need to go with :target :esm
@thheller Need ESM (https://k6.io/docs/using-k6/http-requests/). Not quite there, but I guess you brought me a lot closer. Thanks!
@thheller Turned out there is no self
or navigator
property in k6. I Guess that rules out :esm
for the moment?
However, on the positive side of things, I got it working as :node-library
build hack.js
import hack from "./dist/hack.js";
export default hack.default$;
I don't know what you mean by "Turned out there is no selfor navigatorproperty in k6"
I don't know a single thing about k6 so I can't really comment much on what you need or what works
The code emitted using :target :esm
refers to self
and window.navigator
. Guess it is the Closure Compiler introducing them. Both exist in the browser and also in deno
. Don't see a way to polyfill them atm.
ah I guess you are talking aout dev builds? so watch/compile, yeah those might reference those. release
however should not
If you have a quick idea how to get rid of them or polyfill, it would be nice if you could let me know. ;)