title: IE11 Script1003 expected :
body: <p>I am trying to add support for IE11. I get the errors:</p>
  <blockquote>
  <p>SCRIPT1003: Expected ':'</p>
  <p>File: vendor.bundle.js, Line: 8699, Column: 8</p>
  <p>SCRIPT5009: 'webpackJsonp' is undefined</p>
  <p>File: app.bundle.js, Line: 1, Column: 1</p>
  </blockquote>
  <p>Line 8699 throws at this:</p>
  <pre><code>style(props, propName, componentName) {
    if (props[propName] == null) {
      return undefined;
  }
  </code></pre>
  <p>It seems as though babel isn't transpiling this <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Object_initializer#New_notations_in_ECMAScript_6" rel="nofollow noreferrer">Object Initializer</a> to <code>style: (props, propName, componentName)</code>.</p>
  <p>package.json:</p>
  <pre><code>&quot;babel-core&quot;: &quot;^6.26.0&quot;,
  &quot;babel-eslint&quot;: &quot;^8.2.2&quot;,
  &quot;babel-loader&quot;: &quot;^7.0.0&quot;,
  &quot;babel-plugin-istanbul&quot;: &quot;^4.1.4&quot;,
  &quot;babel-plugin-relay&quot;: &quot;^1.4.1&quot;,
  &quot;babel-preset-env&quot;: &quot;^1.6.1&quot;,
  &quot;babel-preset-react&quot;: &quot;^6.16.0&quot;,
  &quot;babel-preset-stage-2&quot;: &quot;^6.22.0&quot;,
  &quot;babel-register&quot;: &quot;^6.18.0&quot;,
  </code></pre>
  <p>.babelrc</p>
  <pre><code>{
    &quot;presets&quot;: [
      &quot;env&quot;,
      &quot;stage-2&quot;,
      &quot;react&quot;
    ],
    &quot;plugins&quot;: [
      &quot;relay&quot;
    ],
  }
  </code></pre>
  <p>webpack.js:</p>
  <pre><code>{
    test: /\.jsx?$/,
    include: [
      path.resolve(__dirname, 'wwwroot/components'),
    ],
    loader: 'babel-loader',
  },
  </code></pre>
  <p>I presume the second error is being caused by the first.</p>
  <p>Edit:</p>
  <p>Full error code:</p>
  <pre><code>var _StyleValidator = __webpack_require__(1396);
  
  var _StyleValidator2 = _interopRequireDefault(_StyleValidator);
  
  function _interopRequireDefault(obj) { return obj &amp;&amp; obj.__esModule ? obj : { default: obj }; }
  
  var styleValidator = exports.styleValidator = new _StyleValidator2.default();
  
  function configStyleValidator(config) {
    styleValidator.setConfig(config);
  }
  
  exports.default = {
    style(props, propName, componentName) {
      if (props[propName] == null) {
        return undefined;
      }
  
      for (var _len = arguments.length, rest = Array(_len &gt; 3 ? _len - 3 : 0), _key = 3; _key &lt; _len; _key++) {
        rest[_key - 3] = arguments[_key];
      }
  
      var objErr = _propTypes2.default.object.apply(_propTypes2.default, [props, propName, componentName].concat(rest));
      if (objErr) {
        return objErr;
      }
      return styleValidator.validate(props[propName], componentName);
    }
  };
  </code></pre>