Unverified Commit 1e1019ab authored by Joe Haddad's avatar Joe Haddad Committed by GitHub
Browse files

Polyfill error overlay for IE9 support (#5198)

* Polyfill for IE9 support

* Turn off performance option in webpack
parent 9e074bbf
3 merge requests!12191Lim.Pisey.168:/Identified - We are currently investigating reports of missing build logs. The issue has been identified and a resolution is in progress. We will provide a further update when available.Mar 21, 09:02 UTC,!12853brikk,!5717Automatically extract project file structure from build bundle file
Showing with 3 additions and 19 deletions
+3 -19
......@@ -55,6 +55,7 @@
"promise": "8.0.2",
"raw-loader": "^0.5.1",
"react": "^16.3.2",
"react-app-polyfill": "^0.0.0",
"react-dom": "^16.3.2",
"rimraf": "^2.6.2",
"settle-promise": "1.0.0",
......
......@@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
import './utils/pollyfills.js';
import 'react-app-polyfill/ie9';
import React from 'react';
import ReactDOM from 'react-dom';
import CompileErrorContainer from './containers/CompileErrorContainer';
......
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
if (typeof Promise === 'undefined') {
// Rejection tracking prevents a common issue where React gets into an
// inconsistent state due to an error, but it gets swallowed by a Promise,
// and the user has no idea what causes React's erratic future behavior.
require('promise/lib/rejection-tracking').enable();
window.Promise = require('promise/lib/es6-extensions.js');
}
// Object.assign() is commonly used with React.
// It will use the native implementation if it's present and isn't buggy.
Object.assign = require('object-assign');
......@@ -76,4 +76,5 @@ module.exports = {
__REACT_DEVTOOLS_GLOBAL_HOOK__: '({})',
}),
],
performance: false,
};
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment