Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Storybook that supports Module Federation remote containers #532

Closed
fyodorovandrei opened this issue Jan 27, 2023 · 2 comments
Closed

Storybook that supports Module Federation remote containers #532

fyodorovandrei opened this issue Jan 27, 2023 · 2 comments
Assignees

Comments

@fyodorovandrei
Copy link
Contributor

  ## Storybook that supports Module Federation remote containers

We need a plugin for Storybook that supports Module Federation remote containers. That way we can federate the stories themselves and begin to compose them in the overarching storybook for the organization. This could be really interesting when combined with the Federation Discovery RFC. Being able to create a single entry for a distributed storybook where every federated remote can aid adoption.

Acceptance Criteria

  • a Storybook plugin to easily inject MF containers for
  • generates storybooks backbone
  • Storybook shell application with plugin should be able to consume remote federated stories

Originally posted by @viktoriialurie in #531

@viktoriialurie viktoriialurie moved this to In Progress in Module Federation Board Jan 27, 2023
@fyodorovandrei fyodorovandrei changed the title ## Storybook that supports Module Federation remote containers Storybook that supports Module Federation remote containers Jan 27, 2023
@fyodorovandrei
Copy link
Contributor Author

fyodorovandrei commented Feb 2, 2023

Updates:

I developed a react project based on CRA. and integrated Storybook in the host app. The story spouse is to consume a remote component using MF.
I get results but I have 2 problems to fix:

  • In file .storybook/main.js we can modify the webpack config. I pushed the MF plugin but I got errors with shared dependencies
  • Storybook addon for the docs tab have a bug if is used lazy component

Now I'm working on the following:

  • fix shared dependencies errors
  • investigate how to move the solution into a package

The result:
Image

@fyodorovandrei
Copy link
Contributor Author

PR created and on Review #598

@viktoriialurie viktoriialurie moved this from In Progress to Under review in Module Federation Board Mar 6, 2023
@viktoriialurie viktoriialurie moved this from Under review to Done in Module Federation Board Apr 28, 2023
@github-project-automation github-project-automation bot moved this from Done to In Progress in Module Federation Board Apr 30, 2023
@viktoriialurie viktoriialurie moved this from In Progress to Done in Module Federation Board May 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant