1- import type { BuildTimeOptionsBase , UnstableVitePluginOptions } from '@sentry/core' ;
1+ import type { BuildTimeOptionsBase } from '@sentry/core' ;
22import type { SentryVitePluginOptions } from '@sentry/bundler-plugins/vite' ;
33import type { AutoInstrumentSelection } from './autoInstrument' ;
44import type { SupportedSvelteKitAdapters } from './detectAdapter' ;
@@ -9,41 +9,40 @@ export type CustomSentryVitePluginOptions = SentryVitePluginOptions & {
99} ;
1010
1111/** Options for the Sentry SvelteKit plugin */
12- export type SentrySvelteKitPluginOptions = BuildTimeOptionsBase &
13- UnstableVitePluginOptions < Partial < SentryVitePluginOptions > > & {
14- /**
15- * The Sentry plugin will automatically instrument certain parts of your SvelteKit application at build time.
16- * Set this option to `false` to disable this behavior or what is intrumented by passing an object.
17- *
18- * Auto instrumentation includes:
19- * - Universal `load` functions in `+page.(js|ts)` files
20- * - Server-only `load` functions in `+page.server.(js|ts)` files
21- *
22- * @default true (meaning, the plugin will instrument all of the above)
23- */
24- autoInstrument ?: boolean | AutoInstrumentSelection ;
12+ export type SentrySvelteKitPluginOptions = BuildTimeOptionsBase & {
13+ /**
14+ * The Sentry plugin will automatically instrument certain parts of your SvelteKit application at build time.
15+ * Set this option to `false` to disable this behavior or what is intrumented by passing an object.
16+ *
17+ * Auto instrumentation includes:
18+ * - Universal `load` functions in `+page.(js|ts)` files
19+ * - Server-only `load` functions in `+page.server.(js|ts)` files
20+ *
21+ * @default true (meaning, the plugin will instrument all of the above)
22+ */
23+ autoInstrument ?: boolean | AutoInstrumentSelection ;
2524
26- /**
27- * Specify which SvelteKit adapter you're using.
28- * By default, the SDK will attempt auto-detect the used adapter at build time and apply the
29- * correct config for source maps upload or auto-instrumentation.
30- *
31- * Currently, the SDK supports the following adapters:
32- * - node (@sveltejs/adapter-node)
33- * - auto (@sveltejs/adapter-auto) only Vercel
34- * - vercel (@sveltejs/adapter-auto) only Serverless functions, no edge runtime
35- *
36- * Set this option, if the SDK detects the wrong adapter or you want to use an adapter
37- * that is not in this list. If you specify 'other', you'll most likely need to configure
38- * source maps upload yourself.
39- *
40- * @default {} the SDK attempts to auto-detect the used adapter at build time
41- */
42- adapter ?: SupportedSvelteKitAdapters ;
25+ /**
26+ * Specify which SvelteKit adapter you're using.
27+ * By default, the SDK will attempt auto-detect the used adapter at build time and apply the
28+ * correct config for source maps upload or auto-instrumentation.
29+ *
30+ * Currently, the SDK supports the following adapters:
31+ * - node (@sveltejs/adapter-node)
32+ * - auto (@sveltejs/adapter-auto) only Vercel
33+ * - vercel (@sveltejs/adapter-auto) only Serverless functions, no edge runtime
34+ *
35+ * Set this option, if the SDK detects the wrong adapter or you want to use an adapter
36+ * that is not in this list. If you specify 'other', you'll most likely need to configure
37+ * source maps upload yourself.
38+ *
39+ * @default {} the SDK attempts to auto-detect the used adapter at build time
40+ */
41+ adapter ?: SupportedSvelteKitAdapters ;
4342
44- /**
45- * If this flag is `true`, the Sentry plugins will automatically upload source maps to Sentry.
46- * @default true`.
47- */
48- autoUploadSourceMaps ?: boolean ;
49- } ;
43+ /**
44+ * If this flag is `true`, the Sentry plugins will automatically upload source maps to Sentry.
45+ * @default true`.
46+ */
47+ autoUploadSourceMaps ?: boolean ;
48+ } ;
0 commit comments