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: Extend es to esm #109

Closed nicholas-codecov closed 3 months ago

nicholas-codecov commented 3 months ago

Description

This PR modifies how the plugins handle different output formats and their aliases to create a unified output across plugins, as well as extending es to esm.

This PR also modifies how the integration tests are run, moving to a new format using a script to generate the various configs needed to test different bundler versions and output formats reducing the amount of tests that are actually needed to be written.

Closes #102

Notable Changes

codecov-staging[bot] commented 3 months ago

Codecov Report

Attention: Patch coverage is 0% with 10 lines in your changes are missing coverage. Please review.

Files Patch % Lines
...ack-bundle-analysis/webpackBundleAnalysisPlugin.ts 0.00% 6 Missing :warning:
...llup-bundle-analysis/rollupBundleAnalysisPlugin.ts 0.00% 2 Missing :warning:
...c/vite-bundle-analysis/viteBundleAnalysisPlugin.ts 0.00% 2 Missing :warning:
Components Coverage Δ
Plugin core 95.40% <ø> (ø)
Rollup plugin 7.14% <0.00%> (-0.11%) :arrow_down:
Vite plugin 7.14% <0.00%> (-0.11%) :arrow_down:
Webpack plugin 31.00% <0.00%> (-1.64%) :arrow_down:

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

codecov[bot] commented 3 months ago

Codecov Report

Attention: Patch coverage is 0% with 10 lines in your changes are missing coverage. Please review.

Project coverage is 82.32%. Comparing base (c6dc57c) to head (0580aef).

Files Patch % Lines
...ack-bundle-analysis/webpackBundleAnalysisPlugin.ts 0.00% 5 Missing and 1 partial :warning:
...llup-bundle-analysis/rollupBundleAnalysisPlugin.ts 0.00% 2 Missing :warning:
...c/vite-bundle-analysis/viteBundleAnalysisPlugin.ts 0.00% 2 Missing :warning:
Additional details and impacted files | [Components](https://app.codecov.io/gh/codecov/codecov-javascript-bundler-plugins/pull/109/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/109/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=codecov) | `95.40% <ø> (ø)` | | | [Rollup plugin](https://app.codecov.io/gh/codecov/codecov-javascript-bundler-plugins/pull/109/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=codecov) | `7.14% <0.00%> (-0.11%)` | :arrow_down: | | [Vite plugin](https://app.codecov.io/gh/codecov/codecov-javascript-bundler-plugins/pull/109/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=codecov) | `7.14% <0.00%> (-0.11%)` | :arrow_down: | | [Webpack plugin](https://app.codecov.io/gh/codecov/codecov-javascript-bundler-plugins/pull/109/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=codecov) | `31.00% <0.00%> (-1.64%)` | :arrow_down: |

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

codecov-staging[bot] commented 3 months ago

Bundle Report

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

Bundle name Size Change
@codecov/rollup-plugin-cjs 11.58kB 150 bytes :arrow_up:
@codecov/rollup-plugin-es 11.22kB 10.42kB :arrow_up:
@codecov/webpack-plugin-es 904 bytes 0 bytes
@codecov/example-webpack-app-array-push 71.19kB 71.19kB :arrow_up:
@codecov/bundler-plugin-core-es 5.5kB 141.28kB :arrow_down:
@codecov/vite-plugin-cjs 11.6kB 155 bytes :arrow_up:
@codecov/vite-plugin-es 11.25kB 11.25kB :arrow_up:
@codecov/example-next-app-client 894.27kB 0 bytes
@codecov/bundler-plugin-core-cjs (removed) 151.04kB :arrow_down:
@codecov/example-rollup-app-iife (removed) 256.9kB :arrow_down:
@codecov/webpack-plugin-cjs (removed) 13.52kB :arrow_down:
@codecov/example-vite-app-es (removed) 150.59kB :arrow_down:
codecov[bot] commented 3 months ago

Bundle Report

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

Bundle name Size Change
@codecov/example-rollup-app-iife 256.9kB 0 bytes
@codecov/webpack-plugin-cjs 14.03kB 509 bytes :arrow_up:
@codecov/bundler-plugin-core-es 146.78kB 141.28kB :arrow_up:
@codecov/webpack-plugin-es 904 bytes 0 bytes
@codecov/rollup-plugin-cjs 11.58kB 150 bytes :arrow_up:
@codecov/rollup-plugin-es 794 bytes 0 bytes
@codecov/example-next-app-edge-server 306 bytes 0 bytes
@codecov/example-next-app-client 894.27kB 0 bytes
@codecov/example-next-app-server 325.59kB 0 bytes
@codecov/vite-plugin-cjs 11.6kB 155 bytes :arrow_up:
@codecov/example-webpack-app-array-push 71.19kB 0 bytes
@codecov/vite-plugin-es 864 bytes 0 bytes
@codecov/bundler-plugin-core-cjs 151.04kB 0 bytes
@codecov/example-vite-app-esm 150.59kB 150.59kB :arrow_up:
@codecov/example-vite-app-es (removed) 150.59kB :arrow_down: