xolvio / storybook-webpack-federation-plugin

Exposes all the components in your Storybook as Webpack 5 federated components.
MIT License
57 stars 5 forks source link

allow storiesExtension to be RegExp #8

Closed TillaTheHun0 closed 4 years ago

TillaTheHun0 commented 4 years ago

This PR makes it such that storiesExtension can be a string or a RegExp. I ran into this use case while integrating with a project.

This PR also makes it such that the default value for storiesExtension will match 0 or 1 leading .. This way foo.stories.jsx and stories.jsx are matched. The use case for this is:

/Button
--| index.jsx
--| stories.jsx