Skip to content

Commit

Permalink
build: add codecov Vite plugin (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
pvcnt authored Aug 23, 2024
1 parent bf9b201 commit ada83ed
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"remeda": "^2.0.5"
},
"devDependencies": {
"@codecov/vite-plugin": "0.0.1-beta.10",
"@repo/eslint-config": "workspace:*",
"@repo/testing": "workspace:*",
"@repo/typescript-config": "workspace:*",
Expand Down
6 changes: 6 additions & 0 deletions apps/webapp/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { comlink } from "vite-plugin-comlink";
import { codecovVitePlugin } from "@codecov/vite-plugin";
import processEnv from "@repo/vite-plugin-process-env";

// https://vitejs.dev/config/
Expand All @@ -14,6 +15,11 @@ export default defineConfig({
"MERGEABLE_PR_SIZES",
],
}),
codecovVitePlugin({
enableBundleAnalysis: process.env.CODECOV_TOKEN !== undefined,
bundleName: "webapp",
uploadToken: process.env.CODECOV_TOKEN,
}),
],
worker: {
plugins: () => [comlink()],
Expand Down
48 changes: 48 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ada83ed

Please sign in to comment.