Fork me on GitHub
#shadow-cljs
<
2019-09-07
>
jiangts08:09:24

question: I have a codebase that I’d like to migrate to shadow. The codebase makes pretty extensive use of :libs, basically, a fair amount of code is written in Google Closure JS and consumed by cljs code. Does shadow have a story for consuming such js files? these JS files can be run through advanced compilation as well…

thheller10:09:44

@jiangts just put them on the regular classpath. no need to configure them any further

thheller10:09:13

as long as they have goog.provide and goog.provide they should be found normally

scknkkrer13:09:31

Guys, any documentation about using JSX files directly with Clojurescript project via shadow-cljs ?

gerred13:09:48

oh that's handy

parrot 4
scknkkrer15:09:14

When I wanted to use Babel transpiled js files with my shadow-cljs project. I’ve seen this error. I fetch the shadow-examples from git. But, same is at the babel@example. TypeError: undefined is not an object (evaluating 'module$node_modules$react$index.default.createElement')

scknkkrer15:09:34

*`babel` example.

scknkkrer16:09:42

Any solution ?