add babel-polyfill in commons

This commit is contained in:
noraiz-anwar
2018-11-09 14:57:10 +05:00
committed by Noraiz Anwar
parent da60f9ec32
commit ce41896deb
2 changed files with 2 additions and 5 deletions

View File

@@ -1,10 +1,6 @@
import React from 'react';
import ReactDOM from 'react-dom';
// babel-polyfill must be imported last because of https://github.com/facebook/react/issues/8379
// which otherwise causes "Objects are not valid as a react child" errors in IE11.
import 'babel-polyfill';
class ReactRendererException extends Error {
constructor(message) {
super(`ReactRendererException: ${message}`);