You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix app-mode `target: 'node'` handling to respect custom `environment` names, improve missing-environment errors, auto-detect default environment names by caller/tooling when `environment` is omitted, and ensure selected node-target environments still receive federation plugin injection for commonjs-like SSR outputs.
@@ -109,7 +112,7 @@ Additional configuration for the Rsbuild plugin.
109
112
110
113
:::tip
111
114
112
-
Only supported when used as a global plugin in Rslib.
115
+
`target:'dual'` is only supported when used as a global plugin in Rslib/Rspress.
113
116
114
117
:::
115
118
@@ -120,6 +123,46 @@ Used to specify the target runtime environment for the output. When set to `dual
120
123
121
124
After generating SSR output with `target:'dual'`, you can refer to [Create a Modern.js Consumer](../../../practice/frameworks/modern/index), create a consumer, and integrate the corresponding Rslib SSR producer for development.
122
125
126
+
For Rsbuild app SSR, use `target:'node'` with `environment` to apply Module Federation to a specific app environment.
0 commit comments