Skip to content

Commit

Permalink
chore: fix ci issue
Browse files Browse the repository at this point in the history
  • Loading branch information
danpeen committed Feb 2, 2025
1 parent 3cad7b2 commit 6e9c447
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 21 deletions.
14 changes: 7 additions & 7 deletions apps/router-demo/router-host-2000/rsbuild.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,19 @@ export default defineConfig({
'react-dom': {
singleton: true,
},
'react-router-dom': {
// singleton: true,
requiredVersion: '6.x',
},
// 'react-router-dom': {
// // singleton: true,
// requiredVersion: '6.x',
// },
},
runtimePlugins: [
path.join(__dirname, './src/runtime-plugin/shared-strategy.ts'),
path.join(__dirname, './src/runtime-plugin/retry.ts'),
path.join(__dirname, './src/runtime-plugin/fallback.ts'),
],
bridge: {
disableAlias: true,
},
// bridge: {
// disableAlias: true,
// },
}),
],
});
18 changes: 11 additions & 7 deletions apps/router-demo/router-host-2000/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,12 @@ function Wraper3() {
<div className="flex flex-row">
<div className="grow">
<h2>Remote1</h2>
{/* <Remote1App name={'Ming'} age={12} memoryRoute={{ entryPath: '/' }} /> */}
<Remote1AppWithErrorBoundary
<Remote1App name={'Ming'} age={12} memoryRoute={{ entryPath: '/' }} />
{/* <Remote1AppWithErrorBoundary
name={'Ming'}
age={12}
memoryRoute={{ entryPath: '/' }}
/>
/> */}
</div>
<div className="grow">
<h2>Remote2</h2>
Expand Down Expand Up @@ -150,13 +150,17 @@ const App = () => {
<Route
path="/remote1/*"
Component={() => (
<Remote1AppWithErrorBoundary
// <Remote1AppWithErrorBoundary
// name={'Ming'}
// age={12}
// ref={ref}
// basename="/remote1"
// />
<Remote1App
name={'Ming'}
age={12}
ref={ref}
basename="/remote1"
memoryRoute={{ entryPath: '/' }}
/>
// <Remote1App name={'Ming'} age={12} memoryRoute={{ entryPath: '/' }} />
)}
/>
<Route
Expand Down
14 changes: 7 additions & 7 deletions apps/router-demo/router-remote1-2001/rsbuild.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,17 @@ export default defineConfig({
'react-dom': {
singleton: true,
},
'react-router-dom': {
// singleton: true,
requiredVersion: '5.x',
},
// 'react-router-dom': {
// // singleton: true,
// requiredVersion: '5.x',
// },
antd: {
singleton: true,
},
},
bridge: {
disableAlias: true,
},
// bridge: {
// disableAlias: true,
// },
}),
],
});

0 comments on commit 6e9c447

Please sign in to comment.