You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've been running this for a few weeks now and it was really easy to setup and has worked fine.
However, something that would be really useful is some way to filter or split bundles when reporting. In its simplest form an option to specify which file extensions to include/exclude would suffice.
We are using Vite for our project and import our styles into the entry JS file, however when building for deployment we split out the CSS stuff into a separate file. This removes the styles themselves from the bundle analysis, but all the other stuff such as images and fonts that were included are still there.
I'm only interested in the javascript parts (or possibly having a separate bundle for the styles/assets). Right now our bundle reports as 490kb which would be way to large for our scripts, but seeing as it is fonts in several formats and a few SVGs the size is quite OK. It makes it really hard to differentiates on changes though.
Something like this would be great to be able to do.
some way to filter or split bundles when reporting
From my understanding of your feedback, based on that I created this issue here: codecov/engineering-team#1562. Would you say this accurately captures the issue? If TLDR, the goal is for you to specify the files you'd like to group to have analysis of size / changes. This way the reporting is more focused on what's important to you (generic filters for JS, etc don't do the job) - Is this understanding right?
Hi. I've been using this plugin but Codecov doesn't show any data yet, only the "Configure bundle analysis" info.
Wondering what can be wrong in my setup (with Nx). Is this plugin generating some manifest file that is than uploaded to Codecov? How can I debug it. Thanks
Hi. I've been using this plugin but Codecov doesn't show any data yet, only the "Configure bundle analysis" info.
Wondering what can be wrong in my setup (with Nx). Is this plugin generating some manifest file that is than uploaded to Codecov? How can I debug it. Thanks
@estevaolucas are you able to share your repo/config?
If it's working you should be seeing logs in your build informing you of what the plugin is doing, there is also a dryRun option that you can use to have the stats information outputted to a json file in your out dir. You can see more in out plugin config docs
@nicholas-codecov thanks for you reply! I didn't notice there's a debug flag. That helped me to figure the issue on my setup: report was never uploading analysis due to missing token in enableBundleAnalysis to enable it. Thanks for you help
Hello, we are unable to upload the bundle for analysis. We are using GitHub Actions, and I have attached the following errors with debugging turned on.
$ tsc && vite build
vite v5.2.8 building for production...
[codecov] Sending telemetry data on issues and performance to Codecov. To disable telemetry, set `options.telemetry` to `false`.
transforming...
✓ 3948 modules transformed.
rendering chunks...
[codecov] Detecting CI provider
[codecov] Detected CI provider: GitHub Actions
[codecov] Using branch: tchen/bundle-analysis
[codecov] Using build: 130****
[codecov] Using slug: ****/console
[codecov] Using build: 130****
computing gzip size...
[codecov] Failed to get job URL: 404
[codecov] Using slug: ****/console
[codecov] Using build: 130****
[codecov] Using build URL: https://github.com/****/console/actions/runs/130****
[codecov] Using commit: e1****
[codecov] Using compareSha: f3****
[codecov] Using job: build-and-test
[codecov] Using pr: 517
[codecov] Using slug: ****/console
[codecov] Attempting to fetch `get-pre-signed-url`, attempt: 1
dist/index.html 1.71 kB │ gzip: 0.81 kB
.
.
.
.
dist/assets/Overview-****.js 35.15 kB │ gzip: 7.11 kB
(!) Some chunks are larger than 500 kB after minification. Consider:
- Using dynamic import() to code-split the application
- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
dist/assets/****-****.js 35.28 kB │ gzip: 13.02 kB
.
.
dist/assets/index-****.js 10,565.20 kB │ gzip: 2,997.78 kB
[codecov] `get-pre-signed-url` fetch attempt 1 failed
[codecov] Attempting to fetch `get-pre-signed-url`, attempt: 2
[codecov] `get-pre-signed-url` fetch attempt 2 failed
[codecov] Attempting to fetch `get-pre-signed-url`, attempt: 3
[codecov] `get-pre-signed-url` fetch attempt 3 failed
[codecov] `get-pre-signed-url` failed after 3 attempts
[codecov] Failed to get pre-signed URL, bad response: "400 - Bad Request"
[codecov] Error getting pre-signed URL: "Error: Failed to get pre-signed URL"
✓ built in 46.65s
Finished building UI
Hi @tonynchen, are you able to provide more information? To try and better assist are you able to share the GH organization, repo name, and potentially even the commit SHA?
Hi @tonynchen, are you able to provide more information? To try and better assist are you able to share the GH organization, repo name, and potentially even the commit SHA?
@nicholas-codecov
Hi, I am unable to share the repo/org, since this is an enterprise application. However, happy to provide other details if I can
Hi @tonynchen, are you able to provide more information? To try and better assist are you able to share the GH organization, repo name, and potentially even the commit SHA?
@nicholas-codecov Hi, I am unable to share the repo/org, since this is an enterprise application. However, happy to provide other details if I can
In that case can I get you to write in to support with those details so we can take a closer look?
Hi @tonynchen, are you able to provide more information? To try and better assist are you able to share the GH organization, repo name, and potentially even the commit SHA?
@nicholas-codecov Hi, I am unable to share the repo/org, since this is an enterprise application. However, happy to provide other details if I can
In that case can I get you to write in to support with those details so we can take a closer look?
+1 on @karl-sjogren's feedback about filtering assets by extension.
We're experiencing extremely long bundle analysis email notifications because they include many assets, like .png, .gif, .svg, .woff files and we'd like to focus on bundle analysis for JS/CSS files only.
It would be helpful to have a configuration option to filter assets by extension.
Our bundle analysis appears to have stopped working. I don't know when/why, but I've tweaked the config in Webpack and it is now uploading during asset compilation, but nothing is appearing in Codecov. Every commit (including on master) is reporting "Missing head report". I don't know where it's failing and I don't know how to debug it effectively.
Activity
codecovdesign commentedon Apr 10, 2024
@houserx-jmcc thank you for the feedback 🙏
I've added the update proposal to this WIP issue: codecov/engineering-team#1350
karl-sjogren commentedon Apr 11, 2024
We've been running this for a few weeks now and it was really easy to setup and has worked fine.
However, something that would be really useful is some way to filter or split bundles when reporting. In its simplest form an option to specify which file extensions to include/exclude would suffice.
We are using Vite for our project and import our styles into the entry JS file, however when building for deployment we split out the CSS stuff into a separate file. This removes the styles themselves from the bundle analysis, but all the other stuff such as images and fonts that were included are still there.
I'm only interested in the javascript parts (or possibly having a separate bundle for the styles/assets). Right now our bundle reports as 490kb which would be way to large for our scripts, but seeing as it is fonts in several formats and a few SVGs the size is quite OK. It makes it really hard to differentiates on changes though.
Something like this would be great to be able to do.
Also, if you look at the screenshot above the gzip size is completely wrong for some reason.
codecovdesign commentedon Apr 11, 2024
@karl-sjogren thanks for the great feedback! 🙏
From my understanding of your feedback, based on that I created this issue here: codecov/engineering-team#1562. Would you say this accurately captures the issue? If TLDR, the goal is for you to specify the files you'd like to group to have analysis of size / changes. This way the reporting is more focused on what's important to you (generic filters for JS, etc don't do the job) - Is this understanding right?
karl-sjogren commentedon Apr 11, 2024
Yes that looks good to me! Thanks!
estevaolucas commentedon Apr 29, 2024
Hi. I've been using this plugin but Codecov doesn't show any data yet, only the "Configure bundle analysis" info.
Wondering what can be wrong in my setup (with Nx). Is this plugin generating some manifest file that is than uploaded to Codecov? How can I debug it. Thanks
nicholas-codecov commentedon Apr 29, 2024
@estevaolucas are you able to share your repo/config?
If it's working you should be seeing logs in your build informing you of what the plugin is doing, there is also a
dryRunoption that you can use to have the stats information outputted to a json file in your out dir. You can see more in out plugin config docsestevaolucas commentedon Apr 29, 2024
@nicholas-codecov thanks for you reply! I didn't notice there's a
debugflag. That helped me to figure the issue on my setup: report was never uploading analysis due to missing token inenableBundleAnalysisto enable it. Thanks for you help36 remaining items
tonynchen commentedon Mar 3, 2025
Is someone able to look into this?
nicholas-codecov commentedon Mar 3, 2025
Hi @tonynchen, are you able to provide more information? To try and better assist are you able to share the GH organization, repo name, and potentially even the commit SHA?
tonynchen commentedon Mar 3, 2025
@nicholas-codecov
Hi, I am unable to share the repo/org, since this is an enterprise application. However, happy to provide other details if I can
rohan-at-sentry commentedon Mar 3, 2025
In that case can I get you to write in to support with those details so we can take a closer look?
tonynchen commentedon Mar 4, 2025
Sounds good, will do.
somewhatabstract commentedon Apr 6, 2025
Rollup plugin isn't including my ESM output for some reason; only CJS (see https://github.com/somewhatabstract/ancesdir)
nick-galluzzo commentedon Nov 20, 2025
+1 on @karl-sjogren's feedback about filtering assets by extension.
We're experiencing extremely long bundle analysis email notifications because they include many assets, like .png, .gif, .svg, .woff files and we'd like to focus on bundle analysis for JS/CSS files only.
It would be helpful to have a configuration option to filter assets by extension.
swrobel commentedon Jan 6, 2026
Any plans for support of rspack as a webpack alternative?
matthewtusker commentedon Jan 16, 2026
Our bundle analysis appears to have stopped working. I don't know when/why, but I've tweaked the config in Webpack and it is now uploading during asset compilation, but nothing is appearing in Codecov. Every commit (including on
master) is reporting "Missing head report". I don't know where it's failing and I don't know how to debug it effectively.rlorenzo commentedon Feb 24, 2026
@codecov/[email protected] doesn't support Vite 7; the peer dependency is "4.x || 5.x || 6.x".
Any plans to add Vite 7 support? Also, Vite 8 is in beta and will be released soon.
I wish I can install this and try it out.
ci: remove Codecov bundle analysis (#139)
ci: remove Codecov bundle analysis (#439)
ci: remove Codecov bundle analysis (#10)