This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-09-06
Channels
- # babashka (31)
- # beginners (108)
- # calva (6)
- # clj-kondo (62)
- # cljsrn (5)
- # clojure (29)
- # clojure-australia (2)
- # clojure-europe (17)
- # clojure-nl (2)
- # clojure-spec (5)
- # clojure-uk (7)
- # clojurescript (25)
- # code-reviews (1)
- # datomic (13)
- # deps-new (7)
- # editors (1)
- # emacs (31)
- # figwheel-main (3)
- # garden (4)
- # graalvm (18)
- # helix (10)
- # improve-getting-started (12)
- # jobs (3)
- # lsp (20)
- # malli (12)
- # off-topic (7)
- # polylith (30)
- # re-frame (10)
- # remote-jobs (2)
- # shadow-cljs (18)
- # spacemacs (5)
- # sql (11)
- # tools-deps (10)
- # vim (9)
- # xtdb (1)
hi is there a way to get output name with hash in the build hook (`on-flush` stage)?
(get-in build-state [:shadow.build.modules/modules module-id :output-name])
returns name w/o hash@kirill.salykin :shadow.build.closure/modules
should have the hashes in :output-name
super! thanks you
there is a bit of duplication. shadow.build.modules
is before optimizations and shadow.build.closure
is after
Does something like https://www.npmjs.com/package/webpack-bundle-analyzer exist for things built on shadow using :target :node-library
?
does shadow also support pure js “modules”. Or would setting :prepend-js
with a an empty module ns have the same effect?
yeah whats a pure js module? you mean only js sources? you can define :modules {:js-only {:entries ["/that/file.js"]}}
yes, @U05224H0W that’s that I meant, thanks!
I doubt anyone has ever done this though. not actually sure it works. should in theory though
ok, so works somewhat, ie it produces a file I can load, the downside is that it still bundles the whole cljs runtime so still produces a ~5mb js in dev even though I’m just loading a smallish npm lib