Closed hansjovis closed 5 years ago
Tested on native Windows 10, IE 11
babel-polyfill
in the webpack config or at the top of the file equivalent to render.js
. Or both? Not sure.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?
Just added
babel-polyfill
in the webpack config deventry
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.
Closing in favor of https://github.com/Yoast/yoast-components/pull/820
Summary
This PR can be summarized in the following changelog entry:
yoast-components
example work in IE11 again.Relevant technical choices:
Test instructions
This PR can be tested by following these steps:
yoast-components
repository andyarn link
it toyoastseo.js
, if you have not already done so in the past.yoastseo.js
and runyarn
to make sure that the new dev dependencies are installed.yoast-components
root folder, run yarn to make sure everything is updated.yoast-components
runyarn start
to start the example.localhost:3333
inside IE11 to go to the example.http://10.0.2.2:3333
if you are using a VM instead).localhost:3333
.Fixes #2086