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({
7070 debugIdUploadPlugin,
7171 bundleSizeOptimizationsPlugin,
7272} : SentryUnpluginFactoryOptions ) {
73- return createUnplugin < Options , true > ( ( userOptions , unpluginMetaContext ) => {
73+ return createUnplugin < Options | undefined , true > ( ( userOptions = { } , unpluginMetaContext ) => {
7474 const logger = createLogger ( {
7575 prefix : `[sentry-${ unpluginMetaContext . framework } -plugin]` ,
7676 silent : userOptions . silent ?? false ,
Original file line number Diff line number Diff line change @@ -258,7 +258,7 @@ const sentryUnplugin = sentryUnpluginFactory({
258258} ) ;
259259
260260// 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 ;
262262
263263export type { Options as SentryEsbuildPluginOptions } from "@sentry/bundler-plugin-core" ;
264264export { sentryCliBinaryExists } from "@sentry/bundler-plugin-core" ;
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ const sentryUnplugin = sentryUnpluginFactory({
6767} ) ;
6868
6969// 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 ;
7171
7272export type { Options as SentryRollupPluginOptions } from "@sentry/bundler-plugin-core" ;
7373export { sentryCliBinaryExists } from "@sentry/bundler-plugin-core" ;
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ const sentryUnplugin = sentryUnpluginFactory({
6969} ) ;
7070
7171// 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 ;
7373
7474export type { Options as SentryVitePluginOptions } from "@sentry/bundler-plugin-core" ;
7575export { sentryCliBinaryExists } from "@sentry/bundler-plugin-core" ;
Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ const sentryUnplugin = sentryUnpluginFactory({
174174} ) ;
175175
176176// 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 ;
178178
179179export { sentryCliBinaryExists } from "@sentry/bundler-plugin-core" ;
180180export type { Options as SentryWebpackPluginOptions } from "@sentry/bundler-plugin-core" ;
You can’t perform that action at this time.
0 commit comments