babel-polyfill not shimming Array.prototype.includes

Do you want to request a feature or report a bug?

Looks like a bug to me. I’ve tried StackOverflow but didn’t get an answer.

What is the current behavior?
In Internet Explorer 11 throwing Error

Object does not support property or method “includes”
Original German error message (Das Objekt unterstützt die Eigenschaft oder Methode “includes” nicht);

If the current behavior is a bug, please provide the steps to reproduce.

This is the client part of a VueSSR application. Works of course fine on real browsers.

module.exports = {
  target: 'web',
  entry: {
    app: ['babel-polyfill', 'picturefill', './src/entry-client1.js']
  },
  output: {
    path: path.resolve('public/dist'),
    publicPath: '/dist
  },
  plugins: {
    new VueSSRClientPlugin()
  }
  /* some other stuff */
}

What is the expected behavior?

Babel polyfill should be shimming.

If this is a feature request, what is motivation or use case for changing the behavior?

Please mention other relevant information such as the browser version, Node.js version, webpack version, and Operating System.

Client Test: Windows 7, Browser IE11
Build System: Node 9.8.0, Webpack 4.1.1, MacOS

Author: Fantashit

1 thought on “babel-polyfill not shimming Array.prototype.includes

  1. @mkastner You are correct, this was already fixed #6739 but haven’t been released, also we are planning to implement a CI feature to detect these incompatible changes #6764.

    This should be fixed in our next release.

Comments are closed.