Skip to content

Commit 969bc85

Browse files
committed
refactor: add ie polyfills
1 parent f99dfd7 commit 969bc85

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import 'react-app-polyfill/ie9'; // For IE 9-11 support
2-
import 'react-app-polyfill/ie11'; // For IE 11 support
2+
import 'react-app-polyfill/stable';
3+
// import 'react-app-polyfill/ie11'; // For IE 11 support
34
import './polyfill'
45
import React from 'react';
56
import ReactDOM from 'react-dom';

src/polyfill.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/*
22
* required polyfills
33
*/
4+
import "core-js";
5+
import 'core-js/features/set/map';
46

57
/** IE9, IE10 and IE11 requires all of the following polyfills. **/
68
// import 'core-js/es6/symbol'
@@ -12,12 +14,12 @@
1214
// import 'core-js/es6/math'
1315
// import 'core-js/es6/string'
1416
// import 'core-js/es6/date'
15-
import 'core-js/es6/array'
17+
// import 'core-js/es6/array'
1618
// import 'core-js/es6/regexp'
17-
import 'core-js/es6/map'
19+
// import 'core-js/es6/map'
1820
// import 'core-js/es6/weak-map'
19-
import 'core-js/es6/set'
20-
import 'core-js/es7/object'
21+
// import 'core-js/es6/set'
22+
// import 'core-js/es7/object'
2123

2224
/** IE10 and IE11 requires the following for the Reflect API. */
2325
// import 'core-js/es6/reflect'

0 commit comments

Comments
 (0)