text: const path = require('path');
  module.exports = {
    entry: './src/Slideshow.jsx',
    output: {
      libraryTarget: 'commonjs2',
      path: path.resolve(__dirname, 'lib'),
      filename: 'index.js',
    },
    module: {
      rules: [
        {
          test: /\.(js|jsx)$/,
          exclude: /(node_modules)/,
          use: ['babel-loader'],
        },
        {
          test: /\.(css)$/,
          exclude: /(node_modules)/,
          use: ['style-loader', 'css-loader'],
        },
      ],
    },
    resolve: {
      extensions: ['.js', '.jsx'],
    },
    externals: {
      react: 'commonjs react',
    },
  };