@@ -2,11 +2,10 @@ import type {
22 CustomPluginOptions ,
33 LoadResult ,
44 ObjectHook ,
5+ PluginContext ,
56 ResolveIdResult ,
6- MinimalPluginContext as RollupMinimalPluginContext ,
77 Plugin as RollupPlugin ,
8- PluginContext as RollupPluginContext ,
9- TransformPluginContext as RollupTransformPluginContext ,
8+ TransformPluginContext ,
109 TransformResult ,
1110} from 'rollup'
1211import type {
@@ -65,23 +64,7 @@ export interface HotUpdatePluginContext {
6564 environment : DevEnvironment
6665}
6766
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
8568declare module 'rollup' {
8669 export interface MinimalPluginContext extends PluginContextExtension { }
8770}
@@ -127,7 +110,7 @@ export interface Plugin<A = any> extends RollupPlugin<A> {
127110 */
128111 resolveId ?: ObjectHook <
129112 (
130- this : ResolveIdPluginContext ,
113+ this : PluginContext ,
131114 source : string ,
132115 importer : string | undefined ,
133116 options : {
0 commit comments