text: const path = require('path')
  
  module.exports = {
    entry: './src/client/index',
    module: {
      rules: [
        {
          test: /\.tsx?$/,
          use: [
            {
              loader: 'ts-loader',
              options: {
                configFile: 'tsconfig.client.json',
              },
            },
          ],
          exclude: /node_modules/,
        },
      ],
    },
    resolve: {
      extensions: ['.ts', '.tsx', '.js', '.jsx'],
    },
    output: {
      filename: 'client.js',
      path: path.resolve(__dirname, 'dist'),
    },
    externals: {
      react: 'React',
      'react-dom': 'ReactDOM',
      'react-router': 'ReactRouterDOM',
    },
  }
  