From 55b99dfb9329f9c21c3b2ba9937c312944b229e3 Mon Sep 17 00:00:00 2001 From: Pierre Bertet Date: Fri, 7 Feb 2020 15:15:21 +0000 Subject: [PATCH] Finance: enable tree shaking --- apps/finance/app/package.json | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/apps/finance/app/package.json b/apps/finance/app/package.json index 245c39ffb3..4fdcd07727 100644 --- a/apps/finance/app/package.json +++ b/apps/finance/app/package.json @@ -8,7 +8,7 @@ "@aragon/api-react": "^2.0.0-beta.9", "@aragon/templates-tokens": "^1.3.0", "@aragon/ui": "^1.2.1", - "@babel/polyfill": "^7.0.0", + "@babel/polyfill": "^7.8.3", "bn.js": "^4.11.8", "core-js": "^2.6.5", "date-fns": "2.0.0-alpha.22", @@ -24,12 +24,12 @@ "web3-utils": "^1.0.0-beta.30" }, "devDependencies": { - "@babel/core": "^7.0.0", - "@babel/plugin-proposal-class-properties": "^7.0.0", - "@babel/preset-env": "^7.1.0", - "@babel/preset-react": "^7.0.0", + "@babel/core": "^7.8.4", + "@babel/plugin-proposal-class-properties": "^7.8.3", + "@babel/preset-env": "^7.8.4", + "@babel/preset-react": "^7.8.3", "babel-eslint": "^10.0.1", - "babel-plugin-styled-components": "^1.10.6", + "babel-plugin-styled-components": "^1.10.7", "eslint": "^5.6.0", "eslint-config-prettier": "^3.1.0", "eslint-config-standard": "^12.0.0", @@ -40,13 +40,14 @@ "eslint-plugin-promise": "^4.0.1", "eslint-plugin-react": "^7.5.1", "eslint-plugin-standard": "^4.0.0", - "parcel-bundler": "^1.10.1", + "parcel-bundler": "^1.12.4", + "parcel-plugin-bundle-visualiser": "^1.2.0", "prettier": "^1.11.1" }, "scripts": { "lint": "eslint ./src", "start": "npm run sync-assets && npm run watch:script & parcel serve index.html -p 3002 --out-dir build/", - "build": "npm run sync-assets && npm run build:script && parcel build index.html --out-dir build/ --public-url \".\"", + "build": "npm run sync-assets && npm run build:script && parcel build index.html --no-cache --experimental-scope-hoisting --out-dir build/ --public-url \".\"", "build:script": "parcel build src/script.js --out-dir build/", "watch:script": "parcel watch src/script.js --out-dir build/ --no-hmr", "sync-assets": "copy-aragon-ui-assets -n aragon-ui ./build && rsync -rtu ./public/ ./build",