Skip to content

Commit

Permalink
Add debug plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiborza committed Sep 4, 2024
1 parent fb30fb3 commit 54304dc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ test('captures an exception', async ({ page }) => {
);
});

await page.goto('/client-error', { timeout: 45000 });
await page.goto('/client-error');
await page.locator('#caughtErrorBtn').click();
const errorEvent = await errorEventPromise;

Expand Down
12 changes: 10 additions & 2 deletions packages/solidstart/src/vite/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
import { sentryVitePlugin } from '@sentry/vite-plugin'
import { sentryVitePlugin } from '@sentry/vite-plugin';

// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
export const sentrySolidStartVite = () => sentryVitePlugin()
export const sentrySolidStartVite = () => [
...sentryVitePlugin(),
{
name: 'DebugPlugin',
buildEnd(error: unknown) {
console.log({ error });
},
},
];

0 comments on commit 54304dc

Please sign in to comment.