Fork me on GitHub
#shadow-cljs
<
2019-05-10
>
thheller08:05:07

@colinkahn :preloads are not supported for :npm-module. shadow-cljs can't tell which namespace you are going to load so it can't tell which namespace it has to load before that

colinkahn13:05:53

@thheller ah ok, that makes sense.

colinkahn13:05:18

I did find a way around it in this specific case by importing a file directly into the .storybook/config.js file

👍 4
colinkahn17:05:43

@thheller i’m trying to upgrade the storybook example to the latest storybook version (5.0.11) and having no luck. Wondering if you’ve tried this

colinkahn17:05:24

it hangs and eventually gives an out of memory warning when compiling storybook

thheller17:05:45

I don't use storybook no. not a clue whats different but it should work the same as before?

colinkahn17:05:44

I suspect the bottleneck is something like a babel transform it’s applying to all files, which obviously that’s quite a few for what’s generated in the build.

thheller17:05:43

you can probably put the simple .babelrc into the output dir so it doesn't process with babel at all

thheller17:05:22

just put that file into the out dir

thheller17:05:21

maybe the updated storybook just doesn't use that file anymore?

colinkahn17:05:04

it still supports it afaict, adding it into the out dir has the same result. So maybe a webpack thing?

thheller17:05:15

usually just need to figure out where to put the files

colinkahn17:05:05

Not sure what the full effect of this will be, but it works. I added a .storybook/webpack.config.js with the following:

module.exports = async ({ config }) => {
  config.module.rules = [];
  return config;
};