Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/many-peas-prove.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@module-federation/modern-js': patch
---

feat: support modern.js@3
6 changes: 3 additions & 3 deletions apps/modern-component-data-fetch/host/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@
],
"dependencies": {
"@babel/runtime": "7.28.2",
"@modern-js/runtime": "2.68.0",
"@modern-js/runtime": "0.0.0-canary-20251119023553",
"@module-federation/modern-js": "workspace:*",
"antd": "4.24.15",
"react": "~18.3.1",
"react-dom": "~18.3.1"
},
"devDependencies": {
"@modern-js-app/eslint-config": "2.59.0",
"@modern-js/app-tools": "2.68.0",
"@modern-js/app-tools": "0.0.0-canary-20251119023553",
"@modern-js/eslint-config": "2.59.0",
"@modern-js/tsconfig": "2.68.0",
"@modern-js/tsconfig": "0.0.0-canary-20251119023553",
"@types/jest": "~29.5.0",
"@types/node": "~16.11.7",
"@types/react": "~18.2.0",
Expand Down
6 changes: 3 additions & 3 deletions apps/modern-component-data-fetch/provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@
],
"dependencies": {
"@babel/runtime": "7.28.2",
"@modern-js/runtime": "2.68.0",
"@modern-js/runtime": "0.0.0-canary-20251119023553",
"@module-federation/modern-js": "workspace:*",
"antd": "4.24.15",
"react": "~18.3.1",
"react-dom": "~18.3.1"
},
"devDependencies": {
"@modern-js-app/eslint-config": "2.59.0",
"@modern-js/app-tools": "2.68.0",
"@modern-js/app-tools": "0.0.0-canary-20251119023553",
"@modern-js/eslint-config": "2.59.0",
"@modern-js/tsconfig": "2.68.0",
"@modern-js/tsconfig": "0.0.0-canary-20251119023553",
"@types/jest": "~29.5.0",
"@types/node": "~16.11.7",
"@types/react": "~18.2.0",
Expand Down
6 changes: 3 additions & 3 deletions apps/modernjs-ssr/dynamic-nested-remote/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@
],
"dependencies": {
"@babel/runtime": "7.28.2",
"@modern-js/runtime": "2.68.2",
"@modern-js/runtime": "0.0.0-canary-20251119023553",
"@module-federation/modern-js": "workspace:*",
"antd": "4.24.15",
"react": "~18.3.1",
"react-dom": "~18.3.1"
},
"devDependencies": {
"@modern-js-app/eslint-config": "2.59.0",
"@modern-js/app-tools": "2.68.2",
"@modern-js/app-tools": "0.0.0-canary-20251119023553",
"@modern-js/eslint-config": "2.59.0",
"@modern-js/tsconfig": "2.68.2",
"@modern-js/tsconfig": "0.0.0-canary-20251119023553",
"@types/jest": "~29.5.0",
"@types/node": "~16.11.7",
"@types/react": "~18.2.0",
Expand Down
6 changes: 3 additions & 3 deletions apps/modernjs-ssr/dynamic-remote-new-version/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@
],
"dependencies": {
"@babel/runtime": "7.28.2",
"@modern-js/runtime": "2.68.2",
"@modern-js/runtime": "0.0.0-canary-20251119023553",
"@module-federation/modern-js": "workspace:*",
"antd": "4.24.15",
"react": "~18.3.1",
"react-dom": "~18.3.1"
},
"devDependencies": {
"@modern-js-app/eslint-config": "2.59.0",
"@modern-js/app-tools": "2.68.2",
"@modern-js/app-tools": "0.0.0-canary-20251119023553",
"@modern-js/eslint-config": "2.59.0",
"@modern-js/tsconfig": "2.68.2",
"@modern-js/tsconfig": "0.0.0-canary-20251119023553",
"@types/jest": "~29.5.0",
"@types/node": "~16.11.7",
"@types/react": "~18.2.0",
Expand Down
6 changes: 3 additions & 3 deletions apps/modernjs-ssr/host/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@
],
"dependencies": {
"@babel/runtime": "7.28.2",
"@modern-js/runtime": "2.68.2",
"@modern-js/runtime": "0.0.0-canary-20251119023553",
"@module-federation/modern-js": "workspace:*",
"antd": "4.24.15",
"react": "~18.3.1",
"react-dom": "~18.3.1"
},
"devDependencies": {
"@modern-js-app/eslint-config": "2.59.0",
"@modern-js/app-tools": "2.68.2",
"@modern-js/app-tools": "0.0.0-canary-20251119023553",
"@modern-js/eslint-config": "2.59.0",
"@modern-js/tsconfig": "2.68.2",
"@modern-js/tsconfig": "0.0.0-canary-20251119023553",
"@types/jest": "~29.5.0",
"@types/node": "~16.11.7",
"@types/react": "~18.2.0",
Expand Down
6 changes: 3 additions & 3 deletions apps/modernjs-ssr/nested-remote/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@
],
"dependencies": {
"@babel/runtime": "7.28.2",
"@modern-js/runtime": "2.68.2",
"@modern-js/runtime": "0.0.0-canary-20251119023553",
"@module-federation/modern-js": "workspace:*",
"antd": "4.24.15",
"react": "~18.3.1",
"react-dom": "~18.3.1"
},
"devDependencies": {
"@modern-js-app/eslint-config": "2.59.0",
"@modern-js/app-tools": "2.68.2",
"@modern-js/app-tools": "0.0.0-canary-20251119023553",
"@modern-js/eslint-config": "2.59.0",
"@modern-js/tsconfig": "2.68.2",
"@modern-js/tsconfig": "0.0.0-canary-20251119023553",
"@types/jest": "~29.5.0",
"@types/node": "~16.11.7",
"@types/react": "~18.2.0",
Expand Down
6 changes: 3 additions & 3 deletions apps/modernjs-ssr/remote-new-version/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@
],
"dependencies": {
"@babel/runtime": "7.28.2",
"@modern-js/runtime": "2.68.2",
"@modern-js/runtime": "0.0.0-canary-20251119023553",
"@module-federation/modern-js": "workspace:*",
"antd": "4.24.15",
"react": "~18.3.1",
"react-dom": "~18.3.1"
},
"devDependencies": {
"@modern-js-app/eslint-config": "2.59.0",
"@modern-js/app-tools": "2.68.2",
"@modern-js/app-tools": "0.0.0-canary-20251119023553",
"@modern-js/eslint-config": "2.59.0",
"@modern-js/tsconfig": "2.68.2",
"@modern-js/tsconfig": "0.0.0-canary-20251119023553",
"@types/jest": "~29.5.0",
"@types/node": "~16.11.7",
"@types/react": "~18.2.0",
Expand Down
6 changes: 3 additions & 3 deletions apps/modernjs-ssr/remote/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@
],
"dependencies": {
"@babel/runtime": "7.28.2",
"@modern-js/runtime": "2.68.2",
"@modern-js/runtime": "0.0.0-canary-20251119023553",
"@module-federation/modern-js": "workspace:*",
"antd": "4.24.15",
"react": "~18.3.1",
"react-dom": "~18.3.1"
},
"devDependencies": {
"@modern-js-app/eslint-config": "2.59.0",
"@modern-js/app-tools": "2.68.2",
"@modern-js/app-tools": "0.0.0-canary-20251119023553",
"@modern-js/eslint-config": "2.59.0",
"@modern-js/tsconfig": "2.68.2",
"@modern-js/tsconfig": "0.0.0-canary-20251119023553",
"@types/jest": "~29.5.0",
"@types/node": "~16.11.7",
"@types/react": "~18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion apps/modernjs/modern.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { appTools, defineConfig } from '@modern-js/app-tools';
import { ModuleFederationPlugin } from '@module-federation/enhanced';
// https://modernjs.dev/en/configure/app/usage
export default defineConfig({
dev: {
server: {
port: 4001,
},
runtime: {
Expand Down
6 changes: 3 additions & 3 deletions apps/modernjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@
],
"dependencies": {
"@babel/runtime": "7.28.2",
"@modern-js/runtime": "2.68.2",
"@modern-js/runtime": "0.0.0-canary-20251119023553",
"@module-federation/enhanced": "workspace:*",
"react": "18.3.1",
"react-dom": "18.3.1"
},
"devDependencies": {
"@modern-js-app/eslint-config": "2.59.0",
"@modern-js/app-tools": "2.68.2",
"@modern-js/app-tools": "0.0.0-canary-20251119023553",
"@modern-js/eslint-config": "2.59.0",
"@modern-js/tsconfig": "2.68.2",
"@modern-js/tsconfig": "0.0.0-canary-20251119023553",
"@types/jest": "~29.5.0",
"@types/node": "~20.12.12",
"@types/react": "~18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion apps/modernjs/src/components/react-component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const reFetchParams = {
};

const ReactComponent = () => {
const [prefetchResult, reFetchUserInfo] = usePrefetch<UserInfo>({
const [prefetchResult, reFetchUserInfo] = usePrefetch<{ data: UserInfo }>({
id: 'app1/react-component',
// Optional parameters, required after using defer
deferId: 'userInfo',
Expand Down
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 @@ -19,7 +19,7 @@
},
"devDependencies": {
"@module-federation/rsbuild-plugin": "workspace:*",
"@rsbuild/core": "^1.3.21",
"@rsbuild/core": "^1.6.7",
"@rsbuild/plugin-react": "^1.0.6",
"@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.3.21",
"@rsbuild/core": "^1.6.7",
"@rsbuild/plugin-react": "^1.0.6",
"@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.3.21",
"@rsbuild/core": "^1.6.7",
"@rsbuild/plugin-vue": "^1.0.3",
"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.3.21",
"@rsbuild/core": "^1.6.7",
"@rsbuild/plugin-react": "^1.0.6",
"@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.3.21",
"@rsbuild/core": "^1.6.7",
"@rsbuild/plugin-react": "^1.0.6",
"@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.4.5"
},
"devDependencies": {
"@rsbuild/core": "^1.3.21",
"@rsbuild/core": "^1.6.7",
"@rsbuild/plugin-vue": "^1.0.3",
"@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.3.21",
"@rsbuild/core": "^1.6.7",
"@rsbuild/plugin-react": "^1.0.6",
"@types/react": "^18.2.79",
"@types/react-dom": "^18.3.0",
Expand Down
2 changes: 1 addition & 1 deletion apps/router-demo/router-remote5-2005/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.3.21",
"@rsbuild/core": "^1.6.7",
"@rsbuild/plugin-react": "^1.0.6",
"@types/react": "^19.0.0",
"@types/react-dom": "^19.0.0",
Expand Down
2 changes: 1 addition & 1 deletion apps/router-demo/router-remote6-2006/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"react-router": "7.9.4"
},
"devDependencies": {
"@rsbuild/core": "^1.3.21",
"@rsbuild/core": "^1.6.7",
"@rsbuild/plugin-react": "^1.0.6",
"@types/react": "^18.2.79",
"@types/react-dom": "^18.3.0",
Expand Down
2 changes: 1 addition & 1 deletion apps/runtime-demo/3008-runtime-remote/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"react-dom": "^18.3.1"
},
"devDependencies": {
"@rsbuild/core": "^1.3.21",
"@rsbuild/core": "^1.6.7",
"@rsbuild/plugin-react": "^1.0.6"
}
}
4 changes: 2 additions & 2 deletions packages/chrome-devtools/modern.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ export default defineConfig({
},
output: {
disableInlineRuntimeChunk: true,
disableFilenameHash: true,
disableMinimize: true,
filenameHash: true,
minify: false,
},
performance: {
chunkSplit: {
Expand Down
10 changes: 5 additions & 5 deletions packages/chrome-devtools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
},
"dependencies": {
"@arco-design/web-react": "^2.64.1",
"@modern-js/runtime": "2.68.2",
"@modern-js/runtime": "0.0.0-canary-20251119023553",
"@module-federation/sdk": "workspace:*",
"ahooks": "^3.7.10",
"dagre": "^0.8.5",
Expand All @@ -65,11 +65,11 @@
},
"devDependencies": {
"@modern-js-app/eslint-config": "2.59.0",
"@modern-js/app-tools": "2.68.2",
"@modern-js/app-tools": "0.0.0-canary-20251119023553",
"@modern-js/eslint-config": "2.59.0",
"@modern-js/module-tools": "2.68.2",
"@modern-js/storybook": "2.68.2",
"@modern-js/tsconfig": "2.68.2",
"@modern-js/module-tools": "2.68.20",
"@modern-js/storybook": "2.68.20",
"@modern-js/tsconfig": "0.0.0-canary-20251119023553",
"@module-federation/runtime": "workspace:*",
"@playwright/test": "1.49.1",
"@types/chrome": "^0.0.272",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"mf-dev": "rslib mf-dev"
},
"devDependencies": {
"@rsbuild/core": "^1.3.21",
"@rsbuild/core": "^1.6.7",
"@rsbuild/plugin-react": "^1.1.1",
"@rslib/core": ">=0.9.0",
"@types/react": "^18.3.11",
Expand Down
17 changes: 8 additions & 9 deletions packages/modernjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@
"author": "hanric <hanric.zhang@gmail.com>",
"license": "MIT",
"dependencies": {
"@modern-js/utils": "2.68.2",
"@modern-js/node-bundle-require": "2.68.2",
"@modern-js/utils": "0.0.0-canary-20251119023553",
"@modern-js/node-bundle-require": "0.0.0-canary-20251119023553",
"@module-federation/rsbuild-plugin": "workspace:*",
"@module-federation/bridge-react": "workspace:*",
"fs-extra": "11.3.0",
Expand All @@ -153,13 +153,12 @@
},
"devDependencies": {
"@module-federation/manifest": "workspace:*",
"@modern-js/core": "2.68.2",
"@rsbuild/core": "1.3.21",
"@modern-js/app-tools": "2.68.2",
"@modern-js/server-runtime": "2.68.2",
"@modern-js/module-tools": "2.68.2",
"@modern-js/runtime": "2.68.2",
"@modern-js/tsconfig": "2.68.2",
"@rsbuild/core": "^1.6.7",
"@modern-js/app-tools": "0.0.0-canary-20251119023553",
"@modern-js/server-runtime": "0.0.0-canary-20251119023553",
"@modern-js/module-tools": "2.68.20",
"@modern-js/runtime": "0.0.0-canary-20251119023553",
"@modern-js/tsconfig": "0.0.0-canary-20251119023553",
"@types/react": "^18.3.11",
"@types/react-dom": "^18.3.0"
},
Expand Down
Loading
Loading