From 0647d781c3ab45c154cac9d8fde9781a4fa0aa6b Mon Sep 17 00:00:00 2001 From: Delilah <23665803+goplayoutside3@users.noreply.github.com> Date: Thu, 5 Oct 2023 13:25:38 -0500 Subject: [PATCH] change bundle analyzer to a dev dependency --- packages/app-root/README.md | 4 ++++ packages/app-root/next.config.mjs | 4 +--- packages/app-root/package.json | 4 +++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/app-root/README.md b/packages/app-root/README.md index b80ae7dbe6..207888da6b 100644 --- a/packages/app-root/README.md +++ b/packages/app-root/README.md @@ -21,6 +21,10 @@ yarn build yarn start ``` +### Analyze bundle sizes + +This app has `@next/bundle-analyzer` as a dev dependency. To use it, run `ANALYZE=true yarn build`. + ## Technologies - @zooniverse/panoptes-js - Panoptes API javascript client diff --git a/packages/app-root/next.config.mjs b/packages/app-root/next.config.mjs index 1cb604164e..a2a6e99052 100644 --- a/packages/app-root/next.config.mjs +++ b/packages/app-root/next.config.mjs @@ -4,8 +4,6 @@ const bundleAnalyzer = withBundleAnalyzer({ enabled: process.env.ANALYZE === 'true', }) -const nextConfig = { - -} +const nextConfig = {} export default bundleAnalyzer(nextConfig) diff --git a/packages/app-root/package.json b/packages/app-root/package.json index 2858271b08..ae86f0d83a 100644 --- a/packages/app-root/package.json +++ b/packages/app-root/package.json @@ -13,7 +13,6 @@ }, "type": "module", "dependencies": { - "@next/bundle-analyzer": "~13.5.4", "@zooniverse/async-states": "~0.0.1", "@zooniverse/grommet-theme": "~3.1.1", "@zooniverse/panoptes-js": "~0.4.1", @@ -27,5 +26,8 @@ }, "engines": { "node": ">=18.13" + }, + "devDependencies": { + "@next/bundle-analyzer": "~13.5.4" } }