Yoast / YoastSEO.js

Analyze content on a page and give SEO feedback as well as render a snippet preview.
GNU General Public License v3.0
403 stars 170 forks source link

Added babel and react development dependencies to solve IE11 issues in yoast components. #2091

Closed hansjovis closed 5 years ago

hansjovis commented 5 years ago

Summary

This PR can be summarized in the following changelog entry:

Relevant technical choices:

Test instructions

This PR can be tested by following these steps:

Fixes #2086

afercia commented 5 years ago

Tested on native Windows 10, IE 11

afercia commented 5 years ago

Just added babel-polyfill in the webpack config dev entry array and it works in IE11. At this point I guess the previous polyfills from ./polyfills maybe can be removed?

hansjovis commented 5 years ago

Just added babel-polyfill in the webpack config dev entry array and it works in IE11. At this point I guess the previous polyfills from ./polyfills maybe can be removed?

Adding babel-polyfill to the webpack.config.dev.js file of the webpack example does indeed fix the example. I added it to the code in the latest commit. I think you are right that polyfills.js can be removed from the entry array, since babel-polyfill introduces them by default. I will remove it.

igorschoester commented 5 years ago

Closing in favor of https://github.com/Yoast/yoast-components/pull/820