From f9a06d9f68dd1778dfd0ad1a1d61f9aadd9468f7 Mon Sep 17 00:00:00 2001 From: afc163 Date: Wed, 29 Aug 2018 12:01:19 +0800 Subject: [PATCH] update umi config by setting polyfill to IE11 and enable dynamicImport --- .gitignore | 4 ++-- config/config.js | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 7f0586f4..89543e7b 100755 --- a/.gitignore +++ b/.gitignore @@ -28,11 +28,11 @@ jsconfig.json *.log functions/mock -.temp/** +.temp # umi .umi .umi-production # screenshot -screenshot \ No newline at end of file +screenshot diff --git a/config/config.js b/config/config.js index 909a13a2..5fa04ed5 100644 --- a/config/config.js +++ b/config/config.js @@ -17,7 +17,8 @@ export default { default: 'zh-CN', // default zh-CN baseNavigator: true, // default true, when it is true, will use `navigator.language` overwrite default }, - polyfills: ['ie9'], + dynamicImport: true, + polyfills: ['ie11'], ...(!process.env.TEST && require('os').platform() === 'darwin' ? { dll: ['dva', 'dva/router', 'dva/saga', 'dva/fetch'], -- GitLab