This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-05-15
Channels
- # announcements (2)
- # babashka (137)
- # beginners (96)
- # calva (3)
- # cider (11)
- # clj-kondo (8)
- # cljs-dev (161)
- # cljsrn (21)
- # clojure (78)
- # clojure-europe (47)
- # clojure-france (1)
- # clojure-losangeles (1)
- # clojure-nl (4)
- # clojure-spec (24)
- # clojure-uk (9)
- # clojuredesign-podcast (4)
- # clojurescript (39)
- # conjure (2)
- # core-async (27)
- # cursive (36)
- # datomic (54)
- # emacs (6)
- # figwheel (9)
- # figwheel-main (46)
- # fulcro (25)
- # graalvm (8)
- # helix (30)
- # hoplon (6)
- # hugsql (3)
- # jobs (5)
- # leiningen (7)
- # luminus (12)
- # nrepl (20)
- # off-topic (20)
- # pedestal (16)
- # re-frame (14)
- # reagent (3)
- # reitit (3)
- # remote-jobs (5)
- # rum (25)
- # shadow-cljs (60)
- # spacemacs (10)
- # vim (2)
- # xtdb (36)
@bhauman I created this one-line pull request for react-native-figwheel-bridge https://github.com/bhauman/react-native-figwheel-bridge/pull/9
@bhauman Hi! I just tested :auto-testing
with :bundle
. Seems to be using the pre-webpack file, getting this: <script type="text/javascript">import {npmDeps} from "./npm_deps.js";
in the browser. Is it broken/not fixed yet, or is there something I should do to fix my config?
I relied on having the :output-to being the file to load for auto-testing, but now we dont’ know the name of the final output file because its generated by webpack
I think adding yet another configuration key like :final-output-file
seems like it would work, but it would be nice if there was a better idea
@bhauman cljs-test-runner with doo has the same problem. I forked it to do something similar to your :final-output-file
. Don’t have any better ideas right now
You couldn’t possibly know where the file is, unless you parse webpack.config.js or if there’s a convention on where the file final file is. Is file naming conventions an option?
so if bundle is target, look for this specific file, if it isn’t there then fall back to more verbose config?
yeah its tough, and we’ll probably end up with this :final-output-file
, a convention for the final file is interesting
@bhauman Don’t know what’s out there, our configs tend to be relatively homogenous with files mostly ending up in the same place with the same name.
I’m guessing most people prefer the generated pages for things like testing and devcards?
I tested latest bundle figwheel on our relatively large project, seems to work fine, by the way
I’m confused. Isn’t the webpack-processed main.js the same file (almost) that was our final target file before target=bundle was introduced?
yes pretty similar, but with extra-mains and auto-testing the bundle-cmd is going to be called at the end of compile
In other words autotesting needs to be bundled, but doen’t currently know how to do that