Commit f9a06d9f authored by afc163's avatar afc163

update umi config by setting polyfill to IE11 and enable dynamicImport

parent b55ce83e
...@@ -28,11 +28,11 @@ jsconfig.json ...@@ -28,11 +28,11 @@ jsconfig.json
*.log *.log
functions/mock functions/mock
.temp/** .temp
# umi # umi
.umi .umi
.umi-production .umi-production
# screenshot # screenshot
screenshot screenshot
\ No newline at end of file
...@@ -17,7 +17,8 @@ export default { ...@@ -17,7 +17,8 @@ export default {
default: 'zh-CN', // default zh-CN default: 'zh-CN', // default zh-CN
baseNavigator: true, // default true, when it is true, will use `navigator.language` overwrite default 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' ...(!process.env.TEST && require('os').platform() === 'darwin'
? { ? {
dll: ['dva', 'dva/router', 'dva/saga', 'dva/fetch'], dll: ['dva', 'dva/router', 'dva/saga', 'dva/fetch'],
......
Markdown is supported
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