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

Webpack Module Federation Docs #4283

Open
RyanCCollins opened this issue Dec 8, 2020 · 6 comments
Open

Webpack Module Federation Docs #4283

RyanCCollins opened this issue Dec 8, 2020 · 6 comments

Comments

@RyanCCollins
Copy link

RyanCCollins commented Dec 8, 2020

Feature request

My company is evaluating micro-frontend frameworks for a platform. Webpack is high up on the list of potential frameworks, but unfortunately, the webpack module federation docs are not up to the standard of the more stable webpack docs.

What is the expected behavior?

  • The docs for module federation are missing API Docs containing explanation of the properties on the ModuleFederationPlugin and low-level container plugins.
    • It's not clear how shared modules, exposes and remotes work. The only way to figure it out is to dig into the examples.
    • Not clear what overrides vs. overridables are and how they relate to the plugin.
    • A deeper dive into shared modules, including their optional properties, would be helpful.
    • Other properties should be documented to show their intent and data type.

What is motivation or use case for adding/changing the behavior?
Making Webpack module federation adoptable

How should this be implemented in your opinion?
Similar to the other webpack API docs

Are you willing to work on this yourself?
no, I don't have the required knowledge or the time unfortunately. If someone with the knowledge would provide me with details, I can submit a PR.

@webpack-bot
Copy link

webpack-bot commented Dec 8, 2020

For maintainers only:

  • webpack-4
  • webpack-5
  • bug
  • critical-bug
  • enhancement
  • documentation
  • performance
  • dependencies
  • question

@alexander-akait alexander-akait transferred this issue from webpack/webpack Dec 8, 2020
@estevaolucas
Copy link

After digging into Module Federation codebase, I realized that https://webpack.js.org/concepts/module-federation/ is presenting outdated information.

With this PR webpack/webpack#10960, OverridablesPlugin got replaced with SharePlugin. That means Overriding, OverridablesPlugin, Dynamic Remote Containers sections contain invalid information.

@jayankmayukh
Copy link

jayankmayukh commented Feb 22, 2021

Facing the same issue. As of now we are using examples to understand the API, a proper documentation of API is very important.

@tmkasun
Copy link

tmkasun commented Apr 30, 2021

Yes same here, there is very little documentation for ModuleFederationPlugin itself and its configuration.

@tetchel
Copy link

tetchel commented May 18, 2021

for me, I got lost trying to figure out how to use the OverridablesPlugin (https://webpack.js.org/concepts/module-federation/#building-blocks)
only to find out it was removed in webpack/webpack#10960

edit: sorry, this is the same issue reported 3 comments up.

@tetchel
Copy link

tetchel commented May 18, 2021

I think this is also supposed to be covered under #3757

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants