Daniel A.C. Martin 5ab9e09ee6
Core: toRequireContext: recurse in more cases
`../base-dir/*/index.stories.jsx` will lead to `glob` being set to `*/index.stories.jsx` and so `glob.split('/').length` = 2.

With the existing code the `recursive` flag would _not_ be set and yet webpack will need to recurse into the directories in order to find any `index.stories.jsx` files that might exist within them.

Therefore, we should compare to 1 and not 2.

See: https://github.com/storybookjs/storybook/issues/11530#issuecomment-662465689
2020-07-22 15:01:12 +01:00
..
2020-07-21 18:32:56 +08:00
2020-07-21 18:32:56 +08:00
2020-07-21 18:32:56 +08:00
2020-07-21 18:32:56 +08:00
2020-07-21 18:32:56 +08:00
2020-07-21 18:32:56 +08:00
2020-07-21 18:32:56 +08:00
2020-07-21 18:32:56 +08:00