Skip to content

Commit 134cb13

Browse files
committed
wip
1 parent d570594 commit 134cb13

File tree

2 files changed

+44
-3
lines changed

2 files changed

+44
-3
lines changed

packages/sveltekit/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"@sentry/svelte": "7.100.0",
4545
"@sentry/types": "7.100.0",
4646
"@sentry/utils": "7.100.0",
47-
"@sentry/vite-plugin": "^0.6.1",
47+
"@sentry/vite-plugin": "^2.14.2",
4848
"magicast": "0.2.8",
4949
"sorcery": "0.11.0"
5050
},

packages/sveltekit/src/vite/sentryVitePlugins.ts

Lines changed: 43 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import type { SentryVitePluginOptions } from '@sentry/vite-plugin';
21
import type { Plugin } from 'vite';
32

43
import type { AutoInstrumentSelection } from './autoInstrument';
@@ -18,7 +17,49 @@ type SourceMapsUploadOptions = {
1817
* Options for the Sentry Vite plugin to customize and override the release creation and source maps upload process.
1918
* See [Sentry Vite Plugin Options](https://github.com/getsentry/sentry-javascript-bundler-plugins/tree/main/packages/vite-plugin#configuration) for a detailed description.
2019
*/
21-
sourceMapsUploadOptions?: Partial<SentryVitePluginOptions>;
20+
sourceMapsUploadOptions?: {
21+
/**
22+
* The auth token to use when uploading source maps to Sentry.
23+
*
24+
* Instead of specifying this option, you can also set the `SENTRY_AUTH_TOKEN` environment variable.
25+
*
26+
* To create an auth token, follow this guide:
27+
* @see https://docs.sentry.io/product/accounts/auth-tokens/#organization-auth-tokens
28+
*/
29+
authToken?: string;
30+
31+
/**
32+
* The organization slug of your Sentry organization.
33+
* Instead of specifying this option, you can also set the `SENTRY_ORG` environment variable.
34+
*/
35+
org?: string;
36+
37+
/**
38+
* The project slug of your Sentry project.
39+
* Instead of specifying this option, you can also set the `SENTRY_PROJECT` environment variable.
40+
*/
41+
project?: string;
42+
43+
/**
44+
* A glob or an array of globs that specify the build artifacts and source maps that will uploaded to Sentry.
45+
*
46+
* If this option is not specified, sensible defaults based on your adapter and svelte.config.js
47+
* setup will be used. Use this option to override these defaults, for instance if you have a
48+
* customized build setup that diverges from SvelteKit's defaults.
49+
*
50+
* The globbing patterns must follow the implementation of the `glob` package.
51+
* @see https://www.npmjs.com/package/glob#glob-primer
52+
*/
53+
assets?: string | Array<string>;
54+
55+
/**
56+
* If this flag is `true`, the Sentry plugin will collect some telemetry data and send it to Sentry.
57+
* It will not collect any sensitive or user-specific data.
58+
*
59+
* @default true
60+
*/
61+
telemetry?: boolean;
62+
};
2263
};
2364

2465
type AutoInstrumentOptions = {

0 commit comments

Comments
 (0)