diff --git a/config/config.js b/config/config.js index dcede46482ae0eb96bb72252f301c6231eba2e15..978ee3e98ea65874cc04c856f2dc929d0176b6d9 100644 --- a/config/config.js +++ b/config/config.js @@ -25,7 +25,10 @@ export default { polyfills: ['ie11'], ...(!process.env.TEST && os.platform() === 'darwin' ? { - dll: ['dva', 'dva/router', 'dva/saga', 'dva/fetch'], + dll: { + include: ['dva', 'dva/router', 'dva/saga', 'dva/fetch'], + exclude: ['@babel/runtime'], + }, hardSource: true, } : {}), diff --git a/package.json b/package.json index 557f3451a6b62472aa6552748b52cf2633e2a676..a8614a908ee84c21b9f4e0dfc9acbe04000a421e 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "precommit": "npm run lint-staged", "presite": "npm run generate-mock && cd functions && npm install", - "start": "cross-env APP_TYPE=site ANALYZE=1 umi dev", + "start": "cross-env APP_TYPE=site umi dev", "start:no-mock": "cross-env MOCK=none umi dev", "build": "umi build", "site": "npm run presite && cross-env APP_TYPE=site npm run build && firebase deploy",