text: var path = require('path');
  
  module.exports = {
      entry: [
          './src/index.js',
      ],
      resolve: {
          modules: [
              'src',
              'node_modules',
          ],
          extensions: ['*', '.js', '.jsx', '.ts', '.tsx'],
      },
      module: {
          rules: [
              {
                  test: /\.(js|jsx|ts|tsx)$/,
                  exclude: /node_modules/,
                  use: {
                      loader: 'babel-loader',
                      options: {
                          cacheDirectory: true,
  
                          // Babel configuration is in babel.config.js because jest requires it to be there.
                      },
                  },
              },
              {
                  test: /\.scss$/,
                  use: [
                      'style-loader',
                      {
                          loader: 'css-loader',
                      },
                      {
                          loader: 'sass-loader',
                          options: {
                              sassOptions: {
                                  includePaths: ['node_modules/compass-mixins/lib', 'sass'],
                              },
                          },
                      },
                  ],
              },
          ],
      },
      externals: {
          react: 'React',
          redux: 'Redux',
          'react-redux': 'ReactRedux',
          'prop-types': 'PropTypes',
          'react-bootstrap': 'ReactBootstrap',
          'react-dom': 'ReactDOM',
      },
      output: {
          path: path.join(__dirname, '/dist'),
          publicPath: '/',
          filename: 'main.js',
      },
  };
  