Fork me on GitHub
#clojurescript
<
2022-02-08
>
rgm06:02:59

probably did something weird in my webpack config in the module being consumed

rgm06:02:46

https://github.com/rgm/experiments/blob/storybook/2022/03-cljs-storybook/storybook/src/exports.ts#L1-L3 simplest thing I could think of for re-exporting from deeper in the tree, so it's probably something around that.

Sam Ritchie14:02:49

That's the best method I've found too

rgm15:02:51

https://github.com/rgm/experiments/blob/storybook/2022/03-cljs-storybook/storybook/webpack.config.js#L9-L12 I'm guessing there's some magic here that would get it to something I could use as [:> mylib/Button ,,,] but this'll do for now.

ribelo23:02:08

(.-a (doto (js/Object.) (aset "a" 1)))
;; => 1
(.-a-b (doto (js/Object.) (aset "a-b" 1)))
;; => nil
the impossibility of using kebab case in this notation is intentional or is it a bug?

isak23:02:30

I don't think that is a bug, because it wouldn't be a legal javascript identifier. Also even if it was, it wouldn't be Closure Advanced Compilation friendly, since you are accessing the property 2 different ways. (foo["myProp"] vs foo.myProp)