text: const path = require('path');
  const HtmlWebpackPlugin = require('html-webpack-plugin');
  
  module.exports = {
    entry: './src/index.tsx',
    output: {
      path: path.resolve(__dirname, './build'),
      filename: 'bundle.js'
    },
    resolve: {
      extensions: ['.js', '.json', '.ts', '.tsx'],
      alias: {
        'dom-listener': path.resolve(__dirname, '../../dist')
      }
    },
    module: {
      rules: [{ test: /\.tsx?$/, loader: 'ts-loader' }]
    },
    plugins: [
      new HtmlWebpackPlugin({
        template: './index.html'
      })
    ]
  };
  