File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/nextjs/src/config Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
import { SentryCliPluginOptions } from '@sentry/webpack-plugin' ;
2
+ import { WebpackPluginInstance } from 'webpack' ;
2
3
3
4
export type SentryWebpackPluginOptions = SentryCliPluginOptions ;
4
- export type SentryWebpackPlugin = { options : SentryWebpackPluginOptions } ;
5
+ export type SentryWebpackPlugin = WebpackPluginInstance & { options : SentryWebpackPluginOptions } ;
5
6
6
7
/**
7
8
* Overall Nextjs config
@@ -39,7 +40,7 @@ export type WebpackConfigFunction = (config: WebpackConfigObject, options: Build
39
40
40
41
export type WebpackConfigObject = {
41
42
devtool ?: string ;
42
- plugins ?: Array < { [ key : string ] : unknown } > ;
43
+ plugins ?: Array < WebpackPluginInstance | SentryWebpackPlugin > ;
43
44
entry : WebpackEntryProperty ;
44
45
output : { filename : string ; path : string } ;
45
46
target : string ;
You can’t perform that action at this time.
0 commit comments