diff --git a/config/config.js b/config/config.js index 43434e1077433ea5508efa20ad0ed67b7655e6b2..766780e5e0343bf5758812017b78db7e15baea3d 100644 --- a/config/config.js +++ b/config/config.js @@ -20,6 +20,7 @@ export default { default: 'zh-CN', // default zh-CN baseNavigator: true, // default true, when it is true, will use `navigator.language` overwrite default }, + polyfills: ['ie9'], ...( require('os').platform() === 'darwin' ? { diff --git a/src/global.js b/src/global.js deleted file mode 100644 index 2100827dfb735ce3b96b8b91e8ebeca35d63cd42..0000000000000000000000000000000000000000 --- a/src/global.js +++ /dev/null @@ -1 +0,0 @@ -import './polyfill'; diff --git a/src/polyfill.js b/src/polyfill.js deleted file mode 100644 index ad1eb6b9a483f1ee5ad2950729109058360d3aa5..0000000000000000000000000000000000000000 --- a/src/polyfill.js +++ /dev/null @@ -1,12 +0,0 @@ -import '@babel/polyfill'; -import 'url-polyfill'; -import setprototypeof from 'setprototypeof'; - -// React depends on set/map/requestAnimationFrame -// https://reactjs.org/docs/javascript-environment-requirements.html -// import 'core-js/es6/set'; -// import 'core-js/es6/map'; -// import 'raf/polyfill'; 只兼容到IE10不需要,况且fetch的polyfill whatwg-fetch也只兼容到IE10 - -// https://github.com/umijs/umi/issues/413 -Object.setPrototypeOf = setprototypeof;