text: const HtmlWebpackPlugin = require('html-webpack-plugin')
  
  module.exports = {
    entry: './src/index.ts',
    output: {
      filename: './bundle.js'
    },
    resolve: {
      extensions: [".ts", ".tsx", ".js", ".jsx"]
    },
    module: {
      rules: [
        { test: /\.(t|j)sx?$/, use: { loader: 'awesome-typescript-loader' } },
        { enforce: "pre", test: /\.js$/, loader: "source-map-loader" },
      ]
    },
    externals: {
      "react": "React",
      "react-dom": "ReactDOM",
    },
    devtool: "source-map",
    mode: "development",
    plugins: [
      new HtmlWebpackPlugin({template: 'src/index.html'}),
    ],
  }
  