Skip to content

Commit

Permalink
fix: remoteEntry support hash; format dynamic es module
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangHongEn committed Aug 5, 2024
1 parent dec3b9b commit 95a1acf
Show file tree
Hide file tree
Showing 8 changed files with 1,492 additions and 3,975 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ export default defineConfig({

## roadmap

- fix: vitePluginAddEntry.ts This plugin may need to support the case where base in vite.config.js is not configured as "/"
- fix: remoteEntry and hostInit file names support hash generation
- feat: generate mf-manifest.json
- feat: support chrome plugin

Expand Down
2 changes: 1 addition & 1 deletion examples/rust/rsbuild.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ModuleFederationPlugin } from '@module-federation/enhanced/rspack';
import { defineConfig } from '@rsbuild/core';
import { pluginReact } from '@rsbuild/plugin-react';
import { ModuleFederationPlugin } from '@module-federation/enhanced/rspack';

export default defineConfig({
server: {
Expand Down
6 changes: 2 additions & 4 deletions examples/rust/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import { applyVueInReact } from 'veaury';
import App from 'viteRemote/App';
const AppComponent = App.default;
import ViteApp from 'viteRemote/App';

export default function Button() {
return (
<div>
rust host
<hr />
<AppComponent />
<ViteApp />
</div>
);
}
3 changes: 1 addition & 2 deletions examples/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@
"@module-federation/vite": "workspace:*",
"react": "^18.3.1",
"react-dom": "^18.2.0",
"vue": "^3.4.29",
"vue": "^3.4.35",
"vue-router": "^4.4.0"
},
"devDependencies": {
"@swc/core": "~1.6.0",
"@vitejs/plugin-react": "^4.3.1",
"@vitejs/plugin-vue": "^5.0.5",
"vite": "^5.3.1",
"vite-plugin-top-level-await": "^1.4.1"
}
Expand Down
Loading

0 comments on commit 95a1acf

Please sign in to comment.