diff --git a/config/config.js b/config/config.js index 934569dca48e2f34d327a9fedebdb19f42ba5678..c68107bdd5f5fdb1453f4938e2186370df42a49c 100644 --- a/config/config.js +++ b/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, } diff --git a/package.json b/package.json index af94ef99ea0cda1b4ac6f02c9a5ea3c4bd2bbd6a..a478f14944891584342080f671b4181740f3dbe9 100644 --- a/package.json +++ b/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"