text: const path = require('path');
  const webpack = require('webpack');
  const { CleanWebpackPlugin } = require('clean-webpack-plugin');
  
  module.exports = {
    mode: 'production',
    entry: {
      library: ['react', 'react-dom'],
    },
    output: {
      filename: 'library_[hash:8].dll.js',
      path: path.join(__dirname, 'build/library'),
      library: '[name]_[hash]',
    },
    plugins: [
      new CleanWebpackPlugin(),
      new webpack.DllPlugin({
        name: '[name]_[hash]',
        path: path.resolve(__dirname, 'build/library/[name].json'),
      }),
    ],
  };
  