webpack(config) {
    config.plugins.push(
      new NextFederationPlugin({
        name: 'button',
        filename: 'static/chunks/remoteEntry.js',
        remotes: {},
        extraOptions: {
          automaticAsyncBoundary: true,
        },
        exposes: {
          './Button': './components/Button/index.tsx',
        },
        shared: {
          'styled-components': {
            eager: true,
            singleton: true,
            requiredVersion: dependencies['styled-components'],
          },
        },
      }),
    );

    return config;
  }
@param {import('webpack').Configuration} config
@returns {import('webpack').Configuration}