Skip to content

Commit 7351a1a

Browse files
authored
feat(react): add rspack module federation support (#27696)
- feat(react): add remote rspack module federation support - feat(react): add host rspack module federation support - feat(react): add federate module rspack module federation support - fix(react): migration test <!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> <!-- If this is a particularly complex change or feature addition, you can request a dedicated Nx release for this pull request branch. Mention someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they will confirm if the PR warrants its own release for testing purposes, and generate it for you if appropriate. --> ## Current Behavior <!-- This is the behavior we have today --> We do not have an option to generate a react host and remote with rspack ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> Add rspack as an option when generating host and remote ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes #
1 parent 7b5c831 commit 7351a1a

File tree

99 files changed

+3449
-841
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+3449
-841
lines changed

docs/generated/packages/react/generators/federate-module.json

+6
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@
7676
"host": {
7777
"type": "string",
7878
"description": "The host / shell application for this remote."
79+
},
80+
"bundler": {
81+
"description": "The bundler to use.",
82+
"type": "string",
83+
"enum": ["rspack", "webpack"],
84+
"default": "rspack"
7985
}
8086
},
8187
"required": ["name", "path", "remote"],

docs/generated/packages/react/generators/host.json

+8
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,14 @@
177177
"type": "boolean",
178178
"default": false,
179179
"x-priority": "internal"
180+
},
181+
"bundler": {
182+
"description": "The bundler to use.",
183+
"type": "string",
184+
"enum": ["rspack", "webpack"],
185+
"x-prompt": "Which bundler do you want to use to build the application?",
186+
"default": "rspack",
187+
"x-priority": "important"
180188
}
181189
},
182190
"required": ["name"],

docs/generated/packages/react/generators/remote.json

+8
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,14 @@
176176
"type": "boolean",
177177
"default": false,
178178
"x-priority": "internal"
179+
},
180+
"bundler": {
181+
"description": "The bundler to use.",
182+
"type": "string",
183+
"enum": ["rspack", "webpack"],
184+
"x-prompt": "Which bundler do you want to use to build the application?",
185+
"default": "rspack",
186+
"x-priority": "important"
179187
}
180188
},
181189
"required": ["name"],

docs/generated/packages/react/generators/setup-ssr.json

+6
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@
3939
"hidden": true,
4040
"description": "Extra include entries in tsconfig.",
4141
"default": []
42+
},
43+
"bundler": {
44+
"description": "The bundler to use.",
45+
"type": "string",
46+
"enum": ["rspack", "webpack"],
47+
"default": "webpack"
4248
}
4349
},
4450
"required": ["project"],

0 commit comments

Comments
 (0)