bumped deps, altered sentry implementation

This commit is contained in:
Luke Hagar
2024-02-07 13:48:36 -06:00
parent ade0d20942
commit 657575be81
5 changed files with 824 additions and 826 deletions

View File

@@ -21,26 +21,24 @@
"@sveltejs/vite-plugin-svelte": "^3.0.0", "@sveltejs/vite-plugin-svelte": "^3.0.0",
"@tailwindcss/forms": "^0.5.3", "@tailwindcss/forms": "^0.5.3",
"@tailwindcss/typography": "^0.5.9", "@tailwindcss/typography": "^0.5.9",
"@tsparticles/svelte": "^3.0.0",
"@types/node": "^20.10.6", "@types/node": "^20.10.6",
"@typescript-eslint/eslint-plugin": "^6.17.0", "@typescript-eslint/eslint-plugin": "^6.17.0",
"@typescript-eslint/parser": "^6.17.0", "@typescript-eslint/parser": "^6.17.0",
"@vercel/analytics": "^1.0.1", "@vercel/analytics": "^1.0.1",
"atropos": "^2.0.2",
"autoprefixer": "^10.4.14", "autoprefixer": "^10.4.14",
"eslint": "^8.56.0", "eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0", "eslint-config-prettier": "^9.1.0",
"eslint-plugin-svelte3": "^4.0.0", "eslint-plugin-svelte3": "^4.0.0",
"postcss": "^8.4.24", "postcss": "^8.4.24",
"posthog-js": "^1.96.1",
"prettier": "^3.1.1", "prettier": "^3.1.1",
"prettier-plugin-svelte": "^3.1.2", "prettier-plugin-svelte": "^3.1.2",
"svelte": "^4.0.0", "svelte": "^4.0.0",
"svelte-check": "^3.4.3", "svelte-check": "^3.4.3",
"@tsparticles/svelte": "^3.0.0",
"svelte-preprocess": "^5.1.3", "svelte-preprocess": "^5.1.3",
"tailwindcss": "^3.4.0", "tailwindcss": "^3.4.0",
"tslib": "^2.5.2", "tslib": "^2.5.2",
"tsparticles": "^3.0.3", "tsparticles": "3.1.0",
"typescript": "^5.0.4", "typescript": "^5.0.4",
"vite": "^5.0.0" "vite": "^5.0.0"
}, },

View File

@@ -1,5 +1,6 @@
// This file is used to initialize Sentry on the client side. // This file is used to initialize Sentry on the client side.
import { dev } from '$app/environment'; import { dev } from '$app/environment';
import { handleErrorWithSentry, replayIntegration } from '@sentry/sveltekit';
import * as Sentry from '@sentry/sveltekit'; import * as Sentry from '@sentry/sveltekit';
Sentry.init({ Sentry.init({
@@ -18,8 +19,8 @@ Sentry.init({
replaysOnErrorSampleRate: 1.0, replaysOnErrorSampleRate: 1.0,
// If you don't want to use Session Replay, just remove the line below: // If you don't want to use Session Replay, just remove the line below:
integrations: [new Sentry.Replay()] integrations: [replayIntegration()]
}); });
// If you have a custom error handler, pass it to `handleErrorWithSentry` // If you have a custom error handler, pass it to `handleErrorWithSentry`
export const handleError = Sentry.handleErrorWithSentry(); export const handleError = handleErrorWithSentry();

View File

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 4.9 KiB

View File

@@ -1,8 +1,8 @@
import { sentrySvelteKit } from '@sentry/sveltekit'; import { sentrySvelteKit } from '@sentry/sveltekit';
import { sveltekit } from '@sveltejs/kit/vite'; import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
/** @type {import('vite').UserConfig} */ export default defineConfig({
const config = {
plugins: [ plugins: [
sentrySvelteKit({ sentrySvelteKit({
sourceMapsUploadOptions: { sourceMapsUploadOptions: {
@@ -14,10 +14,7 @@ const config = {
}), }),
sveltekit() sveltekit()
], ],
ssr: { ssr: {
noExternal: ['tsparticles', 'tsparticles-slim', 'tsparticles-engine', 'svelte-particles'] // add all tsparticles libraries here, they're not made for SSR, they're client only noExternal: ['tsparticles', 'tsparticles-slim', 'tsparticles-engine', 'svelte-particles'] // add all tsparticles libraries here, they're not made for SSR, they're client only
} }
}; });
export default config;

1630
yarn.lock

File diff suppressed because it is too large Load Diff