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. }, }, }, ], }, externals: { react: 'React', redux: 'Redux', 'react-redux': 'ReactRedux', 'prop-types': 'PropTypes', 'react-bootstrap': 'ReactBootstrap', }, output: { path: path.join(__dirname, '/dist'), publicPath: '/', filename: 'main.js', }, };