diff --git a/apps/manifest-demo/webpack-host/webpack.config.js b/apps/manifest-demo/webpack-host/webpack.config.js index b9efd43734..835a911b45 100644 --- a/apps/manifest-demo/webpack-host/webpack.config.js +++ b/apps/manifest-demo/webpack-host/webpack.config.js @@ -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, }, }), ); @@ -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 diff --git a/apps/modernjs/modern.config.ts b/apps/modernjs/modern.config.ts index e503e34552..6d4c62fc09 100644 --- a/apps/modernjs/modern.config.ts +++ b/apps/modernjs/modern.config.ts @@ -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/': {