-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
feat(astro)!: Remove unstable_sentryVitePluginOptions #23370
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -52,16 +52,6 @@ describe('Sentry Astro build-time options type', () => { | |
| excludeReplayWorker: true, | ||
| }, | ||
|
|
||
| // --- UnstableVitePluginOptions --- | ||
| unstable_sentryVitePluginOptions: { | ||
| sourcemaps: { | ||
| assets: './dist/**/*', | ||
| }, | ||
| bundleSizeOptimizations: { | ||
| excludeDebugStatements: true, | ||
| }, | ||
| }, | ||
|
|
||
| // --- SentryOptions specific options --- | ||
| enabled: true, | ||
| clientInitPath: './src/sentry.client.config.ts', | ||
|
|
@@ -84,15 +74,6 @@ describe('Sentry Astro build-time options type', () => { | |
| autoInstrumentation: { | ||
| requestHandler: true, | ||
| }, | ||
| unstable_sentryVitePluginOptions: { | ||
| sourcemaps: { | ||
| assets: './dist/**/*', | ||
| }, | ||
| bundleSizeOptimizations: { | ||
| excludeDebugStatements: true, | ||
| }, | ||
| }, | ||
|
|
||
| // Deprecated sourceMapsUploadOptions | ||
| sourceMapsUploadOptions: { | ||
| enabled: true, | ||
|
|
@@ -102,11 +83,6 @@ describe('Sentry Astro build-time options type', () => { | |
| telemetry: false, | ||
| assets: './build/**/*', | ||
| filesToDeleteAfterUpload: ['./build/*.map'], | ||
| unstable_sentryVitePluginOptions: { | ||
| sourcemaps: { | ||
| ignore: ['./build/*.spec.js'], | ||
| }, | ||
| }, | ||
| }, | ||
| }; | ||
|
|
||
|
|
@@ -159,24 +135,14 @@ describe('Sentry Astro build-time options type', () => { | |
| expectTypeOf(baseOptions).toEqualTypeOf<SentryOptions>(); | ||
| }); | ||
|
|
||
| it('supports UnstableVitePluginOptions at top level', () => { | ||
| const viteOptions: SentryOptions = { | ||
| it('rejects the removed `unstable_sentryVitePluginOptions`', () => { | ||
| const options: SentryOptions = { | ||
| // @ts-expect-error - removed in v11, use the top-level build options instead | ||
| unstable_sentryVitePluginOptions: { | ||
| org: 'override-org', | ||
| project: 'override-project', | ||
| sourcemaps: { | ||
| assets: './custom-dist/**/*', | ||
| ignore: ['./custom-dist/ignore/**/*'], | ||
| }, | ||
| bundleSizeOptimizations: { | ||
| excludeDebugStatements: true, | ||
| excludeTracing: false, | ||
| }, | ||
| debug: true, | ||
| silent: false, | ||
| sourcemaps: { assets: './dist/**/*' }, | ||
| }, | ||
| }; | ||
|
|
||
| expectTypeOf(viteOptions).toEqualTypeOf<SentryOptions>(); | ||
| expectTypeOf(options).toEqualTypeOf<SentryOptions>(); | ||
| }); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: The type test for Suggested FixRemove the Prompt for AI AgentDid we get this right? 👍 / 👎 to inform future reviews. |
||
| }); | ||
Uh oh!
There was an error while loading. Please reload this page.