Просмотр исходного кода

bugfix: fix#3891 ,dll config error

陈帅 6 лет назад
Родитель
Сommit
c91bcd28f0
2 измененных файлов с 3 добавлено и 3 удалено
  1. 1 1
      config/config.js
  2. 2 2
      package.json

+ 1 - 1
config/config.js

@@ -38,7 +38,7 @@ const plugins = [
         ? {
             dll: {
               include: ['dva', 'dva/router', 'dva/saga', 'dva/fetch'],
-              exclude: ['@babel/runtime'],
+              exclude: ['@babel/runtime', 'netlify-lambda'],
             },
             hardSource: false,
           }

+ 2 - 2
package.json

@@ -78,7 +78,6 @@
     "react-dom": "^16.7.0",
     "react-fittext": "^1.0.0",
     "react-media": "^1.9.2",
-    "serverless-http": "^1.9.1",
     "umi": "^2.4.4",
     "umi-plugin-react": "^1.7.2",
     "umi-request": "^1.0.5"
@@ -123,7 +122,8 @@
     "tslint": "^5.12.1",
     "tslint-config-prettier": "^1.17.0",
     "tslint-react": "^3.6.0",
-    "umi-plugin-ga": "^1.1.3"
+    "umi-plugin-ga": "^1.1.3",
+    "serverless-http": "^1.9.1"
   },
   "optionalDependencies": {
     "puppeteer": "^1.12.1"