-
-
Couldn't load subscription status.
- Fork 1.8k
Open
@Capricair
Description
"dependencies": { "@module-federation/nextjs-mf": "8.8.21", "@module-federation/runtime": "0.11.2", "axios": "1.7.7", "next": "12.3.1", "prop-types": "15.8.1", "react": "17.0.2", "react-dom": "17.0.2" }
// next.config.js const NextFederationPlugin = require("@module-federation/nextjs-mf"); module.exports = { reactStrictMode: true, poweredByHeader: false, webpack: (config, options) => { config.plugins.push( new NextFederationPlugin({ name: "federation", filename: "static/chunks/remoteEntry.js", exposes: { "./test": "./components/test/index.js", }, // remotes: remotes(options.isServer), // shared: {}, // extraOptions: { // exposePages: true, // }, }) ); return config; }, };
npm run dev
webpack-internal:///node_modules/@module-federation/sdk/dist/index.cjs.js
npm run build
Metadata
Metadata
Assignees
Labels
No labels