Skip to content

Commit 12b63e8

Browse files
feat: add Codecov bundler plugin
1 parent c9ba4c7 commit 12b63e8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

vite.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
import { defineConfig } from 'vitest/config'
2+
import { codecovVitePlugin } from "@codecov/vite-plugin";
23

34
export default defineConfig({
5+
plugins: [
6+
// Put the Codecov vite plugin after all other plugins
7+
codecovVitePlugin({
8+
enableBundleAnalysis: process.env.CODECOV_TOKEN !== undefined,
9+
bundleName: "example-javascript",
10+
uploadToken: process.env.CODECOV_TOKEN,
11+
}),
12+
],
413
test: {
514
coverage: {
615
provider: 'v8',

0 commit comments

Comments
 (0)