From 2c0c502ced48a465cd4413424060281baf907f42 Mon Sep 17 00:00:00 2001 From: Ben Junya Date: Tue, 28 May 2019 16:13:34 -0700 Subject: [PATCH] Remove unused dependencies --- web/init/package.json | 1 - web/init/webpack.config.js | 6 +++--- web/init/yarn.lock | 12 ------------ 3 files changed, 3 insertions(+), 16 deletions(-) diff --git a/web/init/package.json b/web/init/package.json index 2bc931daa..7b7874268 100644 --- a/web/init/package.json +++ b/web/init/package.json @@ -15,7 +15,6 @@ "test": "node scripts/test.js --env=jsdom" }, "dependencies": { - "@babel/runtime": "^7.3.4", "brace": "^0.11.1", "classnames": "^2.2.6", "history": "^4.7.2", diff --git a/web/init/webpack.config.js b/web/init/webpack.config.js index 383775993..47bef687f 100644 --- a/web/init/webpack.config.js +++ b/web/init/webpack.config.js @@ -4,6 +4,7 @@ const DashboardPlugin = require("webpack-dashboard/plugin"); const UglifyJsPlugin = require('uglifyjs-webpack-plugin'); const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer'); const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin'); + const basePlugins = [ new MiniCssExtractPlugin({ filename: "styles.css" @@ -14,12 +15,12 @@ module.exports = (env, { mode }) => { let plugins = [...basePlugins]; const isProduction = mode === "production"; console.log( - 'BUILDING IN', + 'BUILD MODE:', isProduction ? 'PRODUCTION' : 'DEVELOPMENT' ); - if (isProduction) { + if (process.env.SHIP_SHOW_BUNDLE_ANALYZER) { plugins = plugins.concat([new BundleAnalyzerPlugin()]); } @@ -27,7 +28,6 @@ module.exports = (env, { mode }) => { plugins = plugins.concat([new DashboardPlugin()]) } - let optimizations = {}; if (isProduction) { optimizations = { diff --git a/web/init/yarn.lock b/web/init/yarn.lock index da2bdd846..66fddf76c 100644 --- a/web/init/yarn.lock +++ b/web/init/yarn.lock @@ -674,13 +674,6 @@ resolved "https://registry.yarnpkg.com/@babel/preset-stage-0/-/preset-stage-0-7.0.0.tgz#999aaec79ee8f0a763042c68c06539c97c6e0646" integrity sha512-FBMd0IiARPtH5aaOFUVki6evHiJQiY0pFy7fizyRF7dtwc+el3nwpzvhb9qBNzceG1OIJModG1xpE0DDFjPXwA== -"@babel/runtime@^7.3.4": - version "7.3.4" - resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.3.4.tgz#73d12ba819e365fcf7fd152aed56d6df97d21c83" - integrity sha512-IvfvnMdSaLBateu0jfsYIpZTxAc2cKEXEMiezGGN75QcBcecDUKd3PgLAncT0oOgxKy8dd8hrJKj9MfzgfZd6g== - dependencies: - regenerator-runtime "^0.12.0" - "@babel/template@^7.0.0": version "7.0.0" resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.0.0.tgz#c2bc9870405959c89a9c814376a2ecb247838c80" @@ -10008,11 +10001,6 @@ regenerator-runtime@^0.11.0: resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9" integrity sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg== -regenerator-runtime@^0.12.0: - version "0.12.1" - resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.12.1.tgz#fa1a71544764c036f8c49b13a08b2594c9f8a0de" - integrity sha512-odxIc1/vDlo4iZcfXqRYFj0vpXFNoGdKMAUieAlFYO6m/nl5e9KR/beGf41z4a1FI+aQgtjhuaSlDxQ0hmkrHg== - regenerator-transform@^0.10.0: version "0.10.1" resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.10.1.tgz#1e4996837231da8b7f3cf4114d71b5691a0680dd"