Skip to content

Commit

Permalink
fix(rsbuild-plugin): failed to load remote modules with server.base (
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan authored Oct 22, 2024
1 parent b29c403 commit 3ac3fc8
Show file tree
Hide file tree
Showing 10 changed files with 421 additions and 312 deletions.
2 changes: 1 addition & 1 deletion apps/router-demo/router-host-2000/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
"devDependencies": {
"@module-federation/rsbuild-plugin": "workspace:*",
"@rsbuild/core": "^1.0.7",
"@rsbuild/core": "^1.0.16",
"@rsbuild/plugin-react": "^1.0.3",
"@types/react": "^18.2.79",
"@types/react-dom": "^18.3.0",
Expand Down
2 changes: 1 addition & 1 deletion apps/router-demo/router-host-v5-2200/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
"devDependencies": {
"@module-federation/rsbuild-plugin": "workspace:*",
"@rsbuild/core": "^1.0.7",
"@rsbuild/core": "^1.0.16",
"@rsbuild/plugin-react": "^1.0.3",
"@types/react": "^18.2.79",
"@types/react-dom": "^18.3.0",
Expand Down
2 changes: 1 addition & 1 deletion apps/router-demo/router-host-vue3-2100/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"devDependencies": {
"@module-federation/rsbuild-plugin": "workspace:*",
"@rsbuild/core": "^1.0.7",
"@rsbuild/core": "^1.0.16",
"@rsbuild/plugin-vue": "^1.0.1",
"tailwindcss": "^3.4.3",
"typescript": "^5.4.2"
Expand Down
2 changes: 1 addition & 1 deletion apps/router-demo/router-remote1-2001/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
"devDependencies": {
"@ant-design/cssinjs": "^1.20.0",
"@rsbuild/core": "^1.0.7",
"@rsbuild/core": "^1.0.16",
"@rsbuild/plugin-react": "^1.0.3",
"@rsbuild/shared": "^0.7.10",
"@types/react": "^18.2.79",
Expand Down
2 changes: 1 addition & 1 deletion apps/router-demo/router-remote2-2002/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"react-router-dom": "6.24.1"
},
"devDependencies": {
"@rsbuild/core": "^1.0.7",
"@rsbuild/core": "^1.0.16",
"@rsbuild/plugin-react": "^1.0.3",
"@types/react": "^18.2.79",
"@types/react-dom": "^18.3.0",
Expand Down
2 changes: 1 addition & 1 deletion apps/router-demo/router-remote3-2003/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"vue-router": "^4.3.2"
},
"devDependencies": {
"@rsbuild/core": "^1.0.7",
"@rsbuild/core": "^1.0.16",
"@rsbuild/plugin-vue": "^1.0.1",
"@vue/tsconfig": "^0.5.1",
"tailwindcss": "^3.4.3",
Expand Down
2 changes: 1 addition & 1 deletion apps/router-demo/router-remote4-2004/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"react-router-dom": "6.24.1"
},
"devDependencies": {
"@rsbuild/core": "^1.0.7",
"@rsbuild/core": "^1.0.16",
"@rsbuild/plugin-react": "^1.0.3",
"@types/react": "^18.2.79",
"@types/react-dom": "^18.3.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/rsbuild-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@module-federation/sdk": "workspace:*"
},
"devDependencies": {
"@rsbuild/core": "1.x"
"@rsbuild/core": "^1.0.16"
},
"peerDependencies": {
"@rsbuild/core": "1.x",
Expand Down
2 changes: 1 addition & 1 deletion packages/rsbuild-plugin/src/cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const pluginModuleFederation = (
const originalConfig = api.getRsbuildConfig('original');
if (
originalConfig.dev?.assetPrefix === undefined &&
config.dev.assetPrefix === DEFAULT_ASSET_PREFIX
config.dev.assetPrefix === config.server?.base
) {
config.dev.assetPrefix = true;
}
Expand Down
Loading

0 comments on commit 3ac3fc8

Please sign in to comment.