Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NextJS - size by page #4318

Open
vio opened this issue Mar 14, 2024 · 3 comments
Open

NextJS - size by page #4318

vio opened this issue Mar 14, 2024 · 3 comments

Comments

@vio
Copy link
Member

vio commented Mar 14, 2024

@dannyrb
Copy link

dannyrb commented Mar 18, 2024

Any thoughts on this? I'd be happy to contribute to make this feature a reality.

@vio
Copy link
Member Author

vio commented Mar 18, 2024

Hi @dannyrb, really appreciated! 🙇

There are a couple of missing pieces that we need to build in order to support the extra data. Some were considered before, so I will try to go over them this week. Feel free to add your input if you have anything specific in mind.

  1. How should we load the extra data across bundle-stats plugins and @relative-ci/agent.
  2. How should we extract the data
    2.1 asset tags that can be filtered (like the existing module chunks)
    2.2 distinct metrics for each nextjs page
  3. How should we display the data
    3.1 a filter for assets
    3.2 metric entry for each page

@JoeKarow
Copy link

JoeKarow commented Apr 12, 2024

Not sure if this would be helpful, but next-bundle-analyzer by Hashicorp shows size by page route and pulls this info from the webpack stats files, I believe. This could inspire/inform how to move forward on this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants