diff --git a/examples/remix-vite/package.json b/examples/remix-vite/package.json index e0ba9e1c..950f9ba5 100644 --- a/examples/remix-vite/package.json +++ b/examples/remix-vite/package.json @@ -36,6 +36,7 @@ "typescript": "^5.1.6", "vite": "^5.1.4", "vite-plugin-istanbul": "^6.0.2", + "vite-plugin-canyon": "*", "vite-tsconfig-paths": "^4.3.1" }, "engines": { diff --git a/examples/remix-vite/vite.config.ts b/examples/remix-vite/vite.config.ts index 5b734224..c10cb26f 100644 --- a/examples/remix-vite/vite.config.ts +++ b/examples/remix-vite/vite.config.ts @@ -2,6 +2,7 @@ import { vitePlugin as remix } from "@remix-run/dev"; import { defineConfig } from "vite"; import tsconfigPaths from "vite-tsconfig-paths"; import Istanbul from 'vite-plugin-istanbul' +import Canyon from 'vite-plugin-canyon' export default defineConfig({ plugins: [ @@ -9,6 +10,10 @@ export default defineConfig({ ignoredRouteFiles: ["**/*.css"], }), tsconfigPaths(), - Istanbul() + Istanbul(), + Canyon({ + // 设置对比分支 + compareTarget: "main", + }), ], });