@@ -2,11 +2,10 @@ import type {
2
2
CustomPluginOptions ,
3
3
LoadResult ,
4
4
ObjectHook ,
5
+ PluginContext ,
5
6
ResolveIdResult ,
6
- MinimalPluginContext as RollupMinimalPluginContext ,
7
7
Plugin as RollupPlugin ,
8
- PluginContext as RollupPluginContext ,
9
- TransformPluginContext as RollupTransformPluginContext ,
8
+ TransformPluginContext ,
10
9
TransformResult ,
11
10
} from 'rollup'
12
11
import type {
@@ -65,23 +64,7 @@ export interface HotUpdatePluginContext {
65
64
environment : DevEnvironment
66
65
}
67
66
68
- export interface MinimalPluginContext
69
- extends RollupMinimalPluginContext ,
70
- PluginContextExtension { }
71
-
72
- export interface PluginContext
73
- extends RollupPluginContext ,
74
- PluginContextExtension { }
75
-
76
- export interface ResolveIdPluginContext
77
- extends RollupPluginContext ,
78
- PluginContextExtension { }
79
-
80
- export interface TransformPluginContext
81
- extends RollupTransformPluginContext ,
82
- PluginContextExtension { }
83
-
84
- // Argument Rollup types to have the PluginContextExtension
67
+ // Augment Rollup types to have the PluginContextExtension
85
68
declare module 'rollup' {
86
69
export interface MinimalPluginContext extends PluginContextExtension { }
87
70
}
@@ -127,7 +110,7 @@ export interface Plugin<A = any> extends RollupPlugin<A> {
127
110
*/
128
111
resolveId ?: ObjectHook <
129
112
(
130
- this : ResolveIdPluginContext ,
113
+ this : PluginContext ,
131
114
source : string ,
132
115
importer : string | undefined ,
133
116
options : {
0 commit comments