text: const { merge } = require('webpack-merge');
  const ModuleFederationPlugin = require('webpack/lib/container/ModuleFederationPlugin');
  const commonConfig = require('./webpack.common');
  const packageJson = require('../package.json');
  
  const devConfig = {
      mode: 'development',
      output: {
          publicPath: 'http://localhost:8081/'
      },
      devServer: {
          port: 8081,
          historyApiFallback: {
              index: '/index.html'
          }
      },
      plugins: [
          new  ModuleFederationPlugin({
              name: 'marketing',
              filename: 'remoteEntry.js',
              exposes: {
                  './bootstrap':'./src/bootstrap.js'
              },
              shared: packageJson.dependencies,
          })
      ]
  };
  
  module.exports = merge(commonConfig, devConfig);