diff --git a/config/config.ts b/config/config.ts index 653776c..52cf114 100644 --- a/config/config.ts +++ b/config/config.ts @@ -15,7 +15,7 @@ const config: IConfig = { publicPath: isDevelopment ? '/' : 'https://cdn.antd-admin.zuiidea.com/', hash: true, ignoreMomentLocale: true, - targets: { ie: 9 }, + targets: { ie: 11 }, dynamicImport: {}, theme, proxy, @@ -44,6 +44,9 @@ const config: IConfig = { chainWebpack: (memo) => { memo.module.rule('po').test(/\.po$/).use('po').loader('@lingui/loader') }, + // 快速刷新功能 https://umijs.org/config#fastrefresh + fastRefresh: {}, + esbuild: {}, } export default config diff --git a/package.json b/package.json index eee127e..3204593 100644 --- a/package.json +++ b/package.json @@ -41,6 +41,7 @@ "@lingui/macro": "^3.8.2", "@typescript-eslint/eslint-plugin": "^4.20.0", "@typescript-eslint/parser": "^4.20.0", + "@umijs/plugin-esbuild": "^1.2.0", "@umijs/preset-react": "^1.8.0", "babel-eslint": "^10.0.0", "babel-plugin-dev-expression": "^0.2.1",