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

前端 未结 6 1142
花落未央
花落未央 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:51

    For what it's worth I was having issues with the new Google Search Console and my React app (create-react-app). After adding the es6shim, all was resolved.

    I added the below to my public index.html page.

    
    

提交回复
热议问题