Skip to content

Commit

Permalink
chore: update webpack and modern configurations to enable async startup
Browse files Browse the repository at this point in the history
  • Loading branch information
ScriptedAlchemy committed Jan 22, 2025
1 parent c6a3f78 commit e1ddc90
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/runtime-demo/3005-runtime-host/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = composePlugins(withNx(), withReact(), (config, context) => {
config.plugins.push(
new ModuleFederationPlugin({
name: 'runtime_host',
experiments: { federationRuntime: 'hoisted' },
experiments: { asyncStartup: true },
remotes: {
// remote2: 'runtime_remote2@http://localhost:3007/remoteEntry.js',
remote1: 'runtime_remote1@http://127.0.0.1:3006/mf-manifest.json',
Expand Down
3 changes: 3 additions & 0 deletions apps/runtime-demo/3006-runtime-remote/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ module.exports = composePlugins(
'./WebpackPng': './src/components/WebpackPng',
},
shareStrategy: 'loaded-first',
experiments: {
asyncStartup: true,
},
shared: {
lodash: {
singleton: true,
Expand Down
2 changes: 1 addition & 1 deletion packages/enhanced/test/ConfigTestCases.embedruntime.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ jest.resetModules();
describeCases({
name: 'ConfigTestCases',
federation: {
federationRuntime: 'hoisted',
asyncStartup: true,
},
});

0 comments on commit e1ddc90

Please sign in to comment.