Skip to content

Commit

Permalink
Move to enhanced over internal (#4285)
Browse files Browse the repository at this point in the history
* update packages

* update packages
  • Loading branch information
ScriptedAlchemy authored Oct 2, 2024
1 parent 26a6e62 commit 00824f5
Show file tree
Hide file tree
Showing 37 changed files with 67 additions and 43 deletions.
3 changes: 2 additions & 1 deletion advanced-api/automatic-vendor-sharing/app1/rspack.config.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 2 additions & 1 deletion advanced-api/automatic-vendor-sharing/app2/rspack.config.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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');
Expand Down
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
3 changes: 2 additions & 1 deletion advanced-api/dynamic-remotes/app1/rspack.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
const {
HtmlRspackPlugin,
container: { ModuleFederationPlugin },
} = require('@rspack/core');
const {ModuleFederationPlugin} = require('@module-federation/enhanced/rspack')

const path = require('path');

module.exports = {
Expand Down
2 changes: 1 addition & 1 deletion advanced-api/dynamic-remotes/app2/rspack.config.js
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion advanced-api/dynamic-remotes/app3/rspack.config.js
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
3 changes: 2 additions & 1 deletion complete-react-case/component-app/rspack.config.js
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
3 changes: 2 additions & 1 deletion complete-react-case/lib-app/rspack.config.js
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
3 changes: 2 additions & 1 deletion complete-react-case/main-app/rspack.config.js
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
3 changes: 2 additions & 1 deletion comprehensive-demo-react16/app-01/rspack.config.js
Original file line number Diff line number Diff line change
@@ -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 = {
Expand Down
3 changes: 2 additions & 1 deletion comprehensive-demo-react16/app-02/rspack.config.js
Original file line number Diff line number Diff line change
@@ -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 = {
Expand Down
3 changes: 2 additions & 1 deletion comprehensive-demo-react16/app-03/rspack.config.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
3 changes: 2 additions & 1 deletion comprehensive-demo-react16/app-04/rspack.config.js
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
3 changes: 2 additions & 1 deletion comprehensive-demo-react16/app-05/rspack.config.js
Original file line number Diff line number Diff line change
@@ -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 = {
Expand Down
3 changes: 2 additions & 1 deletion comprehensive-demo-react18/app-01/rspack.config.js
Original file line number Diff line number Diff line change
@@ -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');

Expand Down
3 changes: 2 additions & 1 deletion comprehensive-demo-react18/app-02/rspack.config.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
3 changes: 2 additions & 1 deletion comprehensive-demo-react18/app-03/rspack.config.js
Original file line number Diff line number Diff line change
@@ -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 = {
Expand Down
2 changes: 1 addition & 1 deletion comprehensive-demo-react18/app-04/rspack.config.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
3 changes: 2 additions & 1 deletion comprehensive-demo-react18/app-05/rspack.config.js
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
3 changes: 2 additions & 1 deletion rspack-webpack-interop/app-01/rspack.config.js
Original file line number Diff line number Diff line change
@@ -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 = {
Expand Down
3 changes: 2 additions & 1 deletion rspack-webpack-interop/app-02/rspack.config.js
Original file line number Diff line number Diff line change
@@ -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 = {
Expand Down
2 changes: 1 addition & 1 deletion rspack-webpack-interop/app-03/rspack.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const {
container: { ModuleFederationPlugin },
HtmlRspackPlugin,
} = require('@rspack/core');
const {ModuleFederationPlugin} = require('@module-federation/enhanced/rspack')

module.exports = {
entry: './src/index',
Expand Down
2 changes: 1 addition & 1 deletion rspack-webpack-interop/app-04/rspack.config.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
3 changes: 2 additions & 1 deletion rspack-webpack-interop/app-05/rspack.config.js
Original file line number Diff line number Diff line change
@@ -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 = {
Expand Down
3 changes: 2 additions & 1 deletion rspack-webpack-offload/component-app/rspack.config.js
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
3 changes: 2 additions & 1 deletion rspack-webpack-offload/lib-app/rspack.config.js
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
3 changes: 2 additions & 1 deletion rspack-webpack-offload/main-app/rspack.config.js
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
3 changes: 2 additions & 1 deletion runtime-plugins/control-sharing/app1/rspack.config.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 2 additions & 1 deletion runtime-plugins/control-sharing/app2/rspack.config.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 2 additions & 1 deletion runtime-plugins/offline-remote/app2/rspack.config.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 2 additions & 1 deletion runtime-plugins/remote-control/app1/rspack.config.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 2 additions & 1 deletion runtime-plugins/remote-control/app2/rspack.config.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 2 additions & 1 deletion runtime-plugins/remote-control/app3/rspack.config.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 2 additions & 3 deletions simple-node/node-host/rspack.config.js
Original file line number Diff line number Diff line change
@@ -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 = {
Expand Down
5 changes: 2 additions & 3 deletions simple-node/node-local-remote/rspack.config.js
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
4 changes: 1 addition & 3 deletions simple-node/node-remote/rspack.config.js
Original file line number Diff line number Diff line change
@@ -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',
Expand Down

0 comments on commit 00824f5

Please sign in to comment.