Extending built-in natives in ES6 with Babel

Extending native classes is not supported by Babel.
It was removed in version 5.2.17 (see this commit)

It was removed because it was not working properly, see the bug: https://phabricator.babeljs.io/T1424

It’s unlikely it will be ever added because it’s not a feature that can be simulated. We will have to wait for native support in browsers (some already support it now in experimental mode). That also means it will currently behave differently in different browsers.

Leave a Comment