Skip to content

Json manifest #9

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

Open
wants to merge 36 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
80eb6c8
chore: federation
ScriptedAlchemy Feb 28, 2025
17f6736
fix: tests
ScriptedAlchemy Feb 28, 2025
35c5e24
chore: add federation
ScriptedAlchemy Mar 1, 2025
f164bfa
chore: add federation
ScriptedAlchemy Mar 10, 2025
24937f0
chore: add federation
ScriptedAlchemy Mar 11, 2025
851f076
chore: update rstack
ScriptedAlchemy Mar 18, 2025
53bcbd9
chore: update rstack
ScriptedAlchemy Mar 18, 2025
a529bc4
chore: update rstack
ScriptedAlchemy Mar 18, 2025
3bdd69e
chore: fix ssr in rr7.3
ScriptedAlchemy Mar 19, 2025
24535bc
chore: fix ssr in rr7.3
ScriptedAlchemy Mar 20, 2025
76738ea
chore: fix ssr in rr7.3
ScriptedAlchemy Mar 20, 2025
003411d
chore: fix ssr in rr7.3
ScriptedAlchemy Mar 21, 2025
7351e1e
chore: fix ssr in rr7.3
ScriptedAlchemy Mar 21, 2025
78027d8
chore: fix ssr in rr7.3
ScriptedAlchemy Mar 21, 2025
fccd2b4
chore: fix ssr in rr7.3
ScriptedAlchemy Mar 21, 2025
f0b66e8
Fix: Remove unused imports in manifest.ts to resolve TypeScript linte…
ScriptedAlchemy Mar 21, 2025
6c72ac1
chore: use json manifest
ScriptedAlchemy Mar 23, 2025
3cbed5d
chore: fix federation imports
ScriptedAlchemy Mar 23, 2025
99eace5
chore: fix federation imports
ScriptedAlchemy Mar 23, 2025
a317ea0
Merge branch 'main' into federation
ScriptedAlchemy Mar 23, 2025
a7462ae
chore: upgrade react router
ScriptedAlchemy Mar 23, 2025
3730eb9
Merge branch 'main' into federation
ScriptedAlchemy Mar 23, 2025
c03da62
chore: stage over updates from mf branch
ScriptedAlchemy Mar 23, 2025
2420e5f
chore: add prettier
ScriptedAlchemy Mar 23, 2025
601cbcb
chore: add prettier
ScriptedAlchemy Mar 23, 2025
13d4940
chore: add prettier
ScriptedAlchemy Mar 23, 2025
140205c
fix: improve async handler logic in server-utils
ScriptedAlchemy Mar 23, 2025
b1dfc40
chore: add E2E testing workflow
ScriptedAlchemy Mar 23, 2025
fb6acf0
fix: update federation option to use dynamic configuration
ScriptedAlchemy Mar 23, 2025
a94980b
Merge branch 'main' into federation
ScriptedAlchemy Mar 24, 2025
b4f11c1
Merge branch 'main' into federation
ScriptedAlchemy Mar 24, 2025
a178a54
Merge branch 'federation' into json-manifest
ScriptedAlchemy Mar 24, 2025
efc2f8d
workaround e2e flakes, consume all mf modules
ScriptedAlchemy Mar 24, 2025
1e2f240
Merge branch 'federation' into json-manifest
ScriptedAlchemy Mar 24, 2025
e698f58
workaround e2e flakes, consume all mf modules
ScriptedAlchemy Mar 24, 2025
2771335
Merge branch 'main' into json-manifest
ScriptedAlchemy Mar 24, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions examples/federation/epic-stack-remote/rsbuild.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,12 @@ const exposedComponents = {
const commonFederationConfig = {
name: 'remote',
shareStrategy: "loaded-first" as const,
runtime: undefined,
runtime: false,
exposes: exposedComponents,
shared: sharedDependencies
shared: sharedDependencies,
manifest: {
filePath: 'static'
}
}

// Web-specific federation config
Expand Down
19 changes: 16 additions & 3 deletions examples/federation/epic-stack/rsbuild.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,18 @@ const sharedDependencies = {
const commonFederationConfig = {
name: 'host',
shareStrategy: "loaded-first" as const,
shared: sharedDependencies
shared: sharedDependencies,
manifest: {
filePath: 'static'
},
}

// Web-specific federation config
const webFederationConfig = {
...commonFederationConfig,
remoteType: 'import' as const,
remotes: {
remote: 'http://localhost:3001/static/js/remote.js',
remote: 'http://localhost:3001/static/mf-manifest.json',
},
}

Expand All @@ -48,7 +51,7 @@ const nodeFederationConfig = {
...commonFederationConfig,
dts: false,
remotes: {
remote: 'remote@http://localhost:3001/static/static/js/remote.js',
remote: 'remote@http://localhost:3001/static/static/mf-manifest.json',
},
runtimePlugins: ['@module-federation/node/runtimePlugin'],
}
Expand All @@ -67,6 +70,11 @@ export default defineConfig({
},
environments: {
web: {
source: {
define: {
'process.env.WEB': 'true',
},
},
tools: {
rspack: {
plugins: [
Expand All @@ -77,6 +85,11 @@ export default defineConfig({
plugins: [],
},
node: {
source: {
define: {
'process.env.WEB': 'false',
},
},
tools: {
rspack: {
plugins: [
Expand Down