-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Adds a Module Federation innerloop experience #16771
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 8ea8f2e:
|
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: 677134343636ac373093f59cc67f5c09ab3bc21f (build) |
Perf AnalysisNo significant results to display. All results
Perf Analysis (Fluent)Perf comparison
Perf tests with no regressions
|
@@ -25,7 +25,8 @@ | |||
"start:legacy": "yarn workspace @fluentui/public-docsite-resources start", | |||
"start-test": "just-scripts jest-watch", | |||
"test": "just-scripts test", | |||
"update-snapshots": "just-scripts jest -u" | |||
"update-snapshots": "just-scripts jest -u", | |||
"mf": "just-scripts mf" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we...maybe find a different acronym? 🤣
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hahahah mf is everywhere :)
const { createServeConfig } = require('@fluentui/scripts/webpack/webpack-resources'); | ||
const { webpackMerge } = require('just-scripts'); | ||
|
||
const shared = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know I say this all the time but it would probably help to have some comments in here in case anyone else needs to maintain it later.
🎉 Handy links: |
Pull request checklist
Addresses an existing issue: Fixes #0000$ yarn change
Description of changes
This adds a
just-scripts
task called "mf" that can be triggered through the commandyarn mf
in thepackages/react
folder. When this is run, awebpack-dev-server
task is triggered, generating a module federation bundle, served through the WDS. This can then be fed into any MF consumer through the global var offluentuiReact
. This global var mechanism can be changed, but needs some investigation. So far, this has proven to be a good innerloop experience in coordination of the @lading/server "manifest service"Focus areas to test
(optional)