score:5

Install babel-preset-env with npm install babel-preset-env --save-dev and use the following config in your .babelrc:

{
  "presets" : [
    ["env", {
      "targets": {
        "browsers": ["last 2 versions", "ie >= 11"]
      }
    }],
    "react",
  ]
}

You can also remove the following part from your config:

        loaders: [
            {
                /*
                 * Use Babel to compile JS and JSX files
                 * See .babelrc
                 */
                test: /\.jsx?/,
                include: APP_DIR,
                loader: 'babel-loader'
            }
        ],

Check the docs here

score:25

I know it's over a year later, but I believe the issue was your devtool configuration:

webpackConfig.devtool = 'eval-source-map';

IE11 isn't a fan of the eval() code that gets inserted by webpack for those, apparently. Using webpackConfig.devtool = 'none' (or one of the alternative values) should fix it.


Related Query

More Query from same tag