Skip to content

Commit

Permalink
fix: #56 #41 (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangHongEn authored Aug 15, 2024
1 parent c4482ec commit 6cae9ab
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 213 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ export default defineConfig({
// If you set build.target: "chrome89", you can remove this plugin
// topLevelAwait(),
],
server: {
port: 5173,
// dev mode please set origin
origin: "http://localhost:5173"
},
build: {
target: 'chrome89',
},
Expand All @@ -72,6 +77,7 @@ export default defineConfig({
- feat: download remote d.ts
- feat: generate d.ts
- feat: support @vitejs/plugin-legacy
- feat: Another plugin, when only some remote modules are started, automatically completes HMR[#54](https://github.com/module-federation/vite/issues/54)

### So far so good 🎉

Expand Down
2 changes: 1 addition & 1 deletion examples/rust-vite/rust-host/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"scripts": {
"dev": "rsbuild dev",
"build": "rsbuild build",
"preview": "npm run build && http-server --cors -p 5176 dist"
"preview": "npm run build && rsbuild"
},
"dependencies": {
"@module-federation/enhanced": "0.2.5",
Expand Down
3 changes: 1 addition & 2 deletions examples/vite-vite/vite-host/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"@swc/core": "~1.7.10",
"@vitejs/plugin-react": "^4.3.1",
"vite": "^5.4.0",
"vite-plugin-top-level-await": "^1.4.4",
"http-server": "^14.1.1"
"vite-plugin-top-level-await": "^1.4.4"
}
}
1 change: 0 additions & 1 deletion examples/vite-vite/vite-remote/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"devDependencies": {
"@swc/core": "~1.7.10",
"@vitejs/plugin-react": "^4.3.1",
"http-server": "^14.1.1",
"vite": "^5.4.0",
"vite-plugin-top-level-await": "^1.4.4"
}
Expand Down
Loading

0 comments on commit 6cae9ab

Please sign in to comment.