Skip to content

Commit 09edcfa

Browse files
Fix formatting
1 parent 15198e3 commit 09edcfa

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

packages/astro/src/integration/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,14 @@ export const sentryAstro = (options: SentryOptions = {}): AstroIntegration => {
7979
assets: uploadOptions.assets ?? [getSourcemapsAssetsGlob(config)],
8080
filesToDeleteAfterUpload:
8181
uploadOptions?.filesToDeleteAfterUpload ?? updatedFilesToDeleteAfterUpload,
82-
...unstable_sentryVitePluginOptions?.sourcemaps
82+
...unstable_sentryVitePluginOptions?.sourcemaps,
8383
},
8484
bundleSizeOptimizations: {
8585
...options.bundleSizeOptimizations,
8686
// TODO: with a future version of the vite plugin (probably 2.22.0) this re-mapping is not needed anymore
8787
// ref: https://github.com/getsentry/sentry-javascript-bundler-plugins/pull/582
8888
excludePerformanceMonitoring: options.bundleSizeOptimizations?.excludeTracing,
89-
...unstable_sentryVitePluginOptions?.bundleSizeOptimizations
89+
...unstable_sentryVitePluginOptions?.bundleSizeOptimizations,
9090
},
9191
}),
9292
),

packages/astro/src/integration/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ type SourceMapsOptions = {
9797
*
9898
* Furthermore, some options are untested with Astro specifically. Use with caution.
9999
*/
100-
unstable_sentryVitePluginOptions?: Partial<SentryVitePluginOptions>
100+
unstable_sentryVitePluginOptions?: Partial<SentryVitePluginOptions>;
101101
};
102102

103103
type BundleSizeOptimizationOptions = {

packages/astro/test/integration/index.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ describe('sentryAstro integration', () => {
205205
it('prefers user-specified unstable vite plugin options and merges them with default values', async () => {
206206
const integration = sentryAstro({
207207
bundleSizeOptimizations: {
208-
excludeReplayShadowDom: true
208+
excludeReplayShadowDom: true,
209209
},
210210
sourceMapsUploadOptions: {
211211
enabled: true,
@@ -221,9 +221,9 @@ describe('sentryAstro integration', () => {
221221
ignore: ['bar/*.js'],
222222
},
223223
bundleSizeOptimizations: {
224-
excludeReplayIframe: true
225-
}
226-
}
224+
excludeReplayIframe: true,
225+
},
226+
},
227227
},
228228
});
229229
// @ts-expect-error - the hook exists, and we only need to pass what we actually use
@@ -249,8 +249,8 @@ describe('sentryAstro integration', () => {
249249
},
250250
bundleSizeOptimizations: {
251251
excludeReplayShadowDom: true,
252-
excludeReplayIframe: true
253-
}
252+
excludeReplayIframe: true,
253+
},
254254
}),
255255
);
256256
});

0 commit comments

Comments
 (0)