Skip to content

Commit

Permalink
chore: use new modern.js plugin for improved functionality (#3460)
Browse files Browse the repository at this point in the history
  • Loading branch information
caohuilin authored Jan 26, 2025
1 parent 0feb770 commit 21cc62c
Show file tree
Hide file tree
Showing 16 changed files with 1,754 additions and 1,485 deletions.
5 changes: 5 additions & 0 deletions .changeset/bright-planets-boil.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@module-federation/modern-js': patch
---

chore: use new modern.js plugin for improved functionality
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.26.0",
"@modern-js/runtime": "2.60.6",
"@modern-js/runtime": "2.64.0",
"@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.60.6",
"@modern-js/app-tools": "2.64.0",
"@modern-js/eslint-config": "2.59.0",
"@modern-js/tsconfig": "2.60.6",
"@modern-js/tsconfig": "2.64.0",
"@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.26.0",
"@modern-js/runtime": "2.60.6",
"@modern-js/runtime": "2.64.0",
"@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.60.6",
"@modern-js/app-tools": "2.64.0",
"@modern-js/eslint-config": "2.59.0",
"@modern-js/tsconfig": "2.60.6",
"@modern-js/tsconfig": "2.64.0",
"@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/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@
],
"dependencies": {
"@babel/runtime": "7.26.0",
"@modern-js/runtime": "2.60.6",
"@modern-js/runtime": "2.64.0",
"@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.60.6",
"@modern-js/app-tools": "2.64.0",
"@modern-js/eslint-config": "2.59.0",
"@modern-js/tsconfig": "2.60.6",
"@modern-js/tsconfig": "2.64.0",
"@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.26.0",
"@modern-js/runtime": "2.60.6",
"@modern-js/runtime": "2.64.0",
"@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.60.6",
"@modern-js/app-tools": "2.64.0",
"@modern-js/eslint-config": "2.59.0",
"@modern-js/tsconfig": "2.60.6",
"@modern-js/tsconfig": "2.64.0",
"@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.26.0",
"@modern-js/runtime": "2.60.6",
"@modern-js/runtime": "2.64.0",
"@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.60.6",
"@modern-js/app-tools": "2.64.0",
"@modern-js/eslint-config": "2.59.0",
"@modern-js/tsconfig": "2.60.6",
"@modern-js/tsconfig": "2.64.0",
"@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.26.0",
"@modern-js/runtime": "2.60.6",
"@modern-js/runtime": "2.64.0",
"@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.60.6",
"@modern-js/app-tools": "2.64.0",
"@modern-js/eslint-config": "2.59.0",
"@modern-js/tsconfig": "2.60.6",
"@modern-js/tsconfig": "2.64.0",
"@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.26.0",
"@modern-js/runtime": "2.60.6",
"@modern-js/runtime": "2.64.0",
"@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.60.6",
"@modern-js/app-tools": "2.64.0",
"@modern-js/eslint-config": "2.59.0",
"@modern-js/tsconfig": "2.60.6",
"@modern-js/tsconfig": "2.64.0",
"@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/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@
],
"dependencies": {
"@babel/runtime": "7.26.0",
"@modern-js/runtime": "2.60.6",
"@modern-js/runtime": "2.64.0",
"@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.60.6",
"@modern-js/app-tools": "2.64.0",
"@modern-js/eslint-config": "2.59.0",
"@modern-js/tsconfig": "2.60.6",
"@modern-js/tsconfig": "2.64.0",
"@types/jest": "~29.5.0",
"@types/node": "~20.12.12",
"@types/react": "~18.2.0",
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 @@ -57,7 +57,7 @@
},
"dependencies": {
"@arco-design/web-react": "^2.64.1",
"@modern-js/runtime": "2.60.6",
"@modern-js/runtime": "2.64.0",
"@module-federation/sdk": "workspace:*",
"ahooks": "^3.7.10",
"dagre": "^0.8.5",
Expand All @@ -67,12 +67,12 @@
},
"devDependencies": {
"@modern-js-app/eslint-config": "2.54.6",
"@modern-js/app-tools": "2.60.6",
"@modern-js/app-tools": "2.64.0",
"@modern-js/builder-webpack-provider": "2.46.1",
"@modern-js/eslint-config": "2.59.0",
"@modern-js/module-tools": "2.60.6",
"@modern-js/storybook": "2.60.6",
"@modern-js/tsconfig": "2.60.6",
"@modern-js/module-tools": "2.64.0",
"@modern-js/storybook": "2.64.0",
"@modern-js/tsconfig": "2.64.0",
"@module-federation/runtime": "workspace:*",
"@playwright/test": "1.49.1",
"@storybook/addon-essentials": "^8",
Expand Down
20 changes: 9 additions & 11 deletions packages/modernjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"access": "public"
},
"scripts": {
"build": "modern build"
"build": "modern-module build"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -87,25 +87,23 @@
"author": "hanric <hanric.zhang@gmail.com>",
"license": "MIT",
"dependencies": {
"@modern-js/node-bundle-require": "2.60.6",
"@modern-js/node-bundle-require": "2.64.0",
"@module-federation/rsbuild-plugin": "workspace:*",
"@modern-js/utils": "2.60.6",
"@modern-js/utils": "2.64.0",
"@module-federation/enhanced": "workspace:*",
"@module-federation/node": "workspace:*",
"@module-federation/sdk": "workspace:*",
"@swc/helpers": "0.5.13",
"hoist-non-react-statics": "3.3.2",
"node-fetch": "~3.3.0",
"react-error-boundary": "4.1.2"
},
"devDependencies": {
"@modern-js/app-tools": "2.60.6",
"@modern-js/core": "2.60.6",
"@modern-js/module-tools": "2.60.6",
"@modern-js/runtime": "2.60.6",
"@modern-js/tsconfig": "2.60.6",
"@module-federation/manifest": "workspace:*",
"@types/hoist-non-react-statics": "3.3.5"
"@modern-js/app-tools": "2.64.0",
"@modern-js/core": "2.64.0",
"@modern-js/module-tools": "2.64.0",
"@modern-js/runtime": "2.64.0",
"@modern-js/tsconfig": "2.64.0",
"@module-federation/manifest": "workspace:*"
},
"peerDependencies": {
"react": ">=17",
Expand Down
Loading

0 comments on commit 21cc62c

Please sign in to comment.