From 00824f5f241c7bc83dd7d3a9eb6c8af88527ebbf Mon Sep 17 00:00:00 2001 From: Zack Jackson <25274700+ScriptedAlchemy@users.noreply.github.com> Date: Tue, 1 Oct 2024 17:52:59 -0700 Subject: [PATCH] Move to enhanced over internal (#4285) * update packages * update packages --- advanced-api/automatic-vendor-sharing/app1/rspack.config.js | 3 ++- advanced-api/automatic-vendor-sharing/app2/rspack.config.js | 3 ++- .../host/rspack.config.js | 3 ++- .../remote/rspack.config.js | 2 +- advanced-api/dynamic-remotes/app1/rspack.config.js | 3 ++- advanced-api/dynamic-remotes/app2/rspack.config.js | 2 +- advanced-api/dynamic-remotes/app3/rspack.config.js | 2 +- complete-react-case/component-app/rspack.config.js | 3 ++- complete-react-case/lib-app/rspack.config.js | 3 ++- complete-react-case/main-app/rspack.config.js | 3 ++- comprehensive-demo-react16/app-01/rspack.config.js | 3 ++- comprehensive-demo-react16/app-02/rspack.config.js | 3 ++- comprehensive-demo-react16/app-03/rspack.config.js | 3 ++- comprehensive-demo-react16/app-04/rspack.config.js | 3 ++- comprehensive-demo-react16/app-05/rspack.config.js | 3 ++- comprehensive-demo-react18/app-01/rspack.config.js | 3 ++- comprehensive-demo-react18/app-02/rspack.config.js | 3 ++- comprehensive-demo-react18/app-03/rspack.config.js | 3 ++- comprehensive-demo-react18/app-04/rspack.config.js | 2 +- comprehensive-demo-react18/app-05/rspack.config.js | 3 ++- rspack-webpack-interop/app-01/rspack.config.js | 3 ++- rspack-webpack-interop/app-02/rspack.config.js | 3 ++- rspack-webpack-interop/app-03/rspack.config.js | 2 +- rspack-webpack-interop/app-04/rspack.config.js | 2 +- rspack-webpack-interop/app-05/rspack.config.js | 3 ++- rspack-webpack-offload/component-app/rspack.config.js | 3 ++- rspack-webpack-offload/lib-app/rspack.config.js | 3 ++- rspack-webpack-offload/main-app/rspack.config.js | 3 ++- runtime-plugins/control-sharing/app1/rspack.config.js | 3 ++- runtime-plugins/control-sharing/app2/rspack.config.js | 3 ++- runtime-plugins/offline-remote/app2/rspack.config.js | 3 ++- runtime-plugins/remote-control/app1/rspack.config.js | 3 ++- runtime-plugins/remote-control/app2/rspack.config.js | 3 ++- runtime-plugins/remote-control/app3/rspack.config.js | 3 ++- simple-node/node-host/rspack.config.js | 5 ++--- simple-node/node-local-remote/rspack.config.js | 5 ++--- simple-node/node-remote/rspack.config.js | 4 +--- 37 files changed, 67 insertions(+), 43 deletions(-) diff --git a/advanced-api/automatic-vendor-sharing/app1/rspack.config.js b/advanced-api/automatic-vendor-sharing/app1/rspack.config.js index 1890cefc0a0..4cbb115d383 100644 --- a/advanced-api/automatic-vendor-sharing/app1/rspack.config.js +++ b/advanced-api/automatic-vendor-sharing/app1/rspack.config.js @@ -1,7 +1,8 @@ const { HtmlRspackPlugin, - container: { ModuleFederationPlugin }, } = require('@rspack/core'); +const {ModuleFederationPlugin} = require('@module-federation/enhanced/rspack') + const path = require('path'); // adds all your dependencies as shared modules diff --git a/advanced-api/automatic-vendor-sharing/app2/rspack.config.js b/advanced-api/automatic-vendor-sharing/app2/rspack.config.js index 72e2c731fb9..399141e22e0 100644 --- a/advanced-api/automatic-vendor-sharing/app2/rspack.config.js +++ b/advanced-api/automatic-vendor-sharing/app2/rspack.config.js @@ -1,7 +1,8 @@ const { HtmlRspackPlugin, - container: { ModuleFederationPlugin }, } = require('@rspack/core'); +const {ModuleFederationPlugin} = require('@module-federation/enhanced/rspack') + const path = require('path'); // adds all your dependencies as shared modules diff --git a/advanced-api/dynamic-remotes-runtime-environment-variables/host/rspack.config.js b/advanced-api/dynamic-remotes-runtime-environment-variables/host/rspack.config.js index f9fc4e28aa0..54b88e899ee 100644 --- a/advanced-api/dynamic-remotes-runtime-environment-variables/host/rspack.config.js +++ b/advanced-api/dynamic-remotes-runtime-environment-variables/host/rspack.config.js @@ -1,7 +1,8 @@ const { CopyRspackPlugin, - container: { ModuleFederationPlugin }, } = require('@rspack/core'); +const {ModuleFederationPlugin} = require('@module-federation/enhanced/rspack') + const deps = require('./package.json').dependencies; const path = require('path'); const HtmlWebpackPlugin = require('html-webpack-plugin'); diff --git a/advanced-api/dynamic-remotes-runtime-environment-variables/remote/rspack.config.js b/advanced-api/dynamic-remotes-runtime-environment-variables/remote/rspack.config.js index 0bf043c5716..ebc9e48a1e9 100644 --- a/advanced-api/dynamic-remotes-runtime-environment-variables/remote/rspack.config.js +++ b/advanced-api/dynamic-remotes-runtime-environment-variables/remote/rspack.config.js @@ -1,7 +1,7 @@ const { - container: { ModuleFederationPlugin }, } = require('@rspack/core'); const HtmlWebpackPlugin = require('html-webpack-plugin'); +const {ModuleFederationPlugin} = require('@module-federation/enhanced/rspack') const deps = require('./package.json').dependencies; diff --git a/advanced-api/dynamic-remotes/app1/rspack.config.js b/advanced-api/dynamic-remotes/app1/rspack.config.js index df550e7b58b..5bb7877c70a 100644 --- a/advanced-api/dynamic-remotes/app1/rspack.config.js +++ b/advanced-api/dynamic-remotes/app1/rspack.config.js @@ -1,7 +1,8 @@ const { HtmlRspackPlugin, - container: { ModuleFederationPlugin }, } = require('@rspack/core'); +const {ModuleFederationPlugin} = require('@module-federation/enhanced/rspack') + const path = require('path'); module.exports = { diff --git a/advanced-api/dynamic-remotes/app2/rspack.config.js b/advanced-api/dynamic-remotes/app2/rspack.config.js index 37cdea65e75..b9cbd3af6d5 100644 --- a/advanced-api/dynamic-remotes/app2/rspack.config.js +++ b/advanced-api/dynamic-remotes/app2/rspack.config.js @@ -1,7 +1,7 @@ const { HtmlRspackPlugin, - container: { ModuleFederationPlugin }, } = require('@rspack/core'); +const {ModuleFederationPlugin} = require('@module-federation/enhanced/rspack') const path = require('path'); const deps = require('./package.json').dependencies; diff --git a/advanced-api/dynamic-remotes/app3/rspack.config.js b/advanced-api/dynamic-remotes/app3/rspack.config.js index e2a197fd0e1..fe7222d6bd1 100644 --- a/advanced-api/dynamic-remotes/app3/rspack.config.js +++ b/advanced-api/dynamic-remotes/app3/rspack.config.js @@ -1,7 +1,7 @@ const { HtmlRspackPlugin, - container: { ModuleFederationPlugin }, } = require('@rspack/core'); +const {ModuleFederationPlugin} = require('@module-federation/enhanced/rspack') const path = require('path'); const deps = require('./package.json').dependencies; diff --git a/complete-react-case/component-app/rspack.config.js b/complete-react-case/component-app/rspack.config.js index d72d344e0eb..a45599f7867 100644 --- a/complete-react-case/component-app/rspack.config.js +++ b/complete-react-case/component-app/rspack.config.js @@ -1,7 +1,8 @@ const { - container: { ModuleFederationPlugin }, HtmlRspackPlugin, } = require('@rspack/core'); +const {ModuleFederationPlugin} = require('@module-federation/enhanced/rspack') + const path = require('path'); module.exports = { entry: './index.js', diff --git a/complete-react-case/lib-app/rspack.config.js b/complete-react-case/lib-app/rspack.config.js index b31abd1d035..e63f9a3934e 100644 --- a/complete-react-case/lib-app/rspack.config.js +++ b/complete-react-case/lib-app/rspack.config.js @@ -1,7 +1,8 @@ const { - container: { ModuleFederationPlugin }, HtmlRspackPlugin, } = require('@rspack/core'); +const {ModuleFederationPlugin} = require('@module-federation/enhanced/rspack') + const path = require('path'); module.exports = { entry: './index.js', diff --git a/complete-react-case/main-app/rspack.config.js b/complete-react-case/main-app/rspack.config.js index 2527e45a9a5..e159e832db3 100644 --- a/complete-react-case/main-app/rspack.config.js +++ b/complete-react-case/main-app/rspack.config.js @@ -1,7 +1,8 @@ const { - container: { ModuleFederationPlugin }, HtmlRspackPlugin, } = require('@rspack/core'); +const {ModuleFederationPlugin} = require('@module-federation/enhanced/rspack') + const path = require('path'); module.exports = { entry: './index.js', diff --git a/comprehensive-demo-react16/app-01/rspack.config.js b/comprehensive-demo-react16/app-01/rspack.config.js index 733fc9bcaee..6cc169d1a23 100644 --- a/comprehensive-demo-react16/app-01/rspack.config.js +++ b/comprehensive-demo-react16/app-01/rspack.config.js @@ -1,7 +1,8 @@ const { HtmlRspackPlugin, - container: { ModuleFederationPlugin }, } = require('@rspack/core'); +const {ModuleFederationPlugin} = require('@module-federation/enhanced/rspack') + const deps = require('./package.json').dependencies; module.exports = { diff --git a/comprehensive-demo-react16/app-02/rspack.config.js b/comprehensive-demo-react16/app-02/rspack.config.js index ddb129767a9..1ddcd07ab67 100644 --- a/comprehensive-demo-react16/app-02/rspack.config.js +++ b/comprehensive-demo-react16/app-02/rspack.config.js @@ -1,7 +1,8 @@ const { HtmlRspackPlugin, - container: { ModuleFederationPlugin }, } = require('@rspack/core'); +const {ModuleFederationPlugin} = require('@module-federation/enhanced/rspack') + const deps = require('./package.json').dependencies; module.exports = { diff --git a/comprehensive-demo-react16/app-03/rspack.config.js b/comprehensive-demo-react16/app-03/rspack.config.js index 124aab9cadf..9c6ed7424b8 100644 --- a/comprehensive-demo-react16/app-03/rspack.config.js +++ b/comprehensive-demo-react16/app-03/rspack.config.js @@ -1,7 +1,8 @@ const { HtmlRspackPlugin, - container: { ModuleFederationPlugin }, } = require('@rspack/core'); +const {ModuleFederationPlugin} = require('@module-federation/enhanced/rspack') + const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const mode = process.env.NODE_ENV || 'development'; diff --git a/comprehensive-demo-react16/app-04/rspack.config.js b/comprehensive-demo-react16/app-04/rspack.config.js index d1667c09704..cd9f91781e2 100644 --- a/comprehensive-demo-react16/app-04/rspack.config.js +++ b/comprehensive-demo-react16/app-04/rspack.config.js @@ -1,7 +1,8 @@ const { HtmlRspackPlugin, - container: { ModuleFederationPlugin }, } = require('@rspack/core'); +const {ModuleFederationPlugin} = require('@module-federation/enhanced/rspack') + const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const mode = process.env.NODE_ENV || 'development'; diff --git a/comprehensive-demo-react16/app-05/rspack.config.js b/comprehensive-demo-react16/app-05/rspack.config.js index 1736390b99f..0918cfb7a19 100644 --- a/comprehensive-demo-react16/app-05/rspack.config.js +++ b/comprehensive-demo-react16/app-05/rspack.config.js @@ -1,7 +1,8 @@ const { HtmlRspackPlugin, - container: { ModuleFederationPlugin }, } = require('@rspack/core'); +const {ModuleFederationPlugin} = require('@module-federation/enhanced/rspack') + const mode = process.env.NODE_ENV || 'development'; module.exports = { diff --git a/comprehensive-demo-react18/app-01/rspack.config.js b/comprehensive-demo-react18/app-01/rspack.config.js index 7b8e4c6996a..a6e8a586498 100644 --- a/comprehensive-demo-react18/app-01/rspack.config.js +++ b/comprehensive-demo-react18/app-01/rspack.config.js @@ -1,7 +1,8 @@ const { - container: { ModuleFederationPlugin }, HtmlRspackPlugin, } = require('@rspack/core'); +const {ModuleFederationPlugin} = require('@module-federation/enhanced/rspack') + const { RsdoctorRspackPlugin } = require('@rsdoctor/rspack-plugin'); const ReactRefreshWebpackPlugin = require('@rspack/plugin-react-refresh'); diff --git a/comprehensive-demo-react18/app-02/rspack.config.js b/comprehensive-demo-react18/app-02/rspack.config.js index f4d1aa405a4..fae91c70b26 100644 --- a/comprehensive-demo-react18/app-02/rspack.config.js +++ b/comprehensive-demo-react18/app-02/rspack.config.js @@ -1,7 +1,8 @@ const { - container: { ModuleFederationPlugin }, HtmlRspackPlugin, } = require('@rspack/core'); +const {ModuleFederationPlugin} = require('@module-federation/enhanced/rspack') + const deps = require('./package.json').dependencies; const ReactRefreshWebpackPlugin = require('@rspack/plugin-react-refresh'); const isProd = process.env.NODE_ENV === 'production'; diff --git a/comprehensive-demo-react18/app-03/rspack.config.js b/comprehensive-demo-react18/app-03/rspack.config.js index 5530ee25924..66c4addae66 100644 --- a/comprehensive-demo-react18/app-03/rspack.config.js +++ b/comprehensive-demo-react18/app-03/rspack.config.js @@ -1,7 +1,8 @@ const { - container: { ModuleFederationPlugin }, HtmlRspackPlugin, } = require('@rspack/core'); +const {ModuleFederationPlugin} = require('@module-federation/enhanced/rspack') + const isProd = process.env.NODE_ENV === 'production'; module.exports = { diff --git a/comprehensive-demo-react18/app-04/rspack.config.js b/comprehensive-demo-react18/app-04/rspack.config.js index 5f60775576d..4615e9eaf5d 100644 --- a/comprehensive-demo-react18/app-04/rspack.config.js +++ b/comprehensive-demo-react18/app-04/rspack.config.js @@ -1,6 +1,6 @@ const { - container: { ModuleFederationPlugin }, } = require('@rspack/core'); +const {ModuleFederationPlugin} = require('@module-federation/enhanced/rspack') const path = require('path'); const mode = process.env.NODE_ENV || 'development'; diff --git a/comprehensive-demo-react18/app-05/rspack.config.js b/comprehensive-demo-react18/app-05/rspack.config.js index 20e03dbb701..9a596341f5f 100644 --- a/comprehensive-demo-react18/app-05/rspack.config.js +++ b/comprehensive-demo-react18/app-05/rspack.config.js @@ -1,7 +1,8 @@ const { HtmlRspackPlugin, - container: { ModuleFederationPlugin }, } = require('@rspack/core'); +const {ModuleFederationPlugin} = require('@module-federation/enhanced/rspack') + const mode = process.env.NODE_ENV || 'development'; const isProd = process.env.NODE_ENV === 'production'; diff --git a/rspack-webpack-interop/app-01/rspack.config.js b/rspack-webpack-interop/app-01/rspack.config.js index e850385e1f6..bd8db457eee 100644 --- a/rspack-webpack-interop/app-01/rspack.config.js +++ b/rspack-webpack-interop/app-01/rspack.config.js @@ -1,7 +1,8 @@ const { - container: { ModuleFederationPlugin }, HtmlRspackPlugin, } = require('@rspack/core'); +const {ModuleFederationPlugin} = require('@module-federation/enhanced/rspack') + const deps = require('./package.json').dependencies; module.exports = { diff --git a/rspack-webpack-interop/app-02/rspack.config.js b/rspack-webpack-interop/app-02/rspack.config.js index c34c680edf3..ee254d75309 100644 --- a/rspack-webpack-interop/app-02/rspack.config.js +++ b/rspack-webpack-interop/app-02/rspack.config.js @@ -1,7 +1,8 @@ const { - container: { ModuleFederationPlugin }, HtmlRspackPlugin, } = require('@rspack/core'); +const {ModuleFederationPlugin} = require('@module-federation/enhanced/rspack') + const deps = require('./package.json').dependencies; module.exports = { diff --git a/rspack-webpack-interop/app-03/rspack.config.js b/rspack-webpack-interop/app-03/rspack.config.js index 8913f86fe5b..faea669fca9 100644 --- a/rspack-webpack-interop/app-03/rspack.config.js +++ b/rspack-webpack-interop/app-03/rspack.config.js @@ -1,7 +1,7 @@ const { - container: { ModuleFederationPlugin }, HtmlRspackPlugin, } = require('@rspack/core'); +const {ModuleFederationPlugin} = require('@module-federation/enhanced/rspack') module.exports = { entry: './src/index', diff --git a/rspack-webpack-interop/app-04/rspack.config.js b/rspack-webpack-interop/app-04/rspack.config.js index ef4a6f43afe..92611f7a966 100644 --- a/rspack-webpack-interop/app-04/rspack.config.js +++ b/rspack-webpack-interop/app-04/rspack.config.js @@ -1,7 +1,7 @@ const { - container: { ModuleFederationPlugin }, } = require('@rspack/core'); const path = require('path'); +const {ModuleFederationPlugin} = require('@module-federation/enhanced/rspack') const mode = process.env.NODE_ENV || 'development'; const prod = mode === 'production'; diff --git a/rspack-webpack-interop/app-05/rspack.config.js b/rspack-webpack-interop/app-05/rspack.config.js index 50470d47b4d..6f2e6fb96da 100644 --- a/rspack-webpack-interop/app-05/rspack.config.js +++ b/rspack-webpack-interop/app-05/rspack.config.js @@ -1,7 +1,8 @@ const { HtmlRspackPlugin, - container: { ModuleFederationPlugin }, } = require('@rspack/core'); +const {ModuleFederationPlugin} = require('@module-federation/enhanced/rspack') + const mode = process.env.NODE_ENV || 'development'; module.exports = { diff --git a/rspack-webpack-offload/component-app/rspack.config.js b/rspack-webpack-offload/component-app/rspack.config.js index 6b15de5bcce..eea76ef1066 100644 --- a/rspack-webpack-offload/component-app/rspack.config.js +++ b/rspack-webpack-offload/component-app/rspack.config.js @@ -1,7 +1,8 @@ const { - container: { ModuleFederationPlugin }, HtmlRspackPlugin, } = require('@rspack/core'); +const {ModuleFederationPlugin} = require('@module-federation/enhanced/rspack') + const path = require('path'); module.exports = { entry: './index.js', diff --git a/rspack-webpack-offload/lib-app/rspack.config.js b/rspack-webpack-offload/lib-app/rspack.config.js index 00b6a365880..4e624bebbee 100644 --- a/rspack-webpack-offload/lib-app/rspack.config.js +++ b/rspack-webpack-offload/lib-app/rspack.config.js @@ -1,7 +1,8 @@ const { - container: { ModuleFederationPlugin }, HtmlRspackPlugin, } = require('@rspack/core'); +const {ModuleFederationPlugin} = require('@module-federation/enhanced/rspack') + const path = require('path'); module.exports = { entry: './index.js', diff --git a/rspack-webpack-offload/main-app/rspack.config.js b/rspack-webpack-offload/main-app/rspack.config.js index 2527e45a9a5..e159e832db3 100644 --- a/rspack-webpack-offload/main-app/rspack.config.js +++ b/rspack-webpack-offload/main-app/rspack.config.js @@ -1,7 +1,8 @@ const { - container: { ModuleFederationPlugin }, HtmlRspackPlugin, } = require('@rspack/core'); +const {ModuleFederationPlugin} = require('@module-federation/enhanced/rspack') + const path = require('path'); module.exports = { entry: './index.js', diff --git a/runtime-plugins/control-sharing/app1/rspack.config.js b/runtime-plugins/control-sharing/app1/rspack.config.js index 37a8cd32ac3..394aa056c66 100644 --- a/runtime-plugins/control-sharing/app1/rspack.config.js +++ b/runtime-plugins/control-sharing/app1/rspack.config.js @@ -1,7 +1,8 @@ const { HtmlRspackPlugin, - container: { ModuleFederationPlugin }, } = require('@rspack/core'); +const {ModuleFederationPlugin} = require('@module-federation/enhanced/rspack') + const path = require('path'); // adds all your dependencies as shared modules diff --git a/runtime-plugins/control-sharing/app2/rspack.config.js b/runtime-plugins/control-sharing/app2/rspack.config.js index a7259944688..16455442048 100644 --- a/runtime-plugins/control-sharing/app2/rspack.config.js +++ b/runtime-plugins/control-sharing/app2/rspack.config.js @@ -1,7 +1,8 @@ const { HtmlRspackPlugin, - container: { ModuleFederationPlugin }, } = require('@rspack/core'); +const {ModuleFederationPlugin} = require('@module-federation/enhanced/rspack') + const path = require('path'); // adds all your dependencies as shared modules diff --git a/runtime-plugins/offline-remote/app2/rspack.config.js b/runtime-plugins/offline-remote/app2/rspack.config.js index 62a6b45524d..4e8ccd2d38d 100644 --- a/runtime-plugins/offline-remote/app2/rspack.config.js +++ b/runtime-plugins/offline-remote/app2/rspack.config.js @@ -1,7 +1,8 @@ const { HtmlRspackPlugin, - container: { ModuleFederationPlugin }, } = require('@rspack/core'); +const {ModuleFederationPlugin} = require('@module-federation/enhanced/rspack') + const path = require('path'); // adds all your dependencies as shared modules diff --git a/runtime-plugins/remote-control/app1/rspack.config.js b/runtime-plugins/remote-control/app1/rspack.config.js index 447af7031c7..2824ffd83e5 100644 --- a/runtime-plugins/remote-control/app1/rspack.config.js +++ b/runtime-plugins/remote-control/app1/rspack.config.js @@ -1,7 +1,8 @@ const { HtmlRspackPlugin, - container: { ModuleFederationPlugin }, } = require('@rspack/core'); +const {ModuleFederationPlugin} = require('@module-federation/enhanced/rspack') + const path = require('path'); // adds all your dependencies as shared modules diff --git a/runtime-plugins/remote-control/app2/rspack.config.js b/runtime-plugins/remote-control/app2/rspack.config.js index 62a6b45524d..4e8ccd2d38d 100644 --- a/runtime-plugins/remote-control/app2/rspack.config.js +++ b/runtime-plugins/remote-control/app2/rspack.config.js @@ -1,7 +1,8 @@ const { HtmlRspackPlugin, - container: { ModuleFederationPlugin }, } = require('@rspack/core'); +const {ModuleFederationPlugin} = require('@module-federation/enhanced/rspack') + const path = require('path'); // adds all your dependencies as shared modules diff --git a/runtime-plugins/remote-control/app3/rspack.config.js b/runtime-plugins/remote-control/app3/rspack.config.js index dc3180d08a3..90d9548535e 100644 --- a/runtime-plugins/remote-control/app3/rspack.config.js +++ b/runtime-plugins/remote-control/app3/rspack.config.js @@ -1,7 +1,8 @@ const { HtmlRspackPlugin, - container: { ModuleFederationPlugin }, } = require('@rspack/core'); +const {ModuleFederationPlugin} = require('@module-federation/enhanced/rspack') + const path = require('path'); // adds all your dependencies as shared modules diff --git a/simple-node/node-host/rspack.config.js b/simple-node/node-host/rspack.config.js index 63edd91ee4a..908112f93d0 100644 --- a/simple-node/node-host/rspack.config.js +++ b/simple-node/node-host/rspack.config.js @@ -1,6 +1,5 @@ -const { - container: { ModuleFederationPlugin }, -} = require('@rspack/core'); +const { HtmlRspackPlugin} = require('@rspack/core') +const {ModuleFederationPlugin} = require('@module-federation/enhanced/rspack') const path = require('path'); module.exports = { diff --git a/simple-node/node-local-remote/rspack.config.js b/simple-node/node-local-remote/rspack.config.js index e17853de3c9..dbff474d624 100644 --- a/simple-node/node-local-remote/rspack.config.js +++ b/simple-node/node-local-remote/rspack.config.js @@ -1,7 +1,6 @@ const path = require('path'); -const { - container: { ModuleFederationPlugin }, -} = require('@rspack/core'); +const {ModuleFederationPlugin} = require('@module-federation/enhanced/rspack') + module.exports = { mode: 'development', diff --git a/simple-node/node-remote/rspack.config.js b/simple-node/node-remote/rspack.config.js index 72eba20f818..2840ce8e62d 100644 --- a/simple-node/node-remote/rspack.config.js +++ b/simple-node/node-remote/rspack.config.js @@ -1,7 +1,5 @@ const path = require('path'); -const { - container: { ModuleFederationPlugin }, -} = require('@rspack/core'); +const {ModuleFederationPlugin} = require('@module-federation/enhanced/rspack') module.exports = { mode: 'development',