Best way to polyfill ES6 features in React app that uses create-react-app

前端 未结 6 1141
花落未央
花落未央 2020-12-02 06:53

I\'ve been testing my React.js application on internet explorer, and finding that some ES6/7 code like Array.prototype.includes() breaks it.

I\'m using

6条回答
  •  抹茶落季
    2020-12-02 07:42

    I had the same problem. A solution from Daniel Loiterton didn't work for me. But! I added one more import from core-js import 'core-js/modules/es6.symbol'; and this works for me on IE11.

提交回复
热议问题