This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-10-14
Channels
- # announcements (7)
- # aws (1)
- # babashka (1)
- # beginners (19)
- # calva (9)
- # clj-commons (4)
- # clj-kondo (64)
- # clj-on-windows (27)
- # cljsrn (12)
- # clojure (127)
- # clojure-bay-area (3)
- # clojure-europe (25)
- # clojure-hungary (7)
- # clojure-nl (1)
- # clojure-norway (9)
- # clojure-spec (5)
- # clojure-survey (2)
- # clojure-uk (22)
- # community-development (5)
- # core-async (19)
- # cursive (29)
- # datascript (8)
- # events (1)
- # fulcro (2)
- # graalvm (3)
- # jobs (1)
- # lsp (155)
- # malli (18)
- # nbb (6)
- # off-topic (86)
- # pathom (2)
- # rdf (18)
- # re-frame (9)
- # releases (2)
- # scittle (24)
- # shadow-cljs (33)
- # xtdb (4)
👋 Does anyone know of or has implemented a Github Action diffing bundle sizes between branches using shadow-cljs build reports?
Nice! I had an itch to build that for the last couple of days but so far only googled for possible solutions. One of the first things found was a well-documented example for nextjs: https://jeffchen.dev/posts/Measuring-Bundle-Sizes-With-Next-js-And-Github-Actions/ I'd try something similar, perhaps tomorrow, but only if the weather allows it. Do you have it firmly planned for next week?
Hi! If I use lein to manage dependencies and paths, is it possible to set a dedicated lein profile only for one specific build but not for others? I know that I can do :lein {:profile "+cljs"}
, but this applies for all the builds.
I think it could be useful when you want to include some source paths in one case but not in another. What I wanted to do is to change project.clj default behaviour, but with a profile in global lein config.
@zelark it is fine to always keep everything on the classpath, files that aren't required aren't included. if your intent is to override certain namespaces there are better options to do that
I have a project.clj that I cannot change. shadow-cljs depends on it. When I run shadow-cljs some code evaluation (it takes ~30 secs) happen, but it’s not relevant to a shadow-cljs build at all. So I’d like to override this behaviour with a separate profile which I described in ./lein/profiles.clj.
Actually this behaviour should be applied to all builds, but now I cannot change neither project.clj nor shadow-cljs.edn.
running shadow-cljs via lein directly is what I need, I just didn’t realized that I could do that.
It's unclear to me in the manual where the :nrepl
stuff goes. This does not seem to be correct:
{:source-paths
["src/dev"
"src/main"
"src/test"]
:dependencies
[]
:dev-http {8080 "public"}
:builds
{:frontend
{:target :browser
:modules {:main {:init-fn }}
:devtools {:repl-init-ns
:repl-pprint true
:nrepl {:port 9000
:middleware []
:init-ns }}}}}
Can anyone point out my mistake?got it, thank you
whhaaaat
Any ideas why I could be seeing TypeError: tick.core.goog$module$goog$object is undefined
? Shadow compiles without errors but when loading my file I see that error message and everything else after that fails
the project was working fine, I just moved it to a different box and started seeing that error :thinking_face:
probably related to this? https://clojurescript.org/news/2021-11-04-release#_google_closure_library_goog_module_global_access
or in case you are running in the REPL maybe an older version than this https://github.com/thheller/shadow-cljs/blob/master/CHANGELOG.md#2203---2022-10-09
I'm using the latest shadow-cljs
maybe a dependency doesn't work anymore with the new stuff :thinking_face:
if the dependency is old then it probably doesn't use goog.object correctly (maybe has a macro emitting access, or tried global access?)
maybe, weird the stacktrace doesn't mention anything, so no idea what lib can be causing that
oh, yeah, there is a tick library, first time I see it since it is not my project
that was it! damn breaking changes. Thanks @U05224H0W!