Open pleasetrythisathome opened 10 years ago
Can you just wrap the figwheel watch-and-reload call in a conditional? You don't want figwheel to run on the server side right?
it's the actual compiled file that it's issue, not the function call.
depending on optimizations, you either evaluate the single compiled js file, or evaluate each dependency in order from goog.deps to bootstrap the server environment, which means that any dependency included in a namespace form will be evaluated. none of the functions will be called, but the code is still evaluated.
Gotcha, it's a pretty easy fix. I'll take a look.
Can you send me a link or some resource to show me a minimal nashorn cljs setup?
I've been server rendering in Nashorn and i'd love to be able to use figwheel. Unfortunately js/console, js/document, js/location, js/window, etc are undefined in headless environments (like Nashorn). Could you add polyfill or conditionals? (something like this https://github.com/noprompt/shodan/blob/master/src/shodan/console.cljs#L30). Just need the thing not to break when evaluated.