Fork me on GitHub
Yehonathan Sharvit00:07:22

what kind of issues could it cause @lilactown ?


you would be loading cljs.core twice


in upgrading from "2.8.83" to "2.10.14", our use of headless-chrome has started breaking: Uncaught ReferenceError: $jscomp is not defined - however, i see as well. going to do a fresh node_modules. anything else we should try? update: clean node_modules didn't help.


@robert-stuttaford which build :target? if you are using headless-chrome and only need to target that you can set :compiler-options {:output-feature-set :es8} which gets rid of most polyfills (which $jscomp is for)


thank you, giving that a go


that works, thank you!

Karol Wójcik13:07:01

Is it possible to create a wrapper library which consumes a npm library using shadow-cljs? I would like to make sure taht other build tools like figwheel-main could understand the generated source-code


don't need to do that at all. consumers just need to use the new :bundle to get the npm package access. the code stays the same.

Karol Wójcik13:07:39

Thanks @thheller. Those are great news!


Morning, Not sure if this was covered but any chance on adding git-deps t shadow-cljs.edn dependency resolution?


@gary001 at some point yes. until then just use deps.edn.

👍 3

Hi guys. The live reload become painfully slow when I add: ["@material-ui/icons" :refer (ArrowForward)] The console says it’s processing 6557 files instead of 1013 once I add that import line. The solution seems to be described here but not sure how to do that in CLJS:


@somedude314 definitely only import the icons you are actually using. all of them is madness.


["@material-ui/icons/ArrowForward" :default ArrowForward]

❤️ 6

Ah thank you so much, that worked. I was trying ["@material-ui/icons/ArrowForward" :as ArrowForward :default defaultExport] and it was giving me an error.