Skip to content

Commit 1e1019a

Browse files
authored
Polyfill error overlay for IE9 support (#5198)
* Polyfill for IE9 support * Turn off performance option in webpack
1 parent 9e074bb commit 1e1019a

File tree

4 files changed

+3
-19
lines changed

4 files changed

+3
-19
lines changed

packages/react-error-overlay/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
"promise": "8.0.2",
5656
"raw-loader": "^0.5.1",
5757
"react": "^16.3.2",
58+
"react-app-polyfill": "^0.0.0",
5859
"react-dom": "^16.3.2",
5960
"rimraf": "^2.6.2",
6061
"settle-promise": "1.0.0",

packages/react-error-overlay/src/iframeScript.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
import './utils/pollyfills.js';
8+
import 'react-app-polyfill/ie9';
99
import React from 'react';
1010
import ReactDOM from 'react-dom';
1111
import CompileErrorContainer from './containers/CompileErrorContainer';

packages/react-error-overlay/src/utils/pollyfills.js

-18
This file was deleted.

packages/react-error-overlay/webpack.config.iframe.js

+1
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,5 @@ module.exports = {
7676
__REACT_DEVTOOLS_GLOBAL_HOOK__: '({})',
7777
}),
7878
],
79+
performance: false,
7980
};

0 commit comments

Comments
 (0)