diff options
Diffstat (limited to 'packages/bun-types/bun.d.ts')
-rw-r--r-- | packages/bun-types/bun.d.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/bun-types/bun.d.ts b/packages/bun-types/bun.d.ts index 633570909..19c1abb25 100644 --- a/packages/bun-types/bun.d.ts +++ b/packages/bun-types/bun.d.ts @@ -2913,6 +2913,10 @@ declare module "bun" { * The default loader for this file extension */ loader: Loader; + /** + * Contextual data passed down from the `onResolve` callback that resolved this module + */ + pluginData: any; } type OnLoadResult = OnLoadResultSourceCode | OnLoadResultObject; @@ -2959,6 +2963,10 @@ declare module "bun" { */ namespace?: string; external?: boolean; + /** + * Data to pass to the `onLoad` callback + */ + pluginData?: any; } type OnResolveCallback = ( |