Skip to content

Commit

Permalink
change bundle analyzer to a dev dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
goplayoutside3 committed Oct 5, 2023
1 parent eaef472 commit 0647d78
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions packages/app-root/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions packages/app-root/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ const bundleAnalyzer = withBundleAnalyzer({
enabled: process.env.ANALYZE === 'true',
})

const nextConfig = {

}
const nextConfig = {}

export default bundleAnalyzer(nextConfig)
4 changes: 3 additions & 1 deletion packages/app-root/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -27,5 +26,8 @@
},
"engines": {
"node": ">=18.13"
},
"devDependencies": {
"@next/bundle-analyzer": "~13.5.4"
}
}

0 comments on commit 0647d78

Please sign in to comment.