Skip to content

Commit 6c72ac1

Browse files
chore: use json manifest
1 parent f0b66e8 commit 6c72ac1

27 files changed

+28
-1200
lines changed

examples/federation/epic-stack-remote/rsbuild.config.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ export default defineConfig({
6565
},
6666
shareStrategy: "loaded-first",
6767
runtime: false,
68+
manifest: {
69+
filePath: 'static'
70+
},
6871
exposes: {
6972
'./components/search-bar': './app/components/search-bar',
7073
'./components/user-dropdown': './app/components/user-dropdown',
@@ -121,7 +124,9 @@ export default defineConfig({
121124
library: {
122125
type: 'commonjs-module'
123126
},
124-
dts: false,
127+
manifest: {
128+
filePath: 'static'
129+
},
125130
runtimePlugins: [
126131
'@module-federation/node/runtimePlugin'
127132
],

examples/federation/epic-stack-remote/tests/mocks/federation.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ export const handlers: Array<HttpHandler> = [
77
const f = await (await fetch(bypass(req.request.url))).text()
88
return text(f)
99
}),
10+
http.get('*.json', async (req) => {
11+
const f = await (await fetch(bypass(req.request.url))).text()
12+
return text(f)
13+
}),
1014
http.get('*.zip', async (req) => {
1115
const response = await fetch(bypass(req.request.url))
1216
const buffer = await response.arrayBuffer()
@@ -15,4 +19,4 @@ export const handlers: Array<HttpHandler> = [
1519
headers: response.headers
1620
})
1721
}),
18-
]
22+
]

examples/federation/epic-stack/app/components/error-boundary.tsx

Lines changed: 0 additions & 53 deletions
This file was deleted.

examples/federation/epic-stack/app/components/floating-toolbar.tsx

Lines changed: 0 additions & 2 deletions
This file was deleted.

examples/federation/epic-stack/app/components/forms.tsx

Lines changed: 0 additions & 202 deletions
This file was deleted.

examples/federation/epic-stack/app/components/progress-bar.tsx

Lines changed: 0 additions & 63 deletions
This file was deleted.

0 commit comments

Comments
 (0)