File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ export function sentryUnpluginFactory({
70
70
debugIdUploadPlugin,
71
71
bundleSizeOptimizationsPlugin,
72
72
} : SentryUnpluginFactoryOptions ) {
73
- return createUnplugin < Options , true > ( ( userOptions , unpluginMetaContext ) => {
73
+ return createUnplugin < Options | undefined , true > ( ( userOptions = { } , unpluginMetaContext ) => {
74
74
const logger = createLogger ( {
75
75
prefix : `[sentry-${ unpluginMetaContext . framework } -plugin]` ,
76
76
silent : userOptions . silent ?? false ,
Original file line number Diff line number Diff line change @@ -258,7 +258,7 @@ const sentryUnplugin = sentryUnpluginFactory({
258
258
} ) ;
259
259
260
260
// eslint-disable-next-line @typescript-eslint/no-explicit-any
261
- export const sentryEsbuildPlugin : ( options : Options ) => any = sentryUnplugin . esbuild ;
261
+ export const sentryEsbuildPlugin : ( options ? : Options ) => any = sentryUnplugin . esbuild ;
262
262
263
263
export type { Options as SentryEsbuildPluginOptions } from "@sentry/bundler-plugin-core" ;
264
264
export { sentryCliBinaryExists } from "@sentry/bundler-plugin-core" ;
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ const sentryUnplugin = sentryUnpluginFactory({
67
67
} ) ;
68
68
69
69
// eslint-disable-next-line @typescript-eslint/no-explicit-any
70
- export const sentryRollupPlugin : ( options : Options ) => any = sentryUnplugin . rollup ;
70
+ export const sentryRollupPlugin : ( options ? : Options ) => any = sentryUnplugin . rollup ;
71
71
72
72
export type { Options as SentryRollupPluginOptions } from "@sentry/bundler-plugin-core" ;
73
73
export { sentryCliBinaryExists } from "@sentry/bundler-plugin-core" ;
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ const sentryUnplugin = sentryUnpluginFactory({
69
69
} ) ;
70
70
71
71
// eslint-disable-next-line @typescript-eslint/no-explicit-any
72
- export const sentryVitePlugin : ( options : Options ) => any = sentryUnplugin . vite ;
72
+ export const sentryVitePlugin : ( options ? : Options ) => any = sentryUnplugin . vite ;
73
73
74
74
export type { Options as SentryVitePluginOptions } from "@sentry/bundler-plugin-core" ;
75
75
export { sentryCliBinaryExists } from "@sentry/bundler-plugin-core" ;
Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ const sentryUnplugin = sentryUnpluginFactory({
174
174
} ) ;
175
175
176
176
// eslint-disable-next-line @typescript-eslint/no-explicit-any
177
- export const sentryWebpackPlugin : ( options : Options ) => any = sentryUnplugin . webpack ;
177
+ export const sentryWebpackPlugin : ( options ? : Options ) => any = sentryUnplugin . webpack ;
178
178
179
179
export { sentryCliBinaryExists } from "@sentry/bundler-plugin-core" ;
180
180
export type { Options as SentryWebpackPluginOptions } from "@sentry/bundler-plugin-core" ;
You can’t perform that action at this time.
0 commit comments