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 e0dcc71 commit c6a3f78
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/manifest-demo/webpack-host/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,10 @@ module.exports = composePlugins(withNx(), withReact(), (config, context) => {
},
},
dataPrefetch: true,
// experiments: { federationRuntime: 'hoisted' },
runtimePlugins: [path.join(__dirname, './runtimePlugin.ts')],
experiments: {
provideExternalRuntime: true,
federationRuntime: 'hoisted',
asyncStartup: true,
},
}),
);
Expand All @@ -61,6 +60,7 @@ module.exports = composePlugins(withNx(), withReact(), (config, context) => {
});
if (config.devServer) {
config.devServer.client.overlay = false;
config.devServer.devMiddleware.writeToDisk = true;
}
config.entry = './src/index.tsx';
//Temporary workaround - https://github.com/nrwl/nx/issues/16983
Expand Down
3 changes: 3 additions & 0 deletions apps/modernjs/modern.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ export default defineConfig({
'./react-component': './src/components/react-component.tsx',
},
runtimePlugins: ['./runtimePlugin.ts'],
experiments: {
asyncStartup: true,
},
filename: 'remoteEntry.js',
shared: {
'react/': {
Expand Down

0 comments on commit c6a3f78

Please sign in to comment.