Core-js: Event/Custom Event polyfill?

Created on 9 Nov 2017  路  3Comments  路  Source: zloirock/core-js

new Event() and new CustomEvent() don't work in older versions of IE.

The above link provides a solution and there's also custom-event-polyfill.

Are there any plans to add this to core-js/babel-polyfill?

web standards

Most helpful comment

Generally Babel and core-js focus on polyfilling language-standard functionality. Polyfilling features from other specifications isn't something they look to handle for you.

All 3 comments

Generally Babel and core-js focus on polyfilling language-standard functionality. Polyfilling features from other specifications isn't something they look to handle for you.

At this moment, only ECMAScript and closely related ECMAScript features in the scope of core-js. In the future, this position can be changed, but not soon.

That makes sense, thanks for your consideration at least!

Was this page helpful?
0 / 5 - 0 ratings