var path = require("path");

module.exports = {
  entry: "./src/main.ts",
  output: {
    filename: "bundle.js",
    path: path.resolve(__dirname, "dist")
  },
  module: {
    rules: [
      {
        test: /\.ts$/,
        exclude: /node_modules/,
        use: ["babel-loader", "ts-loader"]
      }
    ]
  }
};

@@ -302,12 +302,63 @@
    %5D%0A  %7D
+,%0A  resolve: %7B%0A    extensions: %5B'.ts', '.js'%5D,%0A  %7D,
 %0A%7D;%0A

Improve Webpack configuration - fix bugs with unresolved modules