var path = require('path');
var webpack = require('webpack');

module.exports = {
  module: {
    loaders: [{
      test: /\.tsx?$/,
      exclude: /(node_modules)/,
      loader: 'ts'
    }],
  },
  entry: {
    app: './src/entry.tsx'
  },
  output: {
    path: path.resolve(__dirname, "..", "dist"),
    publicPath: "/app/",
    filename: "bundle.js"
  },
  ts: { configFileName: "tsconfig.json" },
  plugins: [
    new webpack.DefinePlugin({
      'process.env.NODE_ENV': JSON.stringify('development'),
    })
  ],
  resolve: {
    extensions: [
      '',
      '.js',
      '.ts',
      '.tsx'
    ],
  },
  devServer: {
    historyApiFallback: { index: '/app/default.html' }
  }
};

@@ -201,20 +201,16 @@
 entry: %7B
-%0A   
  app: '.
@@ -224,18 +224,16 @@
 try.tsx'
-%0A 
  %7D,%0A  ou
@@ -539,61 +539,33 @@
 s: %5B
-%0A      '',%0A     
+ '',
  '.js',
-%0A     
  '.ts',
-%0A     
  '.tsx'
-%0A   
  %5D,%0A

Fix webpack config