text: const path = require('path');
  const webpack = require('webpack');
  const { CleanWebpackPlugin } = require('clean-webpack-plugin');
  
  module.exports = {
    entry: ['src/singleSpaEntry.js'],
    output: {
      library: 'single-spa-home-app-new',
      libraryTarget: 'umd',
      filename: 'single-spa-home-app-new.js',
      path: path.resolve(__dirname, 'dist'),
    },
    module: {
      rules: [
        {
          test: /\.js?$/,
          exclude: [path.resolve(__dirname, 'node_modules')],
          loader: ['babel-loader', 'eslint-loader'],
        },
        {
          test: /\.html$/i,
          loader: 'html-loader',
        },
      ],
    },
    node: {
      fs: 'empty',
    },
    resolve: {
      modules: [__dirname, 'node_modules'],
    },
    plugins: [
      new CleanWebpackPlugin({
        cleanAfterEveryBuildPatterns: ['dist'],
      }),
      new webpack.optimize.LimitChunkCountPlugin({
        maxChunks: 1,
      }),
    ],
    devtool: 'source-map',
    externals: [],
    devServer: {
      historyApiFallback: true,
      writeToDisk: true,
    },
  };
  