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

Support Angular (Vite) #101

Closed nicholas-codecov closed 1 month ago

nicholas-codecov commented 6 months ago

We need to investigate and see if Angular (Vite) is doing anything special in Vite to differentiate between client and server bundles and if not, we will add in support to auto insert into the bundle name to identify the different bundles.

suejung-sentry commented 1 month ago

I reviewed and it appears as of now (Aug 2024), Vite is only used in Angular's dev server (see https://angular.dev/tools/cli/build-system-migration#vite-as-a-development-server), so Angular (Vite) may not yet be a candidate to integrate into our production build monitoring plugin stack. We can reopen this if/when this changes!

Vite as a development server The usage of Vite in the Angular CLI is currently only within a development server capacity only. Even without using the underlying Vite build system, Vite provides a full-featured development server with client side support that has been bundled into a low dependency npm package. This makes it an ideal candidate to provide comprehensive development server functionality. The current development server process uses the new build system to generate a development build of the application in memory and passes the results to Vite to serve the application. The usage of Vite, much like the Webpack-based development server, is encapsulated within the Angular CLI dev-server builder and currently cannot be directly configured.