codecov / codecov-javascript-bundler-plugins

Set of bundler plugins that allow users to upload bundle stats to Codecov.
MIT License
4 stars 1 forks source link

feat: Collect gzip info in bundler plugins #145

Closed nicholas-codecov closed 1 week ago

nicholas-codecov commented 2 weeks ago

Description

This PR adds in support for directly collect gzip values from a set of specific asset types.

Closes codecov/engineering-team#1820

Notable Changes

codecov-notifications[bot] commented 2 weeks ago

Codecov Report

Attention: Patch coverage is 27.20307% with 190 lines in your changes missing coverage. Please review.

:white_check_mark: All tests successful. No failed tests found.

Files Patch % Lines
...llup-bundle-analysis/rollupBundleAnalysisPlugin.ts 4.22% 68 Missing :warning:
...c/vite-bundle-analysis/viteBundleAnalysisPlugin.ts 4.22% 68 Missing :warning:
...ack-bundle-analysis/webpackBundleAnalysisPlugin.ts 5.40% 35 Missing :warning:
packages/bundler-plugin-core/src/index.ts 0.00% 12 Missing :warning:
packages/bundler-plugin-core/src/utils/index.ts 0.00% 6 Missing and 1 partial :warning:
Components Coverage Δ
Plugin core 97.33% <75.94%> (-0.36%) :arrow_down:
Rollup plugin 10.81% <4.22%> (+0.44%) :arrow_up:
Vite plugin 11.02% <4.22%> (+0.49%) :arrow_up:
Webpack plugin 25.14% <5.40%> (-0.91%) :arrow_down:

:loudspeaker: Thoughts on this report? Let us know!

codecov[bot] commented 2 weeks ago

Codecov Report

Attention: Patch coverage is 27.20307% with 190 lines in your changes missing coverage. Please review.

Project coverage is 76.58%. Comparing base (7597576) to head (1508063).

:white_check_mark: All tests successful. No failed tests found.

Files Patch % Lines
...llup-bundle-analysis/rollupBundleAnalysisPlugin.ts 4.22% 68 Missing :warning:
...c/vite-bundle-analysis/viteBundleAnalysisPlugin.ts 4.22% 68 Missing :warning:
...ack-bundle-analysis/webpackBundleAnalysisPlugin.ts 5.40% 35 Missing :warning:
packages/bundler-plugin-core/src/index.ts 0.00% 12 Missing :warning:
packages/bundler-plugin-core/src/utils/index.ts 0.00% 6 Missing and 1 partial :warning:
Additional details and impacted files | [Components](https://app.codecov.io/gh/codecov/codecov-javascript-bundler-plugins/pull/145/components?src=pr&el=components&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=codecov) | Coverage Δ | | |---|---|---| | [Plugin core](https://app.codecov.io/gh/codecov/codecov-javascript-bundler-plugins/pull/145/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=codecov) | `97.33% <75.94%> (-0.36%)` | :arrow_down: | | [Rollup plugin](https://app.codecov.io/gh/codecov/codecov-javascript-bundler-plugins/pull/145/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=codecov) | `10.81% <4.22%> (+0.44%)` | :arrow_up: | | [Vite plugin](https://app.codecov.io/gh/codecov/codecov-javascript-bundler-plugins/pull/145/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=codecov) | `11.02% <4.22%> (+0.49%)` | :arrow_up: | | [Webpack plugin](https://app.codecov.io/gh/codecov/codecov-javascript-bundler-plugins/pull/145/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=codecov) | `25.14% <5.40%> (-0.91%)` | :arrow_down: |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov-staging[bot] commented 2 weeks ago

Bundle Report

Changes will decrease total bundle size by 588.63kB :arrow_down:

Bundle name Size Change
@codecov/bundler-plugin-core-cjs 42.71kB 591 bytes :arrow_up:
@codecov/sveltekit-plugin-esm 909 bytes 0 bytes
@codecov/remix-vite-plugin-esm 1.1kB 123 bytes :arrow_up:
@codecov/webpack-plugin-cjs 3.77kB 186 bytes :arrow_up:
@codecov/bundler-plugin-core-esm 7.9kB 580 bytes :arrow_up:
@codecov/rollup-plugin-cjs 2.82kB 142 bytes :arrow_down:
@codecov/vite-plugin-esm 1.26kB 0 bytes
@codecov/vite-plugin-cjs 2.8kB 157 bytes :arrow_down:
@codecov/nuxt-plugin-cjs 1.41kB 6 bytes :arrow_up:
@codecov/sveltekit-plugin-cjs 1.33kB 6 bytes :arrow_up:
@codecov/nuxt-plugin-esm 855 bytes 0 bytes
@codecov/webpack-plugin-esm 1.44kB 1.44kB :arrow_down:
@codecov/example-next-app-client-array-push 907.85kB 0 bytes
@codecov/remix-vite-plugin-cjs 1.32kB 6 bytes :arrow_up:
@codecov/example-next-app-edge-server-array-push 354 bytes 0 bytes
@codecov/example-webpack-app-array-push 71.19kB 0 bytes
@codecov/rollup-plugin-esm 1.32kB 0 bytes
@codecov/example-next-app-server-cjs (removed) 342.32kB :arrow_down:
@codecov/example-vite-app-esm (removed) 150.61kB :arrow_down:
@codecov/example-rollup-app-iife (removed) 95.45kB :arrow_down:
codecov[bot] commented 2 weeks ago

Bundle Report

Changes will increase total bundle size by 2.15kB :arrow_up:

Bundle name Size Change
@codecov/sveltekit-plugin-esm 909 bytes 0 bytes
@codecov/vite-plugin-esm 2.33kB 1.07kB :arrow_up:
@codecov/webpack-plugin-cjs 3.77kB 186 bytes :arrow_up:
@codecov/webpack-plugin-esm 1.44kB 0 bytes
@codecov/example-webpack-app-array-push 71.19kB 0 bytes
@codecov/bundler-plugin-core-esm 7.9kB 580 bytes :arrow_up:
@codecov/example-vite-app-esm 150.61kB 0 bytes
@codecov/nuxt-plugin-cjs 1.41kB 6 bytes :arrow_up:
@codecov/example-sveltekit-app-client-esm 714.6kB 0 bytes
@codecov/example-sveltekit-app-server-esm 974.58kB 0 bytes
@codecov/example-nuxt-app-client-esm 237.66kB 0 bytes
@codecov/bundler-plugin-core-cjs 42.71kB 591 bytes :arrow_up:
@codecov/example-nuxt-app-server-esm 347.95kB 0 bytes
@codecov/remix-vite-plugin-cjs 1.32kB 6 bytes :arrow_up:
@codecov/example-remix-app-client-esm 252.12kB 0 bytes
@codecov/example-next-app-edge-server-array-push 354 bytes 0 bytes
@codecov/example-remix-app-server-esm 12.55kB 0 bytes
@codecov/nuxt-plugin-esm 855 bytes 0 bytes
@codecov/remix-vite-plugin-esm 975 bytes 0 bytes
@codecov/example-next-app-client-array-push 907.85kB 0 bytes
@codecov/rollup-plugin-cjs 2.82kB 142 bytes :arrow_down:
@codecov/rollup-plugin-esm 1.32kB 0 bytes
@codecov/sveltekit-plugin-cjs 1.33kB 6 bytes :arrow_up:
@codecov/example-rollup-app-iife 95.46kB 4 bytes :arrow_up:
@codecov/vite-plugin-cjs 2.8kB 157 bytes :arrow_down:
@codecov/example-next-app-server-cjs 342.32kB 0 bytes