text: // eslint-disable-next-line
  const HtmlWebpackPlugin = require('html-webpack-plugin');
  
  module.exports = {
    mode: 'development',
    context: __dirname,
    entry: './index.tsx',
    devtool: 'source-map',
    resolve: {
      extensions: ['.ts', '.tsx', '.js', '.json'],
    },
  
    module: {
      rules: [
        { test: /\.tsx?$/, loader: 'awesome-typescript-loader' },
        { enforce: 'pre', test: /\.js$/, loader: 'source-map-loader' },
      ],
    },
  
    plugins: [
      new HtmlWebpackPlugin({
        template: 'index.html',
      }),
    ],
  };
  