Fork me on GitHub
#clojurescript
<
2019-09-10
>
Fernando Lopez Guevara14:09:21

hello everyone, is there any alternative to "macchiato"?

nenadalm19:09:35

I don't know of any - do you have any issues with it? I quite like it and also have it in production.

gerred16:09:49

in general, what's the update cadence to google closure compiler? I see there's an open regression on the JIRA from march or so, and obviously trying to keep up with every closure compiler release is a bit...aggressive.

gerred16:09:16

there's nothing I'm missing, I was just browsing through the cljs source and was curious since it's a 2018 series release

dominicm16:09:48

I'm using infer-externs + global-exports based on the webpack guide, but the externs are being rewritten 🙈 is there anything obvious I might miss?

Lone Ranger16:09:30

I have some experience with this issue. Do you mind sharing your webpack code and the deps.edn code you're using?

dominicm16:09:45

what part of the webpack?

Lone Ranger16:09:45

tl;dr -- I found that it comes down to two things... first, I use figwheel to do my compilation, since it handles the webpack stuff surprisingly well, and a lot of it depends on how you access the webpack code from your javascript code.

dominicm16:09:01

:infer-externs true
:npm-deps false
:foreign-libs [{:file "../front-end/build/static/js/bundle.js"
                :provides ["react" "react-dom" ""]
                :global-exports {react React
                                 react-dom ReactDOM
                                  App}}]

Lone Ranger16:09:03

for instance I've found (.. webpack-thing -some-attr (some-method x)) to be very unreliable, but (js/webpackThing.someAttr.SomeMethod x) works very reliably

dominicm16:09:27

I'm using (react-dom/render)

Lone Ranger16:09:16

and that does your bundle.js and webpack.config.js look like?

dominicm16:09:20

trying to figure that out 😄 It's a little complicated due to the ejected create react app

dominicm16:09:56

Okay, it's a 650 loc thing. So, what are you looking for exactly?

dominicm16:09:00

It appears that my inferred externs don't contain the appropriate lines. I'm not sure why that would happen though.

dominicm16:09:00

It appears that my inferred externs don't contain the appropriate lines. I'm not sure why that would happen though.

jplaza17:09:19

Hi, I’m having trouble to get :source-map-asset-path compiler option to work. The js file is generated correctly but`//# sourceMappingURL=` remains as it was before I added the option

Roman Liutikov23:09:28

@dnolen recently you've added a note about fn-invoke-direct generating incorrect code for Reagent https://github.com/clojure/clojurescript-site/commit/7d66be04cfd77c5124d2dd0bf346964aecabbda3 could you provide more detail about this?