This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-08-14
Channels
- # architecture (19)
- # beginners (3)
- # calva (2)
- # cherry (2)
- # clj-kondo (2)
- # clojure (58)
- # clojure-europe (15)
- # clojure-norway (1)
- # conjure (1)
- # data-oriented-programming (9)
- # data-science (10)
- # emacs (9)
- # hyperfiddle (1)
- # nbb (9)
- # off-topic (1)
- # shadow-cljs (24)
- # sql (14)
- # squint (58)
- # testing (13)
- # xtdb (10)
Does this work with tree-shaking? Is there a chance that some functions are used, but not seen by webpack?
in theory its possible to generate precise import
that should be tree-shakable but its a lot of work
If some libraries are designed with tree-shaking, parts of code will be missed with this method?
shadow-cljs also doesn't tree-shake any npm dependencies, so the end result is the same regardless of what you use
it does polyfill when it processes npm packages yes, not when using :js-provider :external
Ah, I see. What does the pollyfill actually do?
Let's say I need buffer
in browser, without :js-provider :external
, it works with buffer
in dependencies.
But when I switch to :js-provider :external
, Buffer is not defined.